1. Packages
  2. Chronosphere
  3. API Docs
  4. DerivedLabel
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.DerivedLabel

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

    Create DerivedLabel Resource

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

    Constructor syntax

    new DerivedLabel(name: string, args: DerivedLabelArgs, opts?: CustomResourceOptions);
    @overload
    def DerivedLabel(resource_name: str,
                     args: DerivedLabelArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DerivedLabel(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     label_name: Optional[str] = None,
                     metric_label: Optional[DerivedLabelMetricLabelArgs] = None,
                     name: Optional[str] = None,
                     description: Optional[str] = None,
                     existing_label_policy: Optional[str] = None,
                     slug: Optional[str] = None)
    func NewDerivedLabel(ctx *Context, name string, args DerivedLabelArgs, opts ...ResourceOption) (*DerivedLabel, error)
    public DerivedLabel(string name, DerivedLabelArgs args, CustomResourceOptions? opts = null)
    public DerivedLabel(String name, DerivedLabelArgs args)
    public DerivedLabel(String name, DerivedLabelArgs args, CustomResourceOptions options)
    
    type: chronosphere:DerivedLabel
    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 DerivedLabelArgs
    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 DerivedLabelArgs
    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 DerivedLabelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DerivedLabelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DerivedLabelArgs
    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 derivedLabelResource = new Pulumi.DerivedLabel("derivedLabelResource", new()
    {
        LabelName = "string",
        MetricLabel = new Pulumi.Inputs.DerivedLabelMetricLabelArgs
        {
            ConstructedLabel = new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelArgs
            {
                ValueDefinitions = new[]
                {
                    new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
                    {
                        Filters = new[]
                        {
                            new Pulumi.Inputs.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
                            {
                                Name = "string",
                                ValueGlob = "string",
                            },
                        },
                        Value = "string",
                    },
                },
            },
            MappingLabel = new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelArgs
            {
                NameMappings = new[]
                {
                    new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelNameMappingArgs
                    {
                        Filters = new[]
                        {
                            new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs
                            {
                                Name = "string",
                                ValueGlob = "string",
                            },
                        },
                        SourceLabel = "string",
                        ValueMappings = new[]
                        {
                            new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs
                            {
                                SourceValueGlobs = new[]
                                {
                                    "string",
                                },
                                TargetValue = "string",
                            },
                        },
                    },
                },
                ValueMappings = new[]
                {
                    new Pulumi.Inputs.DerivedLabelMetricLabelMappingLabelValueMappingArgs
                    {
                        SourceValueGlobs = new[]
                        {
                            "string",
                        },
                        TargetValue = "string",
                    },
                },
            },
        },
        Name = "string",
        Description = "string",
        ExistingLabelPolicy = "string",
        Slug = "string",
    });
    
    example, err := chronosphere.NewDerivedLabel(ctx, "derivedLabelResource", &chronosphere.DerivedLabelArgs{
    	LabelName: pulumi.String("string"),
    	MetricLabel: &chronosphere.DerivedLabelMetricLabelArgs{
    		ConstructedLabel: &chronosphere.DerivedLabelMetricLabelConstructedLabelArgs{
    			ValueDefinitions: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArray{
    				&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs{
    					Filters: chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArray{
    						&chronosphere.DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs{
    							Name:      pulumi.String("string"),
    							ValueGlob: pulumi.String("string"),
    						},
    					},
    					Value: pulumi.String("string"),
    				},
    			},
    		},
    		MappingLabel: &chronosphere.DerivedLabelMetricLabelMappingLabelArgs{
    			NameMappings: chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingArray{
    				&chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingArgs{
    					Filters: chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingFilterArray{
    						&chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs{
    							Name:      pulumi.String("string"),
    							ValueGlob: pulumi.String("string"),
    						},
    					},
    					SourceLabel: pulumi.String("string"),
    					ValueMappings: chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArray{
    						&chronosphere.DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs{
    							SourceValueGlobs: pulumi.StringArray{
    								pulumi.String("string"),
    							},
    							TargetValue: pulumi.String("string"),
    						},
    					},
    				},
    			},
    			ValueMappings: chronosphere.DerivedLabelMetricLabelMappingLabelValueMappingArray{
    				&chronosphere.DerivedLabelMetricLabelMappingLabelValueMappingArgs{
    					SourceValueGlobs: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					TargetValue: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Name:                pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	ExistingLabelPolicy: pulumi.String("string"),
    	Slug:                pulumi.String("string"),
    })
    
    var derivedLabelResource = new DerivedLabel("derivedLabelResource", DerivedLabelArgs.builder()
        .labelName("string")
        .metricLabel(DerivedLabelMetricLabelArgs.builder()
            .constructedLabel(DerivedLabelMetricLabelConstructedLabelArgs.builder()
                .valueDefinitions(DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs.builder()
                    .filters(DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs.builder()
                        .name("string")
                        .valueGlob("string")
                        .build())
                    .value("string")
                    .build())
                .build())
            .mappingLabel(DerivedLabelMetricLabelMappingLabelArgs.builder()
                .nameMappings(DerivedLabelMetricLabelMappingLabelNameMappingArgs.builder()
                    .filters(DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs.builder()
                        .name("string")
                        .valueGlob("string")
                        .build())
                    .sourceLabel("string")
                    .valueMappings(DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs.builder()
                        .sourceValueGlobs("string")
                        .targetValue("string")
                        .build())
                    .build())
                .valueMappings(DerivedLabelMetricLabelMappingLabelValueMappingArgs.builder()
                    .sourceValueGlobs("string")
                    .targetValue("string")
                    .build())
                .build())
            .build())
        .name("string")
        .description("string")
        .existingLabelPolicy("string")
        .slug("string")
        .build());
    
    derived_label_resource = chronosphere.DerivedLabel("derivedLabelResource",
        label_name="string",
        metric_label={
            "constructed_label": {
                "value_definitions": [{
                    "filters": [{
                        "name": "string",
                        "value_glob": "string",
                    }],
                    "value": "string",
                }],
            },
            "mapping_label": {
                "name_mappings": [{
                    "filters": [{
                        "name": "string",
                        "value_glob": "string",
                    }],
                    "source_label": "string",
                    "value_mappings": [{
                        "source_value_globs": ["string"],
                        "target_value": "string",
                    }],
                }],
                "value_mappings": [{
                    "source_value_globs": ["string"],
                    "target_value": "string",
                }],
            },
        },
        name="string",
        description="string",
        existing_label_policy="string",
        slug="string")
    
    const derivedLabelResource = new chronosphere.DerivedLabel("derivedLabelResource", {
        labelName: "string",
        metricLabel: {
            constructedLabel: {
                valueDefinitions: [{
                    filters: [{
                        name: "string",
                        valueGlob: "string",
                    }],
                    value: "string",
                }],
            },
            mappingLabel: {
                nameMappings: [{
                    filters: [{
                        name: "string",
                        valueGlob: "string",
                    }],
                    sourceLabel: "string",
                    valueMappings: [{
                        sourceValueGlobs: ["string"],
                        targetValue: "string",
                    }],
                }],
                valueMappings: [{
                    sourceValueGlobs: ["string"],
                    targetValue: "string",
                }],
            },
        },
        name: "string",
        description: "string",
        existingLabelPolicy: "string",
        slug: "string",
    });
    
    type: chronosphere:DerivedLabel
    properties:
        description: string
        existingLabelPolicy: string
        labelName: string
        metricLabel:
            constructedLabel:
                valueDefinitions:
                    - filters:
                        - name: string
                          valueGlob: string
                      value: string
            mappingLabel:
                nameMappings:
                    - filters:
                        - name: string
                          valueGlob: string
                      sourceLabel: string
                      valueMappings:
                        - sourceValueGlobs:
                            - string
                          targetValue: string
                valueMappings:
                    - sourceValueGlobs:
                        - string
                      targetValue: string
        name: string
        slug: string
    

    DerivedLabel Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DerivedLabel resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DerivedLabel 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 DerivedLabel Resource

    Get an existing DerivedLabel 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?: DerivedLabelState, opts?: CustomResourceOptions): DerivedLabel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            existing_label_policy: Optional[str] = None,
            label_name: Optional[str] = None,
            metric_label: Optional[DerivedLabelMetricLabelArgs] = None,
            name: Optional[str] = None,
            slug: Optional[str] = None) -> DerivedLabel
    func GetDerivedLabel(ctx *Context, name string, id IDInput, state *DerivedLabelState, opts ...ResourceOption) (*DerivedLabel, error)
    public static DerivedLabel Get(string name, Input<string> id, DerivedLabelState? state, CustomResourceOptions? opts = null)
    public static DerivedLabel get(String name, Output<String> id, DerivedLabelState 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.

    Supporting Types

    DerivedLabelMetricLabel, DerivedLabelMetricLabelArgs

    DerivedLabelMetricLabelConstructedLabel, DerivedLabelMetricLabelConstructedLabelArgs

    DerivedLabelMetricLabelConstructedLabelValueDefinition, DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs

    DerivedLabelMetricLabelConstructedLabelValueDefinitionFilter, DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs

    Name string
    ValueGlob string
    Name string
    ValueGlob string
    name String
    valueGlob String
    name string
    valueGlob string
    name String
    valueGlob String

    DerivedLabelMetricLabelMappingLabel, DerivedLabelMetricLabelMappingLabelArgs

    DerivedLabelMetricLabelMappingLabelNameMapping, DerivedLabelMetricLabelMappingLabelNameMappingArgs

    DerivedLabelMetricLabelMappingLabelNameMappingFilter, DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs

    Name string
    ValueGlob string
    Name string
    ValueGlob string
    name String
    valueGlob String
    name string
    valueGlob string
    name String
    valueGlob String

    DerivedLabelMetricLabelMappingLabelNameMappingValueMapping, DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs

    SourceValueGlobs List<string>
    TargetValue string
    sourceValueGlobs List<String>
    targetValue String
    sourceValueGlobs List<String>
    targetValue String

    DerivedLabelMetricLabelMappingLabelValueMapping, DerivedLabelMetricLabelMappingLabelValueMappingArgs

    SourceValueGlobs List<string>
    TargetValue string
    sourceValueGlobs List<String>
    targetValue String
    sourceValueGlobs List<String>
    targetValue String

    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.3 published on Tuesday, Oct 8, 2024 by Chronosphere