Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
MetricMetadata
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Datadog
Assembly: Pulumi.Datadog.dll
Syntax
public class MetricMetadata : CustomResource

Constructors

View Source

MetricMetadata(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 Source

Description

A description of the metric.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Metric

The name of the metric.

Declaration
public Output<string> Metric { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

ShortName

A short name of the metric.

Declaration
public Output<string> ShortName { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Type

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.