1. Packages
  2. Chronosphere
  3. API Docs
  4. GcpMetricsIntegration
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere

chronosphere.GcpMetricsIntegration

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere

    Create GcpMetricsIntegration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GcpMetricsIntegration(name: string, args: GcpMetricsIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def GcpMetricsIntegration(resource_name: str,
                              args: GcpMetricsIntegrationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def GcpMetricsIntegration(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              name: Optional[str] = None,
                              metric_groups: Optional[Sequence[GcpMetricsIntegrationMetricGroupArgs]] = None,
                              service_account: Optional[GcpMetricsIntegrationServiceAccountArgs] = None,
                              slug: Optional[str] = None)
    func NewGcpMetricsIntegration(ctx *Context, name string, args GcpMetricsIntegrationArgs, opts ...ResourceOption) (*GcpMetricsIntegration, error)
    public GcpMetricsIntegration(string name, GcpMetricsIntegrationArgs args, CustomResourceOptions? opts = null)
    public GcpMetricsIntegration(String name, GcpMetricsIntegrationArgs args)
    public GcpMetricsIntegration(String name, GcpMetricsIntegrationArgs args, CustomResourceOptions options)
    
    type: chronosphere:GcpMetricsIntegration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GcpMetricsIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GcpMetricsIntegrationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GcpMetricsIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GcpMetricsIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GcpMetricsIntegrationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var gcpMetricsIntegrationResource = new Pulumi.GcpMetricsIntegration("gcpMetricsIntegrationResource", new()
    {
        Name = "string",
        MetricGroups = new[]
        {
            new Pulumi.Inputs.GcpMetricsIntegrationMetricGroupArgs
            {
                ProjectId = "string",
                Prefixes = new[]
                {
                    "string",
                },
            },
        },
        ServiceAccount = new Pulumi.Inputs.GcpMetricsIntegrationServiceAccountArgs
        {
            ClientEmail = "string",
        },
        Slug = "string",
    });
    
    example, err := chronosphere.NewGcpMetricsIntegration(ctx, "gcpMetricsIntegrationResource", &chronosphere.GcpMetricsIntegrationArgs{
    	Name: pulumi.String("string"),
    	MetricGroups: chronosphere.GcpMetricsIntegrationMetricGroupArray{
    		&chronosphere.GcpMetricsIntegrationMetricGroupArgs{
    			ProjectId: pulumi.String("string"),
    			Prefixes: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	ServiceAccount: &chronosphere.GcpMetricsIntegrationServiceAccountArgs{
    		ClientEmail: pulumi.String("string"),
    	},
    	Slug: pulumi.String("string"),
    })
    
    var gcpMetricsIntegrationResource = new GcpMetricsIntegration("gcpMetricsIntegrationResource", GcpMetricsIntegrationArgs.builder()
        .name("string")
        .metricGroups(GcpMetricsIntegrationMetricGroupArgs.builder()
            .projectId("string")
            .prefixes("string")
            .build())
        .serviceAccount(GcpMetricsIntegrationServiceAccountArgs.builder()
            .clientEmail("string")
            .build())
        .slug("string")
        .build());
    
    gcp_metrics_integration_resource = chronosphere.GcpMetricsIntegration("gcpMetricsIntegrationResource",
        name="string",
        metric_groups=[chronosphere.GcpMetricsIntegrationMetricGroupArgs(
            project_id="string",
            prefixes=["string"],
        )],
        service_account=chronosphere.GcpMetricsIntegrationServiceAccountArgs(
            client_email="string",
        ),
        slug="string")
    
    const gcpMetricsIntegrationResource = new chronosphere.GcpMetricsIntegration("gcpMetricsIntegrationResource", {
        name: "string",
        metricGroups: [{
            projectId: "string",
            prefixes: ["string"],
        }],
        serviceAccount: {
            clientEmail: "string",
        },
        slug: "string",
    });
    
    type: chronosphere:GcpMetricsIntegration
    properties:
        metricGroups:
            - prefixes:
                - string
              projectId: string
        name: string
        serviceAccount:
            clientEmail: string
        slug: string
    

    GcpMetricsIntegration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The GcpMetricsIntegration resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GcpMetricsIntegration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GcpMetricsIntegration Resource

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

    public static get(name: string, id: Input<ID>, state?: GcpMetricsIntegrationState, opts?: CustomResourceOptions): GcpMetricsIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            metric_groups: Optional[Sequence[GcpMetricsIntegrationMetricGroupArgs]] = None,
            name: Optional[str] = None,
            service_account: Optional[GcpMetricsIntegrationServiceAccountArgs] = None,
            slug: Optional[str] = None) -> GcpMetricsIntegration
    func GetGcpMetricsIntegration(ctx *Context, name string, id IDInput, state *GcpMetricsIntegrationState, opts ...ResourceOption) (*GcpMetricsIntegration, error)
    public static GcpMetricsIntegration Get(string name, Input<string> id, GcpMetricsIntegrationState? state, CustomResourceOptions? opts = null)
    public static GcpMetricsIntegration get(String name, Output<String> id, GcpMetricsIntegrationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    GcpMetricsIntegrationMetricGroup, GcpMetricsIntegrationMetricGroupArgs

    ProjectId string
    Prefixes List<string>
    ProjectId string
    Prefixes []string
    projectId String
    prefixes List<String>
    projectId string
    prefixes string[]
    project_id str
    prefixes Sequence[str]
    projectId String
    prefixes List<String>

    GcpMetricsIntegrationServiceAccount, GcpMetricsIntegrationServiceAccountArgs

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    chronosphere logo
    Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere