import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * The object describing the configuration of the retention filter to create/update. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create APM retention filter * const foo = new datadog.ApmRetentionFilter("foo", { * name: "Sample order", * rate: "1.0", * filter: [{ * query: "service:sample AND env:production AND @http.method:GET AND app:sampleapp AND @http.status_code:200 AND @duration:>600000000", * }], * filterType: "spans-sampling-processor", * enabled: false, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import existing APM retention filter * * ```sh * $ pulumi import datadog:index/apmRetentionFilter:ApmRetentionFilter foo * ``` */ export declare class ApmRetentionFilter extends pulumi.CustomResource { /** * Get an existing ApmRetentionFilter 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?: ApmRetentionFilterState, opts?: pulumi.CustomResourceOptions): ApmRetentionFilter; /** * Returns true if the given object is an instance of ApmRetentionFilter. 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 ApmRetentionFilter; /** * the status of the retention filter. */ readonly enabled: pulumi.Output; /** * The spans filter. Spans matching this filter will be indexed and stored. */ readonly filter: pulumi.Output; /** * The type of the retention filter, currently only spans-processing-sampling is available. Valid values are `spans-sampling-processor`. */ readonly filterType: pulumi.Output; /** * The name of the retention filter. */ readonly name: pulumi.Output; /** * Sample rate to apply to spans going through this retention filter as a string; a value of 1.0 keeps all spans matching the query. Value must be between 0.00 and 1.00. */ readonly rate: pulumi.Output; /** * Sample rate to apply to traces with spans going through this retention filter as a string; a value of 1.0 keeps all traces matching the query. Value must be between 0.00 and 1.00. */ readonly traceRate: pulumi.Output; /** * Create a ApmRetentionFilter 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: ApmRetentionFilterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApmRetentionFilter resources. */ export interface ApmRetentionFilterState { /** * the status of the retention filter. */ enabled?: pulumi.Input; /** * The spans filter. Spans matching this filter will be indexed and stored. */ filter?: pulumi.Input; /** * The type of the retention filter, currently only spans-processing-sampling is available. Valid values are `spans-sampling-processor`. */ filterType?: pulumi.Input; /** * The name of the retention filter. */ name?: pulumi.Input; /** * Sample rate to apply to spans going through this retention filter as a string; a value of 1.0 keeps all spans matching the query. Value must be between 0.00 and 1.00. */ rate?: pulumi.Input; /** * Sample rate to apply to traces with spans going through this retention filter as a string; a value of 1.0 keeps all traces matching the query. Value must be between 0.00 and 1.00. */ traceRate?: pulumi.Input; } /** * The set of arguments for constructing a ApmRetentionFilter resource. */ export interface ApmRetentionFilterArgs { /** * the status of the retention filter. */ enabled: pulumi.Input; /** * The spans filter. Spans matching this filter will be indexed and stored. */ filter: pulumi.Input; /** * The type of the retention filter, currently only spans-processing-sampling is available. Valid values are `spans-sampling-processor`. */ filterType: pulumi.Input; /** * The name of the retention filter. */ name: pulumi.Input; /** * Sample rate to apply to spans going through this retention filter as a string; a value of 1.0 keeps all spans matching the query. Value must be between 0.00 and 1.00. */ rate: pulumi.Input; /** * Sample rate to apply to traces with spans going through this retention filter as a string; a value of 1.0 keeps all traces matching the query. Value must be between 0.00 and 1.00. */ traceRate?: pulumi.Input; }