Alert
Create a Alert Resource
new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);def Alert(resource_name, opts=None, alert_description=None, alert_displayname=None, alert_name=None, condition=None, dashboard=None, mute_until=None, notification_lists=None, notify_threshold=None, project_name=None, query_lists=None, schedule_interval=None, schedule_type=None, throttling=None, __props__=None);public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Alert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Alert resource accepts the following input properties:
- Alert
Displayname string Alert displayname.
- Alert
Name string Name of logstore for configuring alarm service.
- Condition string
Conditional expression, such as: count> 100.
- Dashboard string
- Notification
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Notification List Args> Alarm information notification list.
- Project
Name string The project name.
- Query
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Query List Args> Multiple conditions for configured alarm query.
- Alert
Description string Alert description.
- Mute
Until int Timestamp, notifications before closing again.
- Notify
Threshold int Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- Schedule
Interval string Execution interval. 60 seconds minimum, such as 60s, 1h.
- Schedule
Type string Default FixedRate. No need to configure this parameter.
- Throttling string
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
- Alert
Displayname string Alert displayname.
- Alert
Name string Name of logstore for configuring alarm service.
- Condition string
Conditional expression, such as: count> 100.
- Dashboard string
- Notification
Lists []AlertNotification List Alarm information notification list.
- Project
Name string The project name.
- Query
Lists []AlertQuery List Multiple conditions for configured alarm query.
- Alert
Description string Alert description.
- Mute
Until int Timestamp, notifications before closing again.
- Notify
Threshold int Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- Schedule
Interval string Execution interval. 60 seconds minimum, such as 60s, 1h.
- Schedule
Type string Default FixedRate. No need to configure this parameter.
- Throttling string
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
- alert
Displayname string Alert displayname.
- alert
Name string Name of logstore for configuring alarm service.
- condition string
Conditional expression, such as: count> 100.
- dashboard string
- notification
Lists AlertNotification List[] Alarm information notification list.
- project
Name string The project name.
- query
Lists AlertQuery List[] Multiple conditions for configured alarm query.
- alert
Description string Alert description.
- mute
Until number Timestamp, notifications before closing again.
- notify
Threshold number Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- schedule
Interval string Execution interval. 60 seconds minimum, such as 60s, 1h.
- schedule
Type string Default FixedRate. No need to configure this parameter.
- throttling string
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
- alert_
displayname str Alert displayname.
- alert_
name str Name of logstore for configuring alarm service.
- condition str
Conditional expression, such as: count> 100.
- dashboard str
- notification_
lists List[AlertNotification List] Alarm information notification list.
- project_
name str The project name.
- query_
lists List[AlertQuery List] Multiple conditions for configured alarm query.
- alert_
description str Alert description.
- mute_
until float Timestamp, notifications before closing again.
- notify_
threshold float Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- schedule_
interval str Execution interval. 60 seconds minimum, such as 60s, 1h.
- schedule_
type str Default FixedRate. No need to configure this parameter.
- throttling str
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:
Look up an Existing Alert Resource
Get an existing Alert 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?: AlertState, opts?: CustomResourceOptions): Alertstatic get(resource_name, id, opts=None, alert_description=None, alert_displayname=None, alert_name=None, condition=None, dashboard=None, mute_until=None, notification_lists=None, notify_threshold=None, project_name=None, query_lists=None, schedule_interval=None, schedule_type=None, throttling=None, __props__=None);func GetAlert(ctx *Context, name string, id IDInput, state *AlertState, opts ...ResourceOption) (*Alert, error)public static Alert Get(string name, Input<string> id, AlertState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Alert
Description string Alert description.
- Alert
Displayname string Alert displayname.
- Alert
Name string Name of logstore for configuring alarm service.
- Condition string
Conditional expression, such as: count> 100.
- Dashboard string
- Mute
Until int Timestamp, notifications before closing again.
- Notification
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Notification List Args> Alarm information notification list.
- Notify
Threshold int Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- Project
Name string The project name.
- Query
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Query List Args> Multiple conditions for configured alarm query.
- Schedule
Interval string Execution interval. 60 seconds minimum, such as 60s, 1h.
- Schedule
Type string Default FixedRate. No need to configure this parameter.
- Throttling string
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
- Alert
Description string Alert description.
- Alert
Displayname string Alert displayname.
- Alert
Name string Name of logstore for configuring alarm service.
- Condition string
Conditional expression, such as: count> 100.
- Dashboard string
- Mute
Until int Timestamp, notifications before closing again.
- Notification
Lists []AlertNotification List Alarm information notification list.
- Notify
Threshold int Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- Project
Name string The project name.
- Query
Lists []AlertQuery List Multiple conditions for configured alarm query.
- Schedule
Interval string Execution interval. 60 seconds minimum, such as 60s, 1h.
- Schedule
Type string Default FixedRate. No need to configure this parameter.
- Throttling string
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
- alert
Description string Alert description.
- alert
Displayname string Alert displayname.
- alert
Name string Name of logstore for configuring alarm service.
- condition string
Conditional expression, such as: count> 100.
- dashboard string
- mute
Until number Timestamp, notifications before closing again.
- notification
Lists AlertNotification List[] Alarm information notification list.
- notify
Threshold number Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- project
Name string The project name.
- query
Lists AlertQuery List[] Multiple conditions for configured alarm query.
- schedule
Interval string Execution interval. 60 seconds minimum, such as 60s, 1h.
- schedule
Type string Default FixedRate. No need to configure this parameter.
- throttling string
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
- alert_
description str Alert description.
- alert_
displayname str Alert displayname.
- alert_
name str Name of logstore for configuring alarm service.
- condition str
Conditional expression, such as: count> 100.
- dashboard str
- mute_
until float Timestamp, notifications before closing again.
- notification_
lists List[AlertNotification List] Alarm information notification list.
- notify_
threshold float Notification threshold, which is not notified until the number of triggers is reached. The default is 1.
- project_
name str The project name.
- query_
lists List[AlertQuery List] Multiple conditions for configured alarm query.
- schedule_
interval str Execution interval. 60 seconds minimum, such as 60s, 1h.
- schedule_
type str Default FixedRate. No need to configure this parameter.
- throttling str
Notification interval, default is no interval. Support number + unit type, for example 60s, 1h.
Supporting Types
AlertNotificationList
- Content string
Notice content of alarm.
- Type string
Notification type. support Email, SMS, DingTalk.
- Email
Lists List<string> Email address list.
- Mobile
Lists List<string> SMS sending mobile number.
- Service
Uri string Request address.
- Content string
Notice content of alarm.
- Type string
Notification type. support Email, SMS, DingTalk.
- Email
Lists []string Email address list.
- Mobile
Lists []string SMS sending mobile number.
- Service
Uri string Request address.
- content string
Notice content of alarm.
- type string
Notification type. support Email, SMS, DingTalk.
- email
Lists string[] Email address list.
- mobile
Lists string[] SMS sending mobile number.
- service
Uri string Request address.
- content str
Notice content of alarm.
- type str
Notification type. support Email, SMS, DingTalk.
- email
Lists List[str] Email address list.
- mobile
Lists List[str] SMS sending mobile number.
- service
Uri str Request address.
AlertQueryList
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.