UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

57 lines 2.18 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.alertSamplesOutput = exports.alertSamples = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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 */ function alertSamples(args, opts) { pulumi.log.warn("alertSamples is deprecated: volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:vmp/alertSamples:AlertSamples", { "alertId": args.alertId, "limit": args.limit, "sampleSince": args.sampleSince, "sampleUntil": args.sampleUntil, }, opts); } exports.alertSamples = alertSamples; /** * 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 */ function alertSamplesOutput(args, opts) { return pulumi.output(args).apply((a) => alertSamples(a, opts)); } exports.alertSamplesOutput = alertSamplesOutput; //# sourceMappingURL=alertSamples.js.map