UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

118 lines (117 loc) 3.11 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of vmp alerts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.vmp.getAlerts({ * ids: ["9a4f84-0868efcb795c2ac4-73cefd4b3263****"], * }); * ``` */ export declare function getAlerts(args?: GetAlertsArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertsResult>; /** * A collection of arguments for invoking getAlerts. */ export interface GetAlertsArgs { /** * A list of alerting rule IDs. */ alertingRuleIds?: string[]; /** * The status of vmp alert. Valid values: `Pending`, `Active`, `Resolved`, `Disabled`. */ currentPhase?: string; /** * Whether to use descending sorting. */ desc?: boolean; /** * A list of vmp alert IDs. */ ids?: string[]; /** * The level of vmp alert. Valid values: `P0`, `P1`, `P2`. */ level?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getAlerts. */ export interface GetAlertsResult { readonly alertingRuleIds?: string[]; /** * The collection of query. */ readonly alerts: outputs.vmp.GetAlertsAlert[]; /** * The status of the vmp alert. */ readonly currentPhase?: string; readonly desc?: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; /** * The level of the vmp alerting rule. */ readonly level?: string; readonly outputFile?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of vmp alerts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.vmp.getAlerts({ * ids: ["9a4f84-0868efcb795c2ac4-73cefd4b3263****"], * }); * ``` */ export declare function getAlertsOutput(args?: GetAlertsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAlertsResult>; /** * A collection of arguments for invoking getAlerts. */ export interface GetAlertsOutputArgs { /** * A list of alerting rule IDs. */ alertingRuleIds?: pulumi.Input<pulumi.Input<string>[]>; /** * The status of vmp alert. Valid values: `Pending`, `Active`, `Resolved`, `Disabled`. */ currentPhase?: pulumi.Input<string>; /** * Whether to use descending sorting. */ desc?: pulumi.Input<boolean>; /** * A list of vmp alert IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The level of vmp alert. Valid values: `P0`, `P1`, `P2`. */ level?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }