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 checks can be imported using the uptime alert's id, e.g.

$ pulumi import digitalocean:index/uptimeAlert:UptimeAlert target 5a4981aa-9653-4bd1-bef5-d6bff52042e4

Constructors

Link copied to clipboard
fun UptimeAlertArgs(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)

Functions

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

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.