UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

105 lines (104 loc) 2.86 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of vmp alert samples * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.vmp.getAlertSamples({ * alertId: "695257b0d00908b4e7511fe4", * limit: 100, * sampleSince: 1766851200, * sampleUntil: 1767006860, * }); * ``` */ /** @deprecated volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples */ export declare function alertSamples(args: AlertSamplesArgs, opts?: pulumi.InvokeOptions): Promise<AlertSamplesResult>; /** * A collection of arguments for invoking AlertSamples. */ export interface AlertSamplesArgs { /** * Alert ID to filter samples. */ alertId: string; /** * Limit of samples, default 100, max 500. */ limit?: number; /** * Filter start timestamp (unix). */ sampleSince?: number; /** * Filter end timestamp (unix). */ sampleUntil?: number; } /** * A collection of values returned by AlertSamples. */ export interface AlertSamplesResult { /** * Alert ID. */ readonly alertId: string; /** * Alert samples collection. */ readonly alertSamples: outputs.vmp.AlertSamplesAlertSample[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly limit?: number; readonly sampleSince?: number; readonly sampleUntil?: number; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of vmp alert samples * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.vmp.getAlertSamples({ * alertId: "695257b0d00908b4e7511fe4", * limit: 100, * sampleSince: 1766851200, * sampleUntil: 1767006860, * }); * ``` */ /** @deprecated volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples */ export declare function alertSamplesOutput(args: AlertSamplesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AlertSamplesResult>; /** * A collection of arguments for invoking AlertSamples. */ export interface AlertSamplesOutputArgs { /** * Alert ID to filter samples. */ alertId: pulumi.Input<string>; /** * Limit of samples, default 100, max 500. */ limit?: pulumi.Input<number>; /** * Filter start timestamp (unix). */ sampleSince?: pulumi.Input<number>; /** * Filter end timestamp (unix). */ sampleUntil?: pulumi.Input<number>; }