UptimeAlertArgs

data class UptimeAlertArgs(val checkId: Output<String>? = null, val comparison: Output<String>? = null, val name: Output<String>? = null, val notifications: Output<List<UptimeAlertNotificationArgs>>? = null, val period: Output<String>? = null, val threshold: Output<Int>? = null, val type: Output<String>? = null) : ConvertibleToJava<UptimeAlertArgs>

Provides a DigitalOcean Uptime Alerts resource. Uptime Alerts provide the ability to add alerts to your DigitalOcean Uptime Checks when your endpoints are slow, unavailable, or SSL certificates are expiring.

Import

Uptime alerts can be imported using both the ID of the alert's parent check and its own separated by a comma in the format: check_id,alert_id. For example:

$ pulumi import digitalocean:index/uptimeAlert:UptimeAlert target 94a7d216-d821-11ee-a327-33d3239ffc4b,5a4981aa-9653-4bd1-bef5-d6bff52042e4

Constructors

Link copied to clipboard
constructor(checkId: Output<String>? = null, comparison: Output<String>? = null, name: Output<String>? = null, notifications: Output<List<UptimeAlertNotificationArgs>>? = null, period: Output<String>? = null, threshold: Output<Int>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val checkId: Output<String>? = null

A unique identifier for a check

Link copied to clipboard
val comparison: Output<String>? = null

The comparison operator used against the alert's threshold. Must be one of greater_than or less_than.

Link copied to clipboard
val name: Output<String>? = null

A human-friendly display name.

Link copied to clipboard

The notification settings for a trigger alert.

Link copied to clipboard
val period: Output<String>? = null

Period of time the threshold must be exceeded to trigger the alert. Must be one of 2m, 3m, 5m, 10m, 15m, 30m or 1h.

Link copied to clipboard
val threshold: Output<Int>? = null

The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type.

Link copied to clipboard
val type: Output<String>? = null

The type of health check to perform. Must be one of latency, down, down_global or ssl_expiry.

Functions

Link copied to clipboard
open override fun toJava(): UptimeAlertArgs