dynatrace.MetricMetadata
Explore with Pulumi AI
Create MetricMetadata Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetricMetadata(name: string, args: MetricMetadataArgs, opts?: CustomResourceOptions);
@overload
def MetricMetadata(resource_name: str,
args: MetricMetadataArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MetricMetadata(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric_id: Optional[str] = None,
unit: Optional[str] = None,
description: Optional[str] = None,
dimensions: Optional[MetricMetadataDimensionsArgs] = None,
display_name: Optional[str] = None,
metric_properties: Optional[MetricMetadataMetricPropertiesArgs] = None,
source_entity_type: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
unit_display_format: Optional[str] = None)
func NewMetricMetadata(ctx *Context, name string, args MetricMetadataArgs, opts ...ResourceOption) (*MetricMetadata, error)
public MetricMetadata(string name, MetricMetadataArgs args, CustomResourceOptions? opts = null)
public MetricMetadata(String name, MetricMetadataArgs args)
public MetricMetadata(String name, MetricMetadataArgs args, CustomResourceOptions options)
type: dynatrace:MetricMetadata
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 MetricMetadataArgs
- 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 MetricMetadataArgs
- 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 MetricMetadataArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricMetadataArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetricMetadataArgs
- 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 metricMetadataResource = new Dynatrace.MetricMetadata("metricMetadataResource", new()
{
MetricId = "string",
Unit = "string",
Description = "string",
Dimensions = new Dynatrace.Inputs.MetricMetadataDimensionsArgs
{
Dimensions = new[]
{
new Dynatrace.Inputs.MetricMetadataDimensionsDimensionArgs
{
Key = "string",
DisplayName = "string",
},
},
},
DisplayName = "string",
MetricProperties = new Dynatrace.Inputs.MetricMetadataMetricPropertiesArgs
{
ValueType = "string",
ImpactRelevant = false,
Latency = 0,
MaxValue = 0,
MinValue = 0,
RootCauseRelevant = false,
},
SourceEntityType = "string",
Tags = new[]
{
"string",
},
UnitDisplayFormat = "string",
});
example, err := dynatrace.NewMetricMetadata(ctx, "metricMetadataResource", &dynatrace.MetricMetadataArgs{
MetricId: pulumi.String("string"),
Unit: pulumi.String("string"),
Description: pulumi.String("string"),
Dimensions: &dynatrace.MetricMetadataDimensionsArgs{
Dimensions: dynatrace.MetricMetadataDimensionsDimensionArray{
&dynatrace.MetricMetadataDimensionsDimensionArgs{
Key: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
},
},
DisplayName: pulumi.String("string"),
MetricProperties: &dynatrace.MetricMetadataMetricPropertiesArgs{
ValueType: pulumi.String("string"),
ImpactRelevant: pulumi.Bool(false),
Latency: pulumi.Int(0),
MaxValue: pulumi.Float64(0),
MinValue: pulumi.Float64(0),
RootCauseRelevant: pulumi.Bool(false),
},
SourceEntityType: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UnitDisplayFormat: pulumi.String("string"),
})
var metricMetadataResource = new MetricMetadata("metricMetadataResource", MetricMetadataArgs.builder()
.metricId("string")
.unit("string")
.description("string")
.dimensions(MetricMetadataDimensionsArgs.builder()
.dimensions(MetricMetadataDimensionsDimensionArgs.builder()
.key("string")
.displayName("string")
.build())
.build())
.displayName("string")
.metricProperties(MetricMetadataMetricPropertiesArgs.builder()
.valueType("string")
.impactRelevant(false)
.latency(0)
.maxValue(0)
.minValue(0)
.rootCauseRelevant(false)
.build())
.sourceEntityType("string")
.tags("string")
.unitDisplayFormat("string")
.build());
metric_metadata_resource = dynatrace.MetricMetadata("metricMetadataResource",
metric_id="string",
unit="string",
description="string",
dimensions={
"dimensions": [{
"key": "string",
"display_name": "string",
}],
},
display_name="string",
metric_properties={
"value_type": "string",
"impact_relevant": False,
"latency": 0,
"max_value": 0,
"min_value": 0,
"root_cause_relevant": False,
},
source_entity_type="string",
tags=["string"],
unit_display_format="string")
const metricMetadataResource = new dynatrace.MetricMetadata("metricMetadataResource", {
metricId: "string",
unit: "string",
description: "string",
dimensions: {
dimensions: [{
key: "string",
displayName: "string",
}],
},
displayName: "string",
metricProperties: {
valueType: "string",
impactRelevant: false,
latency: 0,
maxValue: 0,
minValue: 0,
rootCauseRelevant: false,
},
sourceEntityType: "string",
tags: ["string"],
unitDisplayFormat: "string",
});
type: dynatrace:MetricMetadata
properties:
description: string
dimensions:
dimensions:
- displayName: string
key: string
displayName: string
metricId: string
metricProperties:
impactRelevant: false
latency: 0
maxValue: 0
minValue: 0
rootCauseRelevant: false
valueType: string
sourceEntityType: string
tags:
- string
unit: string
unitDisplayFormat: string
MetricMetadata 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 MetricMetadata resource accepts the following input properties:
- Metric
Id string - The scope of this setting (metric)
- Unit string
- Unit
- Description string
- Description
- Dimensions
Pulumiverse.
Dynatrace. Inputs. Metric Metadata Dimensions - Define metadata per metric dimension.
- Display
Name string - Display name
- Metric
Properties Pulumiverse.Dynatrace. Inputs. Metric Metadata Metric Properties - Metric properties
- Source
Entity stringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- List<string>
- Tags
- Unit
Display stringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- Metric
Id string - The scope of this setting (metric)
- Unit string
- Unit
- Description string
- Description
- Dimensions
Metric
Metadata Dimensions Args - Define metadata per metric dimension.
- Display
Name string - Display name
- Metric
Properties MetricMetadata Metric Properties Args - Metric properties
- Source
Entity stringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- []string
- Tags
- Unit
Display stringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- metric
Id String - The scope of this setting (metric)
- unit String
- Unit
- description String
- Description
- dimensions
Metric
Metadata Dimensions - Define metadata per metric dimension.
- display
Name String - Display name
- metric
Properties MetricMetadata Metric Properties - Metric properties
- source
Entity StringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- List<String>
- Tags
- unit
Display StringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- metric
Id string - The scope of this setting (metric)
- unit string
- Unit
- description string
- Description
- dimensions
Metric
Metadata Dimensions - Define metadata per metric dimension.
- display
Name string - Display name
- metric
Properties MetricMetadata Metric Properties - Metric properties
- source
Entity stringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- string[]
- Tags
- unit
Display stringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- metric_
id str - The scope of this setting (metric)
- unit str
- Unit
- description str
- Description
- dimensions
Metric
Metadata Dimensions Args - Define metadata per metric dimension.
- display_
name str - Display name
- metric_
properties MetricMetadata Metric Properties Args - Metric properties
- source_
entity_ strtype - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- Sequence[str]
- Tags
- unit_
display_ strformat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- metric
Id String - The scope of this setting (metric)
- unit String
- Unit
- description String
- Description
- dimensions Property Map
- Define metadata per metric dimension.
- display
Name String - Display name
- metric
Properties Property Map - Metric properties
- source
Entity StringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- List<String>
- Tags
- unit
Display StringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricMetadata 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 MetricMetadata Resource
Get an existing MetricMetadata 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?: MetricMetadataState, opts?: CustomResourceOptions): MetricMetadata
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dimensions: Optional[MetricMetadataDimensionsArgs] = None,
display_name: Optional[str] = None,
metric_id: Optional[str] = None,
metric_properties: Optional[MetricMetadataMetricPropertiesArgs] = None,
source_entity_type: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
unit: Optional[str] = None,
unit_display_format: Optional[str] = None) -> MetricMetadata
func GetMetricMetadata(ctx *Context, name string, id IDInput, state *MetricMetadataState, opts ...ResourceOption) (*MetricMetadata, error)
public static MetricMetadata Get(string name, Input<string> id, MetricMetadataState? state, CustomResourceOptions? opts = null)
public static MetricMetadata get(String name, Output<String> id, MetricMetadataState 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
- Description
- Dimensions
Pulumiverse.
Dynatrace. Inputs. Metric Metadata Dimensions - Define metadata per metric dimension.
- Display
Name string - Display name
- Metric
Id string - The scope of this setting (metric)
- Metric
Properties Pulumiverse.Dynatrace. Inputs. Metric Metadata Metric Properties - Metric properties
- Source
Entity stringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- List<string>
- Tags
- Unit string
- Unit
- Unit
Display stringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- Description string
- Description
- Dimensions
Metric
Metadata Dimensions Args - Define metadata per metric dimension.
- Display
Name string - Display name
- Metric
Id string - The scope of this setting (metric)
- Metric
Properties MetricMetadata Metric Properties Args - Metric properties
- Source
Entity stringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- []string
- Tags
- Unit string
- Unit
- Unit
Display stringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- description String
- Description
- dimensions
Metric
Metadata Dimensions - Define metadata per metric dimension.
- display
Name String - Display name
- metric
Id String - The scope of this setting (metric)
- metric
Properties MetricMetadata Metric Properties - Metric properties
- source
Entity StringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- List<String>
- Tags
- unit String
- Unit
- unit
Display StringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- description string
- Description
- dimensions
Metric
Metadata Dimensions - Define metadata per metric dimension.
- display
Name string - Display name
- metric
Id string - The scope of this setting (metric)
- metric
Properties MetricMetadata Metric Properties - Metric properties
- source
Entity stringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- string[]
- Tags
- unit string
- Unit
- unit
Display stringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- description str
- Description
- dimensions
Metric
Metadata Dimensions Args - Define metadata per metric dimension.
- display_
name str - Display name
- metric_
id str - The scope of this setting (metric)
- metric_
properties MetricMetadata Metric Properties Args - Metric properties
- source_
entity_ strtype - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- Sequence[str]
- Tags
- unit str
- Unit
- unit_
display_ strformat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
- description String
- Description
- dimensions Property Map
- Define metadata per metric dimension.
- display
Name String - Display name
- metric
Id String - The scope of this setting (metric)
- metric
Properties Property Map - Metric properties
- source
Entity StringType - Specifies which entity dimension should be used as the primary dimension. The property can only be configured for metrics ingested with the Metrics API.
- List<String>
- Tags
- unit String
- Unit
- unit
Display StringFormat - The raw value is stored in bits or bytes. The user interface can display it in these numeral systems:
Supporting Types
MetricMetadataDimensions, MetricMetadataDimensionsArgs
MetricMetadataDimensionsDimension, MetricMetadataDimensionsDimensionArgs
- Key string
- Dimension key
- Display
Name string - Display name
- Key string
- Dimension key
- Display
Name string - Display name
- key String
- Dimension key
- display
Name String - Display name
- key string
- Dimension key
- display
Name string - Display name
- key str
- Dimension key
- display_
name str - Display name
- key String
- Dimension key
- display
Name String - Display name
MetricMetadataMetricProperties, MetricMetadataMetricPropertiesArgs
- Value
Type string - Possible Values:
Error
,Score
,Unknown
- Impact
Relevant bool - Whether (true or false) the metric is relevant to a problem's impact.
- Latency int
The latency of the metric, in minutes.
The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace.
The allowed value range is from 1 to 60 minutes.
- Max
Value double - The maximum allowed value of the metric.
- Min
Value double - The minimum allowed value of the metric.
- Root
Cause boolRelevant Whether (true or false) the metric is related to a root cause of a problem.
A root-cause relevant metric represents a strong indicator for a faulty component.
- Value
Type string - Possible Values:
Error
,Score
,Unknown
- Impact
Relevant bool - Whether (true or false) the metric is relevant to a problem's impact.
- Latency int
The latency of the metric, in minutes.
The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace.
The allowed value range is from 1 to 60 minutes.
- Max
Value float64 - The maximum allowed value of the metric.
- Min
Value float64 - The minimum allowed value of the metric.
- Root
Cause boolRelevant Whether (true or false) the metric is related to a root cause of a problem.
A root-cause relevant metric represents a strong indicator for a faulty component.
- value
Type String - Possible Values:
Error
,Score
,Unknown
- impact
Relevant Boolean - Whether (true or false) the metric is relevant to a problem's impact.
- latency Integer
The latency of the metric, in minutes.
The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace.
The allowed value range is from 1 to 60 minutes.
- max
Value Double - The maximum allowed value of the metric.
- min
Value Double - The minimum allowed value of the metric.
- root
Cause BooleanRelevant Whether (true or false) the metric is related to a root cause of a problem.
A root-cause relevant metric represents a strong indicator for a faulty component.
- value
Type string - Possible Values:
Error
,Score
,Unknown
- impact
Relevant boolean - Whether (true or false) the metric is relevant to a problem's impact.
- latency number
The latency of the metric, in minutes.
The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace.
The allowed value range is from 1 to 60 minutes.
- max
Value number - The maximum allowed value of the metric.
- min
Value number - The minimum allowed value of the metric.
- root
Cause booleanRelevant Whether (true or false) the metric is related to a root cause of a problem.
A root-cause relevant metric represents a strong indicator for a faulty component.
- value_
type str - Possible Values:
Error
,Score
,Unknown
- impact_
relevant bool - Whether (true or false) the metric is relevant to a problem's impact.
- latency int
The latency of the metric, in minutes.
The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace.
The allowed value range is from 1 to 60 minutes.
- max_
value float - The maximum allowed value of the metric.
- min_
value float - The minimum allowed value of the metric.
- root_
cause_ boolrelevant Whether (true or false) the metric is related to a root cause of a problem.
A root-cause relevant metric represents a strong indicator for a faulty component.
- value
Type String - Possible Values:
Error
,Score
,Unknown
- impact
Relevant Boolean - Whether (true or false) the metric is relevant to a problem's impact.
- latency Number
The latency of the metric, in minutes.
The latency is the expected reporting delay (for example, caused by constraints of cloud vendors or other third-party data sources) between the observation of a metric data point and its availability in Dynatrace.
The allowed value range is from 1 to 60 minutes.
- max
Value Number - The maximum allowed value of the metric.
- min
Value Number - The minimum allowed value of the metric.
- root
Cause BooleanRelevant Whether (true or false) the metric is related to a root cause of a problem.
A root-cause relevant metric represents a strong indicator for a faulty component.
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.