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

Background information

The event monitoring feature of Cloud Monitor serves as a centralized platform that allows you to query system events generated for different Alibaba Cloud services and view event statistics. This allows you to track the use of Alibaba Cloud services. When exceptions occur on Alibaba Cloud services, event monitoring allows you to receive alert notifications and handle the exceptions in an automated process. Cloud Monitor is integrated into ROS. When the status of a stack changes, ROS sends an event notification to Cloud Monitor. Then, Cloud Monitor 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-03A300D******",
    "product": "ROS",
    "resourceId": "acs:ros:cn-hangzhou:175458********98:stack/37811dc0-9c3a-4112-ba1e-b198810*****",
    "level": "INFO",
    "name": "Stack:StatusChange",
    "userId": "175458********98",
    "eventTime": "20200616T220114.058+0800",
    "regionId": "cn-hangzhou",
    "content": {
        "callerId": "2915478746469*****",
        "requestId": "939F2DC4-BA3E-4539-BB95-03A300D*****",
        "stackId": "37811dc0-9c3a-4112-ba1e-b198810*****",
        "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 their descriptions.

Field Description Example
id The ID of the event. 939F2DC4-BA3E-4539-BB95-03A300D******
eventTime The time when the event occurred (UTC+8). 20200616T220114.058+0800
level The level 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:175458********98:stack/37811dc0-9c3a-4112-ba1e-b198810*****
userId The ID of the Alibaba Cloud account. 175458********98
content The details of the event. This field contains one or more parameters. None
The following table describes the fields included in content and their descriptions.
Field Description Example
stackId The ID of the stack. 37811dc0-9c3a-4112-ba1e-b198810*****
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 account that is used to perform the stack operation. 2915478746469*****
requestId The ID of the request. 939F2DC4-BA3E-4539-BB95-03A300D*****