Show / Hide Table of Contents

Class CustomService

A Service is a discrete, autonomous, and network-accessible unit, designed to solve an individual concern (Wikipedia). In Cloud Monitoring, a Service acts as the root resource under which operational aspects of the service are accessible

To get more information about Service, see:

  • API documentation
  • How-to Guides
  • Service Monitoring
  • Monitoring API Documentation

Example Usage - Monitoring Service Custom

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var custom = new Gcp.Monitoring.CustomService("custom", new Gcp.Monitoring.CustomServiceArgs
    {
        DisplayName = "My Custom Service custom-srv",
        ServiceId = "custom-srv",
        Telemetry = new Gcp.Monitoring.Inputs.CustomServiceTelemetryArgs
        {
            ResourceName = "//product.googleapis.com/foo/foo/services/test",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
CustomService
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Monitoring
Assembly: Pulumi.Gcp.dll
Syntax
public class CustomService : CustomResource

Constructors

View Source

CustomService(String, CustomServiceArgs, CustomResourceOptions)

Create a CustomService resource with the given unique name, arguments, and options.

Declaration
public CustomService(string name, CustomServiceArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

CustomServiceArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DisplayName

Name used for UI elements listing this Service.

Declaration
public Output<string> DisplayName { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The full resource name for this service. The syntax is: projects/[PROJECT_ID]/services/[SERVICE_ID].

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

ServiceId

An optional service ID to use. If not given, the server will generate a service ID.

Declaration
public Output<string> ServiceId { get; }
Property Value
Type Description
Output<System.String>
View Source

Telemetry

Configuration for how to query telemetry on a Service. Structure is documented below.

Declaration
public Output<CustomServiceTelemetry> Telemetry { get; }
Property Value
Type Description
Output<CustomServiceTelemetry>

Methods

View Source

Get(String, Input<String>, CustomServiceState, CustomResourceOptions)

Get an existing CustomService resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static CustomService Get(string name, Input<string> id, CustomServiceState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

CustomServiceState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
CustomService
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.