digitalocean.MonitorAlert
Explore with Pulumi AI
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.
Note Currently, the DigitalOcean API only supports creating alerts for Droplets.
Create MonitorAlert Resource
new MonitorAlert(name: string, args: MonitorAlertArgs, opts?: CustomResourceOptions);
@overload
def MonitorAlert(resource_name: str,
opts: Optional[ResourceOptions] = None,
alerts: Optional[MonitorAlertAlertsArgs] = None,
compare: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
entities: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
value: Optional[float] = None,
window: Optional[str] = None)
@overload
def MonitorAlert(resource_name: str,
args: MonitorAlertArgs,
opts: Optional[ResourceOptions] = None)
func NewMonitorAlert(ctx *Context, name string, args MonitorAlertArgs, opts ...ResourceOption) (*MonitorAlert, error)
public MonitorAlert(string name, MonitorAlertArgs args, CustomResourceOptions? opts = null)
public MonitorAlert(String name, MonitorAlertArgs args)
public MonitorAlert(String name, MonitorAlertArgs args, CustomResourceOptions options)
type: digitalocean:MonitorAlert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitorAlertArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitorAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorAlertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MonitorAlert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MonitorAlert resource accepts the following input properties:
- Alerts
Pulumi.
Digital Ocean. Inputs. Monitor Alert Alerts 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
- Compare string
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- Description string
The description of the alert.
- Type string
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- Value double
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.
- Window string
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.- Enabled bool
The status of the alert.
- Entities List<string>
A list of IDs for the resources to which the alert policy applies.
- List<string>
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- Alerts
Monitor
Alert Alerts Args 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
- Compare string
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- Description string
The description of the alert.
- Type string
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- Value float64
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.
- Window string
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.- Enabled bool
The status of the alert.
- Entities []string
A list of IDs for the resources to which the alert policy applies.
- []string
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- alerts
Monitor
Alert Alerts 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
- compare String
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description String
The description of the alert.
- type String
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- value Double
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.
- window String
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.- enabled Boolean
The status of the alert.
- entities List<String>
A list of IDs for the resources to which the alert policy applies.
- List<String>
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- alerts
Monitor
Alert Alerts 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
- compare string
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description string
The description of the alert.
- type string
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- value number
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.
- window string
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.- enabled boolean
The status of the alert.
- entities string[]
A list of IDs for the resources to which the alert policy applies.
- string[]
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- alerts
Monitor
Alert Alerts Args 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
- compare str
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description str
The description of the alert.
- type str
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- value float
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.
- window str
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.- enabled bool
The status of the alert.
- entities Sequence[str]
A list of IDs for the resources to which the alert policy applies.
- Sequence[str]
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- alerts Property Map
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
- compare String
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description String
The description of the alert.
- type String
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- value Number
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.
- window String
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.- enabled Boolean
The status of the alert.
- entities List<String>
A list of IDs for the resources to which the alert policy applies.
- List<String>
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorAlert resource produces the following output properties:
Look up Existing MonitorAlert Resource
Get an existing MonitorAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitorAlertState, opts?: CustomResourceOptions): MonitorAlert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alerts: Optional[MonitorAlertAlertsArgs] = None,
compare: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
entities: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
uuid: Optional[str] = None,
value: Optional[float] = None,
window: Optional[str] = None) -> MonitorAlert
func GetMonitorAlert(ctx *Context, name string, id IDInput, state *MonitorAlertState, opts ...ResourceOption) (*MonitorAlert, error)
public static MonitorAlert Get(string name, Input<string> id, MonitorAlertState? state, CustomResourceOptions? opts = null)
public static MonitorAlert get(String name, Output<String> id, MonitorAlertState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alerts
Pulumi.
Digital Ocean. Inputs. Monitor Alert Alerts 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
- Compare string
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- Description string
The description of the alert.
- Enabled bool
The status of the alert.
- Entities List<string>
A list of IDs for the resources to which the alert policy applies.
- List<string>
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- Type string
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- Uuid string
The uuid of the alert.
- Value double
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.
- Window string
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.
- Alerts
Monitor
Alert Alerts Args 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
- Compare string
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- Description string
The description of the alert.
- Enabled bool
The status of the alert.
- Entities []string
A list of IDs for the resources to which the alert policy applies.
- []string
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- Type string
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- Uuid string
The uuid of the alert.
- Value float64
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.
- Window string
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.
- alerts
Monitor
Alert Alerts 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
- compare String
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description String
The description of the alert.
- enabled Boolean
The status of the alert.
- entities List<String>
A list of IDs for the resources to which the alert policy applies.
- List<String>
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- type String
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- uuid String
The uuid of the alert.
- value Double
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.
- window String
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.
- alerts
Monitor
Alert Alerts 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
- compare string
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description string
The description of the alert.
- enabled boolean
The status of the alert.
- entities string[]
A list of IDs for the resources to which the alert policy applies.
- string[]
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- type string
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- uuid string
The uuid of the alert.
- value number
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.
- window string
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.
- alerts
Monitor
Alert Alerts Args 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
- compare str
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description str
The description of the alert.
- enabled bool
The status of the alert.
- entities Sequence[str]
A list of IDs for the resources to which the alert policy applies.
- Sequence[str]
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- type str
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- uuid str
The uuid of the alert.
- value float
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.
- window str
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.
- alerts Property Map
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
- compare String
The comparison for
value
. This may be eitherGreaterThan
orLessThan
.- description String
The description of the alert.
- enabled Boolean
The status of the alert.
- entities List<String>
A list of IDs for the resources to which the alert policy applies.
- List<String>
A list of tags. When an included tag is added to a resource, the alert policy will apply to it.
- type String
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
, orv1/dbaas/alerts/disk_utilization_alerts
.- uuid String
The uuid of the alert.
- value Number
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.
- window String
The time frame of the alert. Either
5m
,10m
,30m
, or1h
.
Supporting Types
MonitorAlertAlerts, MonitorAlertAlertsArgs
- Emails []string
- Slacks
[]Monitor
Alert Alerts Slack
- emails List<String>
- slacks
List<Monitor
Alert Alerts Slack>
- emails string[]
- slacks
Monitor
Alert Alerts Slack[]
- emails Sequence[str]
- slacks
Sequence[Monitor
Alert Alerts Slack]
- emails List<String>
- slacks List<Property Map>
MonitorAlertAlertsSlack, MonitorAlertAlertsSlackArgs
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
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
digitalocean
Terraform Provider.