UNPKG

@pulumi/signalfx

Version:

A Pulumi package for creating and managing SignalFx resources.

160 lines (159 loc) 6.01 kB
import * as pulumi from "@pulumi/pulumi"; /** * You can add logs data to your Observability Cloud dashboards without turning your logs into metrics first. * * A log timeline chart displays timeline visualization in a dashboard and shows you in detail what is happening and why. * * ## Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as signalfx from "@pulumi/signalfx"; * * const myLogTimeline = new signalfx.log.Timeline("my_log_timeline", { * name: "Sample Log Timeline", * description: "Lorem ipsum dolor sit amet, laudem tibique iracundia at mea. Nam posse dolores ex, nec cu adhuc putent honestatis", * programText: "logs(filter=field('message') == 'Transaction processed' and field('service.name') == 'paymentservice').publish()\n", * timeRange: 900, * }); * ``` */ export declare class Timeline extends pulumi.CustomResource { /** * Get an existing Timeline 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?: TimelineState, opts?: pulumi.CustomResourceOptions): Timeline; /** * Returns true if the given object is an instance of Timeline. 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 Timeline; /** * The connection that the log timeline uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud. */ readonly defaultConnection: pulumi.Output<string | undefined>; /** * Description of the log timeline. */ readonly description: pulumi.Output<string | undefined>; /** * Seconds since epoch. Used for visualization. Conflicts with `timeRange`. */ readonly endTime: pulumi.Output<number | undefined>; /** * Name of the log timeline. */ readonly name: pulumi.Output<string>; /** * Signalflow program text for the log timeline. More info at https://dev.splunk.com/observability/docs/. */ readonly programText: pulumi.Output<string>; /** * Seconds since epoch. Used for visualization. Conflicts with `timeRange`. */ readonly startTime: pulumi.Output<number | undefined>; /** * Tags associated with the resource */ readonly tags: pulumi.Output<string[] | undefined>; /** * From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `startTime` and `endTime`. */ readonly timeRange: pulumi.Output<number | undefined>; /** * The URL of the log timeline. */ readonly url: pulumi.Output<string>; /** * Create a Timeline 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: TimelineArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Timeline resources. */ export interface TimelineState { /** * The connection that the log timeline uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud. */ defaultConnection?: pulumi.Input<string>; /** * Description of the log timeline. */ description?: pulumi.Input<string>; /** * Seconds since epoch. Used for visualization. Conflicts with `timeRange`. */ endTime?: pulumi.Input<number>; /** * Name of the log timeline. */ name?: pulumi.Input<string>; /** * Signalflow program text for the log timeline. More info at https://dev.splunk.com/observability/docs/. */ programText?: pulumi.Input<string>; /** * Seconds since epoch. Used for visualization. Conflicts with `timeRange`. */ startTime?: pulumi.Input<number>; /** * Tags associated with the resource */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `startTime` and `endTime`. */ timeRange?: pulumi.Input<number>; /** * The URL of the log timeline. */ url?: pulumi.Input<string>; } /** * The set of arguments for constructing a Timeline resource. */ export interface TimelineArgs { /** * The connection that the log timeline uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud. */ defaultConnection?: pulumi.Input<string>; /** * Description of the log timeline. */ description?: pulumi.Input<string>; /** * Seconds since epoch. Used for visualization. Conflicts with `timeRange`. */ endTime?: pulumi.Input<number>; /** * Name of the log timeline. */ name?: pulumi.Input<string>; /** * Signalflow program text for the log timeline. More info at https://dev.splunk.com/observability/docs/. */ programText: pulumi.Input<string>; /** * Seconds since epoch. Used for visualization. Conflicts with `timeRange`. */ startTime?: pulumi.Input<number>; /** * Tags associated with the resource */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `startTime` and `endTime`. */ timeRange?: pulumi.Input<number>; }