UNPKG

pulumi-logtail

Version:

A Pulumi provider for managing Logtail log management and analytics resources, dynamically bridged from the Terraform Logtail provider with support for sources, metrics, and log aggregation.

109 lines (108 loc) 3.56 kB
import * as pulumi from "@pulumi/pulumi"; export declare class Metric extends pulumi.CustomResource { /** * Get an existing Metric 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<pulumi.ID>, state?: MetricState, opts?: pulumi.CustomResourceOptions): Metric; /** * Returns true if the given object is an instance of Metric. 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 Metric; /** * The list of aggregations to perform on the metric. */ readonly aggregations: pulumi.Output<string[]>; /** * The name of this metric. */ readonly name: pulumi.Output<string>; /** * The ID of the source this metric belongs to. */ readonly sourceId: pulumi.Output<string>; /** * The SQL expression used to extract the metric value. */ readonly sqlExpression: pulumi.Output<string>; /** * Used to specify the team the resource should be created in when using global tokens. */ readonly teamName: pulumi.Output<string | undefined>; /** * The type of the metric. */ readonly type: pulumi.Output<string>; /** * Create a Metric 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: MetricArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Metric resources. */ export interface MetricState { /** * The list of aggregations to perform on the metric. */ aggregations?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of this metric. */ name?: pulumi.Input<string>; /** * The ID of the source this metric belongs to. */ sourceId?: pulumi.Input<string>; /** * The SQL expression used to extract the metric value. */ sqlExpression?: pulumi.Input<string>; /** * Used to specify the team the resource should be created in when using global tokens. */ teamName?: pulumi.Input<string>; /** * The type of the metric. */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a Metric resource. */ export interface MetricArgs { /** * The list of aggregations to perform on the metric. */ aggregations: pulumi.Input<pulumi.Input<string>[]>; /** * The name of this metric. */ name?: pulumi.Input<string>; /** * The ID of the source this metric belongs to. */ sourceId: pulumi.Input<string>; /** * The SQL expression used to extract the metric value. */ sqlExpression: pulumi.Input<string>; /** * Used to specify the team the resource should be created in when using global tokens. */ teamName?: pulumi.Input<string>; /** * The type of the metric. */ type: pulumi.Input<string>; }