pulumi-better-uptime
Version:
A Pulumi provider for managing Better Uptime monitoring, alerting, and incident management resources, dynamically bridged from the Terraform Better Uptime provider with support for monitors, heartbeats, integrations, status pages, and policies.
180 lines (179 loc) • 6.25 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
export declare class GrafanaIntegration extends pulumi.CustomResource {
/**
* Get an existing GrafanaIntegration resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GrafanaIntegrationState, opts?: pulumi.CustomResourceOptions): GrafanaIntegration;
/**
* Returns true if the given object is an instance of GrafanaIntegration. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is GrafanaIntegration;
/**
* Whether to call when a new incident is created.
*/
readonly call: pulumi.Output<boolean>;
/**
* Whether to send a critical push notification that ignores the mute switch and Do not Disturb mode when a new incident is
* created.
*/
readonly criticalAlert: pulumi.Output<boolean>;
/**
* Whether to send an email when a new incident is created.
*/
readonly email: pulumi.Output<boolean>;
/**
* The name of the Grafana Integration.
*/
readonly name: pulumi.Output<string>;
/**
* Is the Grafana integration paused.
*/
readonly paused: pulumi.Output<boolean>;
/**
* ID of the escalation policy associated with the Grafana integration.
*/
readonly policyId: pulumi.Output<number>;
/**
* Whether to send a push notification when a new incident is created.
*/
readonly push: pulumi.Output<boolean>;
/**
* How long the alert must be up to automatically mark an incident as resolved. In seconds.
*/
readonly recoveryPeriod: pulumi.Output<number>;
/**
* Whether to send an SMS when a new incident is created.
*/
readonly sms: pulumi.Output<boolean>;
/**
* Used to specify the team the resource should be created in when using global tokens.
*/
readonly teamName: pulumi.Output<string | undefined>;
/**
* How long we wait before escalating the incident alert to the team. In seconds.
*/
readonly teamWait: pulumi.Output<number>;
/**
* The webhook URL for the Grafana integration.
*/
readonly webhookUrl: pulumi.Output<string>;
/**
* Create a GrafanaIntegration resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: GrafanaIntegrationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GrafanaIntegration resources.
*/
export interface GrafanaIntegrationState {
/**
* Whether to call when a new incident is created.
*/
call?: pulumi.Input<boolean>;
/**
* Whether to send a critical push notification that ignores the mute switch and Do not Disturb mode when a new incident is
* created.
*/
criticalAlert?: pulumi.Input<boolean>;
/**
* Whether to send an email when a new incident is created.
*/
email?: pulumi.Input<boolean>;
/**
* The name of the Grafana Integration.
*/
name?: pulumi.Input<string>;
/**
* Is the Grafana integration paused.
*/
paused?: pulumi.Input<boolean>;
/**
* ID of the escalation policy associated with the Grafana integration.
*/
policyId?: pulumi.Input<number>;
/**
* Whether to send a push notification when a new incident is created.
*/
push?: pulumi.Input<boolean>;
/**
* How long the alert must be up to automatically mark an incident as resolved. In seconds.
*/
recoveryPeriod?: pulumi.Input<number>;
/**
* Whether to send an SMS when a new incident is created.
*/
sms?: pulumi.Input<boolean>;
/**
* Used to specify the team the resource should be created in when using global tokens.
*/
teamName?: pulumi.Input<string>;
/**
* How long we wait before escalating the incident alert to the team. In seconds.
*/
teamWait?: pulumi.Input<number>;
/**
* The webhook URL for the Grafana integration.
*/
webhookUrl?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a GrafanaIntegration resource.
*/
export interface GrafanaIntegrationArgs {
/**
* Whether to call when a new incident is created.
*/
call?: pulumi.Input<boolean>;
/**
* Whether to send a critical push notification that ignores the mute switch and Do not Disturb mode when a new incident is
* created.
*/
criticalAlert?: pulumi.Input<boolean>;
/**
* Whether to send an email when a new incident is created.
*/
email?: pulumi.Input<boolean>;
/**
* The name of the Grafana Integration.
*/
name?: pulumi.Input<string>;
/**
* Is the Grafana integration paused.
*/
paused?: pulumi.Input<boolean>;
/**
* ID of the escalation policy associated with the Grafana integration.
*/
policyId?: pulumi.Input<number>;
/**
* Whether to send a push notification when a new incident is created.
*/
push?: pulumi.Input<boolean>;
/**
* How long the alert must be up to automatically mark an incident as resolved. In seconds.
*/
recoveryPeriod?: pulumi.Input<number>;
/**
* Whether to send an SMS when a new incident is created.
*/
sms?: pulumi.Input<boolean>;
/**
* Used to specify the team the resource should be created in when using global tokens.
*/
teamName?: pulumi.Input<string>;
/**
* How long we wait before escalating the incident alert to the team. In seconds.
*/
teamWait?: pulumi.Input<number>;
}