MonitorAlertArgs

data class MonitorAlertArgs(val alerts: Output<MonitorAlertAlertsArgs>? = null, val compare: Output<String>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val entities: Output<List<String>>? = null, val tags: Output<List<String>>? = null, val type: Output<String>? = null, val value: Output<Double>? = null, val window: Output<String>? = null) : ConvertibleToJava<MonitorAlertArgs>

Provides a DigitalOcean Monitoring resource. Monitor alerts can be configured to alert about, e.g., disk or memory usage exceeding a certain threshold or traffic at a certain limit. Notifications can be sent to either an email address or a Slack channel.

Import

Monitor alerts can be imported using the monitor alert uuid, e.g.

$ pulumi import digitalocean:index/monitorAlert:MonitorAlert cpu_alert b8ecd2ab-2267-4a5e-8692-cbf1d32583e3

Constructors

Link copied to clipboard
constructor(alerts: Output<MonitorAlertAlertsArgs>? = null, compare: Output<String>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, entities: Output<List<String>>? = null, tags: Output<List<String>>? = null, type: Output<String>? = null, value: Output<Double>? = null, window: Output<String>? = null)

Properties

Link copied to clipboard
val alerts: Output<MonitorAlertAlertsArgs>? = null

How to send notifications about the alerts. This is a list with one element, . Note that for Slack, the DigitalOcean app needs to have permissions for your workspace. You can read more in Slack's documentation

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

The comparison for value. This may be either GreaterThan or LessThan.

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

The description of the alert.

Link copied to clipboard
val enabled: Output<Boolean>? = null

The status of the alert.

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

A list of IDs for the resources to which the alert policy applies.

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

A list of tags. When an included tag is added to a resource, the alert policy will apply to it.

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

The type of the alert. This may be one of v1/insights/droplet/load_1, v1/insights/droplet/load_5, v1/insights/droplet/load_15, v1/insights/droplet/memory_utilization_percent, v1/insights/droplet/disk_utilization_percent, v1/insights/droplet/cpu, v1/insights/droplet/disk_read, v1/insights/droplet/disk_write, v1/insights/droplet/public_outbound_bandwidth, v1/insights/droplet/public_inbound_bandwidth, v1/insights/droplet/private_outbound_bandwidth, v1/insights/droplet/private_inbound_bandwidth, v1/insights/lbaas/avg_cpu_utilization_percent, v1/insights/lbaas/connection_utilization_percent, v1/insights/lbaas/droplet_health, v1/insights/lbaas/tls_connections_per_second_utilization_percent, v1/insights/lbaas/increase_in_http_error_rate_percentage_5xx, v1/insights/lbaas/increase_in_http_error_rate_percentage_4xx, v1/insights/lbaas/increase_in_http_error_rate_count_5xx, v1/insights/lbaas/increase_in_http_error_rate_count_4xx, v1/insights/lbaas/high_http_request_response_time, v1/insights/lbaas/high_http_request_response_time_50p, v1/insights/lbaas/high_http_request_response_time_95p, v1/insights/lbaas/high_http_request_response_time_99p, v1/dbaas/alerts/load_15_alerts, v1/dbaas/alerts/cpu_alerts, v1/dbaas/alerts/memory_utilization_alerts, or v1/dbaas/alerts/disk_utilization_alerts.

Link copied to clipboard
val value: Output<Double>? = null

The value to start alerting at, e.g., 90% or 85Mbps. This is a floating-point number. DigitalOcean will show the correct unit in the web panel.

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

The time frame of the alert. Either 5m, 10m, 30m, or 1h.

Functions

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