import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog metricMetadata resource. This can be used to manage a metric's metadata. * * ## Example Usage * * ```typescript * 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", { * metric: "request.time", * shortName: "Request time", * description: "99th percentile request time in milliseconds", * type: "gauge", * unit: "millisecond", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/metricMetadata:MetricMetadata request_time request.time * ``` */ export declare class MetricMetadata extends pulumi.CustomResource { /** * Get an existing MetricMetadata resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MetricMetadataState, opts?: pulumi.CustomResourceOptions): MetricMetadata; /** * Returns true if the given object is an instance of MetricMetadata. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MetricMetadata; /** * A description of the metric. */ readonly description: pulumi.Output; /** * The name of the metric. */ readonly metric: pulumi.Output; /** * Per unit of the metric such as `second` in `bytes per second`. */ readonly perUnit: pulumi.Output; /** * A short name of the metric. */ readonly shortName: pulumi.Output; /** * If applicable, statsd flush interval in seconds for the metric. */ readonly statsdInterval: pulumi.Output; /** * Metric type such as `count`, `gauge`, or `rate`. Updating a metric of type `distribution` is not supported. If you would like to see the `distribution` type returned, contact [Datadog support](https://docs.datadoghq.com/help/). */ readonly type: pulumi.Output; /** * Primary unit of the metric such as `byte` or `operation`. For a list of allowed units, refer to [Datadog metric unit documentation](https://docs.datadoghq.com/metrics/units/#unit-list). */ readonly unit: pulumi.Output; /** * Create a MetricMetadata resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MetricMetadataArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MetricMetadata resources. */ export interface MetricMetadataState { /** * A description of the metric. */ description?: pulumi.Input; /** * The name of the metric. */ metric?: pulumi.Input; /** * Per unit of the metric such as `second` in `bytes per second`. */ perUnit?: pulumi.Input; /** * A short name of the metric. */ shortName?: pulumi.Input; /** * If applicable, statsd flush interval in seconds for the metric. */ statsdInterval?: pulumi.Input; /** * Metric type such as `count`, `gauge`, or `rate`. Updating a metric of type `distribution` is not supported. If you would like to see the `distribution` type returned, contact [Datadog support](https://docs.datadoghq.com/help/). */ type?: pulumi.Input; /** * Primary unit of the metric such as `byte` or `operation`. For a list of allowed units, refer to [Datadog metric unit documentation](https://docs.datadoghq.com/metrics/units/#unit-list). */ unit?: pulumi.Input; } /** * The set of arguments for constructing a MetricMetadata resource. */ export interface MetricMetadataArgs { /** * A description of the metric. */ description?: pulumi.Input; /** * The name of the metric. */ metric: pulumi.Input; /** * Per unit of the metric such as `second` in `bytes per second`. */ perUnit?: pulumi.Input; /** * A short name of the metric. */ shortName?: pulumi.Input; /** * If applicable, statsd flush interval in seconds for the metric. */ statsdInterval?: pulumi.Input; /** * Metric type such as `count`, `gauge`, or `rate`. Updating a metric of type `distribution` is not supported. If you would like to see the `distribution` type returned, contact [Datadog support](https://docs.datadoghq.com/help/). */ type?: pulumi.Input; /** * Primary unit of the metric such as `byte` or `operation`. For a list of allowed units, refer to [Datadog metric unit documentation](https://docs.datadoghq.com/metrics/units/#unit-list). */ unit?: pulumi.Input; }