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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorAlert(name: string, args: MonitorAlertArgs, opts?: CustomResourceOptions);
@overload
def MonitorAlert(resource_name: str,
args: MonitorAlertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorAlert(resource_name: str,
opts: Optional[ResourceOptions] = None,
alerts: Optional[MonitorAlertAlertsArgs] = None,
compare: Optional[str] = None,
description: Optional[str] = None,
type: Optional[str] = None,
value: Optional[float] = None,
window: Optional[str] = None,
enabled: Optional[bool] = None,
entities: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitorAlertResource = new DigitalOcean.MonitorAlert("monitorAlertResource", new()
{
Alerts = new DigitalOcean.Inputs.MonitorAlertAlertsArgs
{
Emails = new[]
{
"string",
},
Slacks = new[]
{
new DigitalOcean.Inputs.MonitorAlertAlertsSlackArgs
{
Channel = "string",
Url = "string",
},
},
},
Compare = "string",
Description = "string",
Type = "string",
Value = 0,
Window = "string",
Enabled = false,
Entities = new[]
{
"string",
},
Tags = new[]
{
"string",
},
});
example, err := digitalocean.NewMonitorAlert(ctx, "monitorAlertResource", &digitalocean.MonitorAlertArgs{
Alerts: &digitalocean.MonitorAlertAlertsArgs{
Emails: pulumi.StringArray{
pulumi.String("string"),
},
Slacks: digitalocean.MonitorAlertAlertsSlackArray{
&digitalocean.MonitorAlertAlertsSlackArgs{
Channel: pulumi.String("string"),
Url: pulumi.String("string"),
},
},
},
Compare: pulumi.String("string"),
Description: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.Float64(0),
Window: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Entities: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var monitorAlertResource = new MonitorAlert("monitorAlertResource", MonitorAlertArgs.builder()
.alerts(MonitorAlertAlertsArgs.builder()
.emails("string")
.slacks(MonitorAlertAlertsSlackArgs.builder()
.channel("string")
.url("string")
.build())
.build())
.compare("string")
.description("string")
.type("string")
.value(0)
.window("string")
.enabled(false)
.entities("string")
.tags("string")
.build());
monitor_alert_resource = digitalocean.MonitorAlert("monitorAlertResource",
alerts={
"emails": ["string"],
"slacks": [{
"channel": "string",
"url": "string",
}],
},
compare="string",
description="string",
type="string",
value=0,
window="string",
enabled=False,
entities=["string"],
tags=["string"])
const monitorAlertResource = new digitalocean.MonitorAlert("monitorAlertResource", {
alerts: {
emails: ["string"],
slacks: [{
channel: "string",
url: "string",
}],
},
compare: "string",
description: "string",
type: "string",
value: 0,
window: "string",
enabled: false,
entities: ["string"],
tags: ["string"],
});
type: digitalocean:MonitorAlert
properties:
alerts:
emails:
- string
slacks:
- channel: string
url: string
compare: string
description: string
enabled: false
entities:
- string
tags:
- string
type: string
value: 0
window: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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 List<string>
- List of email addresses to sent notifications to
- Slacks
List<Pulumi.
Digital Ocean. Inputs. Monitor Alert Alerts Slack>
- Emails []string
- List of email addresses to sent notifications to
- Slacks
[]Monitor
Alert Alerts Slack
- emails List<String>
- List of email addresses to sent notifications to
- slacks
List<Monitor
Alert Alerts Slack>
- emails string[]
- List of email addresses to sent notifications to
- slacks
Monitor
Alert Alerts Slack[]
- emails Sequence[str]
- List of email addresses to sent notifications to
- slacks
Sequence[Monitor
Alert Alerts Slack]
- emails List<String>
- List of email addresses to sent notifications to
- 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitalocean
Terraform Provider.