chronosphere.DerivedLabel
Explore with Pulumi AI
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:
- Label
Name string - Metric
Label Chronosphere.Pulumi. Inputs. Derived Label Metric Label - Name string
- Description string
- Existing
Label stringPolicy - Slug string
- Label
Name string - Metric
Label DerivedLabel Metric Label Args - Name string
- Description string
- Existing
Label stringPolicy - Slug string
- label
Name String - metric
Label DerivedLabel Metric Label - name String
- description String
- existing
Label StringPolicy - slug String
- label
Name string - metric
Label DerivedLabel Metric Label - name string
- description string
- existing
Label stringPolicy - slug string
- label
Name String - metric
Label Property Map - name String
- description String
- existing
Label StringPolicy - slug String
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.
- Description string
- Existing
Label stringPolicy - Label
Name string - Metric
Label Chronosphere.Pulumi. Inputs. Derived Label Metric Label - Name string
- Slug string
- Description string
- Existing
Label stringPolicy - Label
Name string - Metric
Label DerivedLabel Metric Label Args - Name string
- Slug string
- description String
- existing
Label StringPolicy - label
Name String - metric
Label DerivedLabel Metric Label - name String
- slug String
- description string
- existing
Label stringPolicy - label
Name string - metric
Label DerivedLabel Metric Label - name string
- slug string
- description String
- existing
Label StringPolicy - label
Name String - metric
Label Property Map - name String
- slug String
Supporting Types
DerivedLabelMetricLabel, DerivedLabelMetricLabelArgs
DerivedLabelMetricLabelConstructedLabel, DerivedLabelMetricLabelConstructedLabelArgs
DerivedLabelMetricLabelConstructedLabelValueDefinition, DerivedLabelMetricLabelConstructedLabelValueDefinitionArgs
- filters List<Property Map>
- value String
DerivedLabelMetricLabelConstructedLabelValueDefinitionFilter, DerivedLabelMetricLabelConstructedLabelValueDefinitionFilterArgs
- name str
- value_
glob str
DerivedLabelMetricLabelMappingLabel, DerivedLabelMetricLabelMappingLabelArgs
DerivedLabelMetricLabelMappingLabelNameMapping, DerivedLabelMetricLabelMappingLabelNameMappingArgs
DerivedLabelMetricLabelMappingLabelNameMappingFilter, DerivedLabelMetricLabelMappingLabelNameMappingFilterArgs
- name str
- value_
glob str
DerivedLabelMetricLabelMappingLabelNameMappingValueMapping, DerivedLabelMetricLabelMappingLabelNameMappingValueMappingArgs
- Source
Value List<string>Globs - Target
Value string
- Source
Value []stringGlobs - Target
Value string
- source
Value List<String>Globs - target
Value String
- source
Value string[]Globs - target
Value string
- source_
value_ Sequence[str]globs - target_
value str
- source
Value List<String>Globs - target
Value String
DerivedLabelMetricLabelMappingLabelValueMapping, DerivedLabelMetricLabelMappingLabelValueMappingArgs
- Source
Value List<string>Globs - Target
Value string
- Source
Value []stringGlobs - Target
Value string
- source
Value List<String>Globs - target
Value String
- source
Value string[]Globs - target
Value string
- source_
value_ Sequence[str]globs - target_
value str
- source
Value List<String>Globs - target
Value String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.