import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Tag Indexing Rule resource. Tag indexing rules control which tag keys are indexed for metrics, reducing cardinality costs while preserving queryability. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const example = new datadog.TagIndexingRule("example", { * name: "Index env and service tags for all web metrics", * metricNameMatches: [ * "web.*", * "http.*", * ], * tags: [ * "env", * "service", * "version", * ], * excludeTagsMode: false, * options: { * version: 1, * data: { * managePreexistingMetrics: true, * overridePreviousRules: false, * }, * }, * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const excludeExample = new datadog.TagIndexingRule("exclude_example", { * name: "Exclude unused tags from all web metrics", * metricNameMatches: [ * "web.*", * "http.*", * ], * tags: [ * "debug_id", * "internal_trace_id", * ], * excludeTagsMode: true, * options: { * version: 1, * data: { * dynamicTags: { * excludeNotQueriedWindowSeconds: 604800, * excludeNotUsedInAssets: true, * }, * }, * }, * }); * ``` */ export declare class TagIndexingRule extends pulumi.CustomResource { /** * Get an existing TagIndexingRule 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?: TagIndexingRuleState, opts?: pulumi.CustomResourceOptions): TagIndexingRule; /** * Check whether an existing TagIndexingRule resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: TagIndexingRuleState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of TagIndexingRule. 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 TagIndexingRule; /** * Timestamp when the rule was created. */ readonly createdAt: pulumi.Output; /** * Handle of the user who created the rule. */ readonly createdByHandle: pulumi.Output; /** * When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to `false`. */ readonly excludeTagsMode: pulumi.Output; /** * Metric name prefixes excluded from the rule's scope. */ readonly ignoredMetricNameMatches: pulumi.Output; /** * Metric name prefixes (glob patterns) this rule applies to. */ readonly metricNameMatches: pulumi.Output; /** * Timestamp when the rule was last modified. */ readonly modifiedAt: pulumi.Output; /** * Handle of the user who last modified the rule. */ readonly modifiedByHandle: pulumi.Output; /** * Human-readable name for the rule. */ readonly name: pulumi.Output; /** * Versioned configuration options for the rule. */ readonly options: pulumi.Output; /** * Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use `datadog.TagIndexingRuleOrder` to control ordering. */ readonly ruleOrder: pulumi.Output; /** * Tag keys this rule includes or excludes, depending on exclude*tags*mode. */ readonly tags: pulumi.Output; /** * Create a TagIndexingRule 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: TagIndexingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TagIndexingRule resources. */ export interface TagIndexingRuleState { /** * Timestamp when the rule was created. */ createdAt?: pulumi.Input; /** * Handle of the user who created the rule. */ createdByHandle?: pulumi.Input; /** * When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to `false`. */ excludeTagsMode?: pulumi.Input; /** * Metric name prefixes excluded from the rule's scope. */ ignoredMetricNameMatches?: pulumi.Input[] | undefined>; /** * Metric name prefixes (glob patterns) this rule applies to. */ metricNameMatches?: pulumi.Input[] | undefined>; /** * Timestamp when the rule was last modified. */ modifiedAt?: pulumi.Input; /** * Handle of the user who last modified the rule. */ modifiedByHandle?: pulumi.Input; /** * Human-readable name for the rule. */ name?: pulumi.Input; /** * Versioned configuration options for the rule. */ options?: pulumi.Input; /** * Evaluation order within the org. Lower values are evaluated first. Server-assigned on create; use `datadog.TagIndexingRuleOrder` to control ordering. */ ruleOrder?: pulumi.Input; /** * Tag keys this rule includes or excludes, depending on exclude*tags*mode. */ tags?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a TagIndexingRule resource. */ export interface TagIndexingRuleArgs { /** * When true, the rule excludes the listed tags and indexes all others. When false (default), the rule includes only the listed tags. Defaults to `false`. */ excludeTagsMode?: pulumi.Input; /** * Metric name prefixes excluded from the rule's scope. */ ignoredMetricNameMatches?: pulumi.Input[] | undefined>; /** * Metric name prefixes (glob patterns) this rule applies to. */ metricNameMatches: pulumi.Input[]>; /** * Human-readable name for the rule. */ name: pulumi.Input; /** * Versioned configuration options for the rule. */ options?: pulumi.Input; /** * Tag keys this rule includes or excludes, depending on exclude*tags*mode. */ tags?: pulumi.Input[] | undefined>; } //# sourceMappingURL=tagIndexingRule.d.ts.map