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);
func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
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:

AlertDisplayname string

Alert displayname.

AlertName string

Name of logstore for configuring alarm service.

Condition string

Conditional expression, such as: count> 100.

Dashboard string
NotificationLists List<Pulumi.AliCloud.Log.Inputs.AlertNotificationListArgs>

Alarm information notification list.

ProjectName string

The project name.

QueryLists List<Pulumi.AliCloud.Log.Inputs.AlertQueryListArgs>

Multiple conditions for configured alarm query.

AlertDescription string

Alert description.

MuteUntil int

Timestamp, notifications before closing again.

NotifyThreshold int

Notification threshold, which is not notified until the number of triggers is reached. The default is 1.

ScheduleInterval string

Execution interval. 60 seconds minimum, such as 60s, 1h.

ScheduleType 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.

AlertDisplayname string

Alert displayname.

AlertName string

Name of logstore for configuring alarm service.

Condition string

Conditional expression, such as: count> 100.

Dashboard string
NotificationLists []AlertNotificationList

Alarm information notification list.

ProjectName string

The project name.

QueryLists []AlertQueryList

Multiple conditions for configured alarm query.

AlertDescription string

Alert description.

MuteUntil int

Timestamp, notifications before closing again.

NotifyThreshold int

Notification threshold, which is not notified until the number of triggers is reached. The default is 1.

ScheduleInterval string

Execution interval. 60 seconds minimum, such as 60s, 1h.

ScheduleType 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.

alertDisplayname string

Alert displayname.

alertName string

Name of logstore for configuring alarm service.

condition string

Conditional expression, such as: count> 100.

dashboard string
notificationLists AlertNotificationList[]

Alarm information notification list.

projectName string

The project name.

queryLists AlertQueryList[]

Multiple conditions for configured alarm query.

alertDescription string

Alert description.

muteUntil number

Timestamp, notifications before closing again.

notifyThreshold number

Notification threshold, which is not notified until the number of triggers is reached. The default is 1.

scheduleInterval string

Execution interval. 60 seconds minimum, such as 60s, 1h.

scheduleType 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[AlertNotificationList]

Alarm information notification list.

project_name str

The project name.

query_lists List[AlertQueryList]

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:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

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): Alert
static 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:

AlertDescription string

Alert description.

AlertDisplayname string

Alert displayname.

AlertName string

Name of logstore for configuring alarm service.

Condition string

Conditional expression, such as: count> 100.

Dashboard string
MuteUntil int

Timestamp, notifications before closing again.

NotificationLists List<Pulumi.AliCloud.Log.Inputs.AlertNotificationListArgs>

Alarm information notification list.

NotifyThreshold int

Notification threshold, which is not notified until the number of triggers is reached. The default is 1.

ProjectName string

The project name.

QueryLists List<Pulumi.AliCloud.Log.Inputs.AlertQueryListArgs>

Multiple conditions for configured alarm query.

ScheduleInterval string

Execution interval. 60 seconds minimum, such as 60s, 1h.

ScheduleType 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.

AlertDescription string

Alert description.

AlertDisplayname string

Alert displayname.

AlertName string

Name of logstore for configuring alarm service.

Condition string

Conditional expression, such as: count> 100.

Dashboard string
MuteUntil int

Timestamp, notifications before closing again.

NotificationLists []AlertNotificationList

Alarm information notification list.

NotifyThreshold int

Notification threshold, which is not notified until the number of triggers is reached. The default is 1.

ProjectName string

The project name.

QueryLists []AlertQueryList

Multiple conditions for configured alarm query.

ScheduleInterval string

Execution interval. 60 seconds minimum, such as 60s, 1h.

ScheduleType 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.

alertDescription string

Alert description.

alertDisplayname string

Alert displayname.

alertName string

Name of logstore for configuring alarm service.

condition string

Conditional expression, such as: count> 100.

dashboard string
muteUntil number

Timestamp, notifications before closing again.

notificationLists AlertNotificationList[]

Alarm information notification list.

notifyThreshold number

Notification threshold, which is not notified until the number of triggers is reached. The default is 1.

projectName string

The project name.

queryLists AlertQueryList[]

Multiple conditions for configured alarm query.

scheduleInterval string

Execution interval. 60 seconds minimum, such as 60s, 1h.

scheduleType 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[AlertNotificationList]

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[AlertQueryList]

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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Content string

Notice content of alarm.

Type string

Notification type. support Email, SMS, DingTalk.

EmailLists List<string>

Email address list.

MobileLists List<string>

SMS sending mobile number.

ServiceUri string

Request address.

Content string

Notice content of alarm.

Type string

Notification type. support Email, SMS, DingTalk.

EmailLists []string

Email address list.

MobileLists []string

SMS sending mobile number.

ServiceUri string

Request address.

content string

Notice content of alarm.

type string

Notification type. support Email, SMS, DingTalk.

emailLists string[]

Email address list.

mobileLists string[]

SMS sending mobile number.

serviceUri string

Request address.

content str

Notice content of alarm.

type str

Notification type. support Email, SMS, DingTalk.

emailLists List[str]

Email address list.

mobileLists List[str]

SMS sending mobile number.

serviceUri str

Request address.

AlertQueryList

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ChartTitle string

chart title

End string

end time. example: 20s.

Logstore string

Query logstore

Query string

query corresponding to chart. example: * AND aliyun.

Start string

begin time. example: -60s.

TimeSpanType string

default Custom. No need to configure this parameter.

ChartTitle string

chart title

End string

end time. example: 20s.

Logstore string

Query logstore

Query string

query corresponding to chart. example: * AND aliyun.

Start string

begin time. example: -60s.

TimeSpanType string

default Custom. No need to configure this parameter.

chartTitle string

chart title

end string

end time. example: 20s.

logstore string

Query logstore

query string

query corresponding to chart. example: * AND aliyun.

start string

begin time. example: -60s.

timeSpanType string

default Custom. No need to configure this parameter.

chartTitle str

chart title

end str

end time. example: 20s.

logstore str

Query logstore

query str

query corresponding to chart. example: * AND aliyun.

start str

begin time. example: -60s.

timeSpanType str

default Custom. No need to configure this parameter.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.