Event notifications

更新时间:
复制 MD 格式

Resource Orchestration Service (ROS) sends event notifications to Cloud Monitor when the status of a stack changes, enabling centralized event querying and automated alerting.

Background information

Cloud Monitor provides centralized event monitoring for all Alibaba Cloud products, helping you track resource status and receive alerts for system exceptions. ROS is integrated with Cloud Monitor. When the execution status of a stack changes, ROS sends an event notification to Cloud Monitor, which can then query the event and trigger alerts.

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

Notification statuses

ROS supports the following stack notification status codes:

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

Notification format

The following example shows a CREATE_COMPLETE event notification:

{
    "Status": "Normal",
    "InstanceName": "",
    "ResourceId": "acs:ros:cn-hangzhou:175458090349****:stack/a797d0e1-c067-472a-ba86-2f0cdcbb****",
    "Content": {
        "callerId": "22905089471272****",
        "requestId": "4D693712-0868-51DD-A736-4067AD7C0119",
        "stackId": "a797d0e1-c067-472a-ba86-2f0cdcbb****",
        "stackName": "diagnostic-dr-7a7c8fdc57e94f79****",
        "status": "CREATE_COMPLETE",
        "statusReason": "Stack CREATE completed successfully"
    },
    "Product": "ros",
    "Level": "INFO",
    "Time": 1663815166000,
    "RegionId": "cn-hangzhou",
    "Name": "Stack:StatusChange",
    "GroupId": "0"
}

Event properties

The following table describes the fields in an event notification.

Field Description Example
Status The status of the event. Normal
Time The time when the event occurred, in the UTC+8 time zone. 20200616T220114.058+0800
Level The event level. INFO
Name The name of the event. Stack:StatusChange
Product The product name. The value is ROS. ROS
RegionId The Alibaba Cloud region ID. cn-hangzhou
ResourceId The Alibaba Cloud Resource Name (ARN) of the resource. acs:ros:cn-hangzhou:151266687691****:stack/37811dc0-9c3a-4112-ba1e-b1988106****
InstanceName The instance name. N/A
GroupId The ID of the event group. 0
content The event details, which contain one or more parameters. N/A
content parameter fields
Field Description Example
stackId The stack ID. 37811dc0-9c3a-4112-ba1e-b1988106****
stackName The stack name. stack_2020-06-18stack
status The status of the stack. CREATE_COMPLETE
statusReason The reason for the stack status. Stack CREATE completed successfully
callerId The ID of the account that performed the stack operation. For an Alibaba Cloud account, this is the account ID. For a RAM user, this is the RAM user ID. 29154787464691****
requestId The request ID. 939F2DC4-BA3E-4539-BB95-03A300D52467