Resource Orchestration Service (ROS) supports event notifications about resource changes.

Background information

The event monitoring feature of CloudMonitor serves as a centralized platform that enables you to query system events generated for different Alibaba Cloud services and view event statistics. This allows you to monitor your Alibaba Cloud services. Event monitoring can send alert notifications when exceptions occur on your Alibaba Cloud services. You can also use event monitoring to automate exception handling. CloudMonitor is integrated into ROS. When the status of a stack changes, ROS sends an event notification to CloudMonitor. Then, CloudMonitor queries details about the event and sends alerts.

For more information about system events, see the following topics:

Notifications about stack states

Notifications about ROS stacks in the following states can be sent:

  • CREATE_FAILED
  • CREATE_COMPLETE
  • UPDATE_FAILED
  • UPDATE_COMPLETE
  • DELETE_FAILED
  • DELETE_COMPLETE
  • ROLLBACK_FAILED
  • ROLLBACK_COMPLETE
  • CREATE_ROLLBACK_FAILED
  • CREATE_ROLLBACK_COMPLETE

Notification format

CREATE_COMPLETE is used in the following example to show the format of event notifications for ROS:

{
    "ver": "1.0",
    "id": "939F2DC4-BA3E-4539-BB95-03A300D16****",
    "product": "ROS",
    "resourceId": "acs:ros:cn-hangzhou:151266687691****:stack/37811dc0-9c3a-4112-ba1e-b1988106****",
    "level": "INFO",
    "name": "Stack:StatusChange",
    "userId": "151266687691****",
    "eventTime": "20200616T220114.058+0800",
    "regionId": "cn-hangzhou",
    "content": {
        "callerId": "29154787464691****",
        "requestId": "939F2DC4-BA3E-4539-BB95-03A300D52467",
        "stackId": "37811dc0-9c3a-4112-ba1e-b1988106****",
        "stackName": "stack_2020-06-18stack",
        "status": "CREATE_COMPLETE",
        "statusReason": "Stack CREATE completed successfully"
    }
}

Event properties

The following table describes the fields included in event notifications and provides example values.

Field Description Example
id The ID of the event. 939F2DC4-BA3E-4539-BB95-03A300D16****
eventTime The time when the event occurred (UTC+8). 20200616T220114.058+0800
level The severity of the event. INFO
name The name of the event. Stack:StatusChange
product The name of the service. The value is set to ROS. ROS
regionId The ID of the region where the event occurred. cn-hangzhou
resourceId The Alibaba Cloud Resource Name (ARN) of the resource. acs:ros:cn-hangzhou:151266687691****:stack/37811dc0-9c3a-4112-ba1e-b1988106****
userId The ID of the Alibaba Cloud account. 151266687691****
content The details of the event. This field contains one or more parameters. None
The following table describes the fields included in content and provides example values.
Field Description Example
stackId The ID of the stack. 37811dc0-9c3a-4112-ba1e-b1988106****
stackName The name of the stack. stack_2020-06-18stack
status The status of the stack. CREATE_COMPLETE
statusReason The reason why the stack is in its current state. Stack CREATE completed successfully
callerId The ID of the Alibaba Cloud account or RAM user that is used to perform the stack. If you want to use an Alibaba Cloud account to perform the stack operation, the value is the ID of the Alibaba Cloud account. If you want to use a RAM user to perform the stack operation, the value is the ID of the RAM user. 29154787464691****
requestId The ID of the request. 939F2DC4-BA3E-4539-BB95-03A300D52467