Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Datadog
Assembly: Pulumi.Datadog.dll
Syntax
public class MetricMetadata : CustomResource
Constructors
View SourceMetricMetadata(String, MetricMetadataArgs, CustomResourceOptions)
Create a MetricMetadata resource with the given unique name, arguments, and options.
Declaration
public MetricMetadata(string name, MetricMetadataArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MetricMetadataArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
A description of the metric.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Metric
The name of the metric.
Declaration
public Output<string> Metric { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PerUnit
'Per' unit of the metric such as 'second' in 'bytes per second'.
Declaration
public Output<string> PerUnit { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ShortName
A short name of the metric.
Declaration
public Output<string> ShortName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StatsdInterval
If applicable, stasd flush interval in seconds for the metric.
Declaration
public Output<int?> StatsdInterval { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Type
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Unit
Primary unit of the metric such as 'byte' or 'operation'.
Declaration
public Output<string> Unit { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, MetricMetadataState, CustomResourceOptions)
Get an existing MetricMetadata resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static MetricMetadata Get(string name, Input<string> id, MetricMetadataState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| MetricMetadataState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| MetricMetadata |