UNPKG

@pulumi/wavefront

Version:

A Pulumi package for creating and managing wavefront cloud resources.

54 lines 1.69 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getAlertOutput = exports.getAlert = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to get information about a Wavefront alert by its ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as wavefront from "@pulumi/wavefront"; * * // Get the information about the alert. * const example = wavefront.getAlert({ * id: "alert-id", * }); * ``` */ function getAlert(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("wavefront:index/getAlert:getAlert", { "id": args.id, "targets": args.targets, }, opts); } exports.getAlert = getAlert; /** * Use this data source to get information about a Wavefront alert by its ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as wavefront from "@pulumi/wavefront"; * * // Get the information about the alert. * const example = wavefront.getAlert({ * id: "alert-id", * }); * ``` */ function getAlertOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("wavefront:index/getAlert:getAlert", { "id": args.id, "targets": args.targets, }, opts); } exports.getAlertOutput = getAlertOutput; //# sourceMappingURL=getAlert.js.map