MetricMetadata
Provides a Datadog metric_metadata resource. This can be used to manage a metric’s metadata.
Example Usage
using Pulumi;
using Datadog = Pulumi.Datadog;
class MyStack : Stack
{
public MyStack()
{
// Manage a Datadog metric's metadata
var requestTime = new Datadog.MetricMetadata("requestTime", new Datadog.MetricMetadataArgs
{
Description = "99th percentile request time in millseconds",
Metric = "request.time",
ShortName = "Request time",
Type = "gauge",
Unit = "millisecond",
});
}
}
Coming soon!
import pulumi
import pulumi_datadog as datadog
# Manage a Datadog metric's metadata
request_time = datadog.MetricMetadata("requestTime",
description="99th percentile request time in millseconds",
metric="request.time",
short_name="Request time",
type="gauge",
unit="millisecond")import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Manage a Datadog metric's metadata
const requestTime = new datadog.MetricMetadata("request_time", {
description: "99th percentile request time in millseconds",
metric: "request.time",
shortName: "Request time",
type: "gauge",
unit: "millisecond",
});Create a MetricMetadata Resource
new MetricMetadata(name: string, args: MetricMetadataArgs, opts?: CustomResourceOptions);def MetricMetadata(resource_name, opts=None, description=None, metric=None, per_unit=None, short_name=None, statsd_interval=None, type=None, unit=None, __props__=None);func NewMetricMetadata(ctx *Context, name string, args MetricMetadataArgs, opts ...ResourceOption) (*MetricMetadata, error)public MetricMetadata(string name, MetricMetadataArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
MetricMetadata Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The MetricMetadata resource accepts the following input properties:
- Metric string
The name of the metric.
- Description string
A description of the metric.
- Per
Unit string ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- Short
Name string A short name of the metric.
- Statsd
Interval int If applicable, stasd flush interval in seconds for the metric.
- Type string
- Unit string
Primary unit of the metric such as ‘byte’ or ‘operation’.
- Metric string
The name of the metric.
- Description string
A description of the metric.
- Per
Unit string ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- Short
Name string A short name of the metric.
- Statsd
Interval int If applicable, stasd flush interval in seconds for the metric.
- Type string
- Unit string
Primary unit of the metric such as ‘byte’ or ‘operation’.
- metric string
The name of the metric.
- description string
A description of the metric.
- per
Unit string ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- short
Name string A short name of the metric.
- statsd
Interval number If applicable, stasd flush interval in seconds for the metric.
- type string
- unit string
Primary unit of the metric such as ‘byte’ or ‘operation’.
- metric str
The name of the metric.
- description str
A description of the metric.
- per_
unit str ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- short_
name str A short name of the metric.
- statsd_
interval float If applicable, stasd flush interval in seconds for the metric.
- type str
- unit str
Primary unit of the metric such as ‘byte’ or ‘operation’.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricMetadata resource produces the following output properties:
Look up an 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): MetricMetadatastatic get(resource_name, id, opts=None, description=None, metric=None, per_unit=None, short_name=None, statsd_interval=None, type=None, unit=None, __props__=None);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)- 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.
The following state arguments are supported:
- Description string
A description of the metric.
- Metric string
The name of the metric.
- Per
Unit string ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- Short
Name string A short name of the metric.
- Statsd
Interval int If applicable, stasd flush interval in seconds for the metric.
- Type string
- Unit string
Primary unit of the metric such as ‘byte’ or ‘operation’.
- Description string
A description of the metric.
- Metric string
The name of the metric.
- Per
Unit string ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- Short
Name string A short name of the metric.
- Statsd
Interval int If applicable, stasd flush interval in seconds for the metric.
- Type string
- Unit string
Primary unit of the metric such as ‘byte’ or ‘operation’.
- description string
A description of the metric.
- metric string
The name of the metric.
- per
Unit string ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- short
Name string A short name of the metric.
- statsd
Interval number If applicable, stasd flush interval in seconds for the metric.
- type string
- unit string
Primary unit of the metric such as ‘byte’ or ‘operation’.
- description str
A description of the metric.
- metric str
The name of the metric.
- per_
unit str ‘Per’ unit of the metric such as ‘second’ in ‘bytes per second’.
- short_
name str A short name of the metric.
- statsd_
interval float If applicable, stasd flush interval in seconds for the metric.
- type str
- unit str
Primary unit of the metric such as ‘byte’ or ‘operation’.
Package Details
- Repository
- https://github.com/pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.