@pulumi/wavefront
Version:
A Pulumi package for creating and managing wavefront cloud resources.
96 lines (95 loc) • 2.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get information about a certain Wavefront event.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as wavefront from "@pulumi/wavefront";
*
* // Get the information about a Wavefront event by its ID.
* const example = wavefront.getEvent({
* id: "sample-event-id",
* });
* ```
*/
export declare function getEvent(args: GetEventArgs, opts?: pulumi.InvokeOptions): Promise<GetEventResult>;
/**
* A collection of arguments for invoking getEvent.
*/
export interface GetEventArgs {
/**
* The ID associated with the event data to be fetched.
*/
id: string;
}
/**
* A collection of values returned by getEvent.
*/
export interface GetEventResult {
/**
* Annotations associated with the event.
*/
readonly annotations: {
[key: string]: string;
};
/**
* The description of the event.
*/
readonly details: string;
readonly endtimeKey: number;
/**
* The ID of the event in Wavefront.
*/
readonly id: string;
/**
* A Boolean flag. If set to `true`, creates a point-in-time event (i.e. with no duration).
*/
readonly isEphemeral: boolean;
/**
* The name of the event in Wavefront.
*/
readonly name: string;
/**
* The severity category of the event.
*/
readonly severity: string;
/**
* The start time of the event in epoch milliseconds.
*/
readonly startTime: number;
/**
* A set of tags assigned to the event.
*/
readonly tags: string[];
/**
* The type of the event.
*/
readonly type: string;
}
/**
* Use this data source to get information about a certain Wavefront event.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as wavefront from "@pulumi/wavefront";
*
* // Get the information about a Wavefront event by its ID.
* const example = wavefront.getEvent({
* id: "sample-event-id",
* });
* ```
*/
export declare function getEventOutput(args: GetEventOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEventResult>;
/**
* A collection of arguments for invoking getEvent.
*/
export interface GetEventOutputArgs {
/**
* The ID associated with the event data to be fetched.
*/
id: pulumi.Input<string>;
}