UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

72 lines 2.96 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.getAlertingProfileOutput = exports.getAlertingProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The Alerting Profile queries for an Alerting Profile that has a specified name. In case multiple Alerting Profiles share the same name the first one found will be used. * The ID of this Data Resource aligns with the IDs used by the Dynatrace Settings 2.0 API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const _default = dynatrace.getAlertingProfile({ * name: "Default", * }); * const myWebhookNotification = new dynatrace.WebhookNotification("myWebhookNotification", { * active: false, * profile: _default.then(_default => _default.id), * url: "https://webhook.site/40bf4d43-1a50-4ebd-913d-bf50ce7c3a1e", * insecure: true, * notifyEventMerges: true, * notifyClosedProblems: true, * payload: "web-hook-payload", * }); * ``` */ function getAlertingProfile(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAlertingProfile:getAlertingProfile", { "name": args.name, }, opts); } exports.getAlertingProfile = getAlertingProfile; /** * The Alerting Profile queries for an Alerting Profile that has a specified name. In case multiple Alerting Profiles share the same name the first one found will be used. * The ID of this Data Resource aligns with the IDs used by the Dynatrace Settings 2.0 API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const _default = dynatrace.getAlertingProfile({ * name: "Default", * }); * const myWebhookNotification = new dynatrace.WebhookNotification("myWebhookNotification", { * active: false, * profile: _default.then(_default => _default.id), * url: "https://webhook.site/40bf4d43-1a50-4ebd-913d-bf50ce7c3a1e", * insecure: true, * notifyEventMerges: true, * notifyClosedProblems: true, * payload: "web-hook-payload", * }); * ``` */ function getAlertingProfileOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getAlertingProfile:getAlertingProfile", { "name": args.name, }, opts); } exports.getAlertingProfileOutput = getAlertingProfileOutput; //# sourceMappingURL=getAlertingProfile.js.map