Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs
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.
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=dynatrace.MetricMetadataDimensionsArgs(
dimensions=[dynatrace.MetricMetadataDimensionsDimensionArgs(
key="string",
display_name="string",
)],
),
display_name="string",
metric_properties=dynatrace.MetricMetadataMetricPropertiesArgs(
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
The MetricMetadata resource accepts the following input properties:
- Metric
Id string - The scope of this setting (metric)
- Unit string
- Unit
- Description string
- Description
- Dimensions
Lbrlabs.
Pulumi Package. Dynatrace. Inputs. Metric Metadata Dimensions - Define metadata per metric dimension.
- Display
Name string - Display name
- Metric
Properties Lbrlabs.Pulumi Package. 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
Lbrlabs.
Pulumi Package. 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 Lbrlabs.Pulumi Package. 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
- Display
Name string - Display name
- Key string
- Display
Name string - Display name
- key String
- display
Name String - Display name
- key string
- display
Name string - Display name
- key str
- display_
name str - Display name
- key String
- 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
- Max
Value double - Min
Value double - Root
Cause boolRelevant
- 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
- Max
Value float64 - Min
Value float64 - Root
Cause boolRelevant
- 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
- max
Value Double - min
Value Double - root
Cause BooleanRelevant
- 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
- max
Value number - min
Value number - root
Cause booleanRelevant
- 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
- max_
value float - min_
value float - root_
cause_ boolrelevant
- 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
- max
Value Number - min
Value Number - root
Cause BooleanRelevant
Package Details
- Repository
- dynatrace lbrlabs/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.