@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
77 lines (76 loc) • 2.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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",
* });
* ```
*/
export declare function getAlertingProfile(args: GetAlertingProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertingProfileResult>;
/**
* A collection of arguments for invoking getAlertingProfile.
*/
export interface GetAlertingProfileArgs {
name: string;
}
/**
* A collection of values returned by getAlertingProfile.
*/
export interface GetAlertingProfileResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly legacyId: string;
readonly name: string;
}
/**
* 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",
* });
* ```
*/
export declare function getAlertingProfileOutput(args: GetAlertingProfileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertingProfileResult>;
/**
* A collection of arguments for invoking getAlertingProfile.
*/
export interface GetAlertingProfileOutputArgs {
name: pulumi.Input<string>;
}