This topic describes the types of Message Queue for Apache RocketMQ events that ActionTrail records or Cloud Config monitors and can be published to EventBridge as event sources.

Event types

The following table describes the types of Message Queue for Apache RocketMQ events that can be published to EventBridge.

EventValue of the type parameter
Overrun QPS in an instanceons:Instance:InstanceQpsThresholdExceeded
An instance is updatedons:Instance:InstanceMinerVersionUpgradeScheduled
An instance update starts to be executedons:Instance:InstanceMinerVersionUpgradeExecuting
An instance update is completedons:Instance:InstanceMinerVersionUpgradeExecuted
An instance update is canceledons:Instance:InstanceMinerVersionUpgradeCanceled
An operation is performed on a resourceons:ActionTrail:AliyunServiceEvent
An API operation is calledons:ActionTrail:ApiCall
An operation is performed in the consoleons:ActionTrail:ConsoleOperation
A resource change log is deliveredons:Config:ConfigurationItemChangeNotification
A notification that indicates a resource is evaluated as non-compliant is sentons:Config:NonCompliantNotification

For more information about the parameters defined in the CloudEvents specification, see Overview.

Overrun QPS in an instance

The following example shows the event that the EventBridge receives when the queries per second (QPS) of the instance exceeds the throttling threshold:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.ons",
    "specversion": "1.0",
    "subject": "acs.ons:cn-hangzhou:123456789098****:215672",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "ons:Instance:InstanceQpsThresholdExceeded",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "instanceId":"MQ_INST_gg****",
        "totalThrottleTimes":1300,
        "threshold":1000,
        "timestamp":1000000000000,
        "details":{
            "produceDetails":[
                {
                    "topic":"TRADE01",
                    "messageType":"normal|fifo|transaction|delay",
                    "throttleTimes":9999
                }
            ],
            "consumeDetails":[
                {
                    "topic":"TRADE01",
                    "consumerGroup":"GID-test",
                    "throttleTimes":100
                }
            ]
        }
    }
}
            

The following table describes the parameters contained in data.

ParameterTypeExampleDescription
instanceIdStringMQ_INST_gg****The ID of the Message Queue for Apache RocketMQ instance.
totalThrottleTimesNumber1300The total number of throttling times.
thresholdNumber1000The throttling threshold.
timestampNumber1000000000000The timestamp.
detailsObjectThe throttling details.
produceDetailsArrayThe throttling details of message sending.
topicStringTRADE01The topic that is throttled.
messageTypeStringnormal|fifo|transaction|delayThe type of the messages.
throttleTimesNumber9999The number of throttling times.
consumeDetailsArrayThe throttling details of message consumption.
consumerGroupStringGID-testThe ID of the consumer group.

An instance is updated

The following example shows the event data that is received by EventBridge when an instance is updated:

{
    "data":{
        "instanceId":"rmq-xxxxxxxx",
        "category":"maintenance",
        "level":"info",
        "details":{
          "destVersion":"5.0-rmq-20230324-1",
          "scheduleTime":"1678675586000",
          "scheduleLatestTime":"1678675586000",
          "upgradeType":"0",
          "taskId":"355****"
        }    
    },
    "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source":"acs.ons",
    "specversion":"1.0",
    "subject":"acs:rocketmq:cn-hangzhou:138015630679******:instance/rmq-******",
    "time":"2020-11-19T21:04:41",
    "type":"ons:Instance:InstanceMinerVersionUpgradeScheduled",
    "aliyunaccountid":"138015630679****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes parameters contained in data.

ParameterTypeExampleDescription
instanceIdStringrmq-xxxxxxxxThe instance ID.
categoryStringmaintenanceThe scenario. Valid values:
  • maintenance
  • client-status
levelStringinfoThe event level. Valid values:
  • critical
  • warning
  • info
detailsObjectThe event details.
destVersionString5.0-rmq-20230324-1The desired version.
scheduleTimeString1678675586000The scheduled update time. Unit: milliseconds.
scheduleLatestTimeString1678675586000The latest update time. Unit: milliseconds.
upgradeTypeString0The update type. Valid values:
  • 0: OPS update
  • 1: immediate update
  • 2: scheduled update
  • 3: update triggered by version expiration
taskIdString355****The ID of the update task.

An instance update starts to be executed

The following example shows the event data that is received by EventBridge when an instance update starts to be executed:

{
    "data":{
        "instanceId":"rmq-xxxxxxxx",
        "category":"maintenance",
        "level":"info",
        "details":{
          "originVersion":"5.0-rmq-20230324-1",
          "destVersion":"5.1-rmq-20230324-1",
          "scheduleTime":"1678675586000",
          "scheduleLatestTime":"1678675586000",
          "upgradeType":"0",
          "taskId":"355****"
        }    
    },
    "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source":"acs.ons",
    "specversion":"1.0",
    "subject":"acs:rocketmq:cn-hangzhou:138015630679****:instance/rmq-cn-*****",
    "time":"2020-11-19T21:04:41",
    "type":"ons:Instance:InstanceMinerVersionUpgradeExecuting",
    "aliyunaccountid":"138015630679****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes parameters contained in data.

ParameterTypeExampleDescription
instanceIdStringrmq-xxxxxxxxThe instance ID.
categoryStringmaintenanceThe scenario. Valid values:
  • maintenance
  • client-status
levelStringinfoThe event level. Valid values:
  • critical
  • warning
  • info
detailsObjectThe event details.
originVersionString5.0-rmq-20230324-1The current version.
destVersionString5.1-rmq-20230324-1The desired version.
scheduleTimeString1678675586000The scheduled execution time.
scheduleLatestTimeString1678675586000The latest execution time.
upgradeTypeString0The update type. Valid values:
  • 0: OPS update
  • 1: immediate update
  • 2: scheduled update
  • 3: update triggered by version expiration
taskIdString355****The ID of the update task.

An instance update is completed

The following example shows the event that EventBridge receives when an instance update is completed:

{
    "data":{
        "instanceId":"rmq-xxxxxxxx",
        "category":"maintenance",
        "level":"info",
        "details":{
          "destVersion":"5.1.1-update1111",
          "scheduleTime":"1678675586000",
          "scheduleLatestTime":"1678675586000",
          "upgradeType":"",
          "taskId":""
        }    
    },
    "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source":"acs.ons",
    "specversion":"1.0",
    "subject":"acs:rocketmq:cn-hangzhou:138015630679****:instance/rmq-******",
    "time":"2020-11-19T21:04:41",
    "type":"ons:Instance:InstanceMinerVersionUpgradeExecuted",
    "aliyunaccountid":"138015630679****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

For information about the parameters contained in data, see the field description table.

An instance update is canceled

The following example shows the event that EventBridge receives when an instance update is canceled:

{
    "data":{
        "instanceId":"rmq-xxxxxxxx",
        "category":"maintenance",
        "level":"info",
        "details":{
          "destVersion":"5.1.1-update1111",
          "scheduleTime":"1111",
          "scheduleLatestTime":"22222",
          "upgradeType":"",
          "taskId":"",
          "cancelReason":""
        }    
    },
    "id":"45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source":"acs.ons",
    "specversion":"1.0",
    "subject":"acs:rocketmq:cn-hangzhou:138015630679*****:instance/rmq-cn-wwo3******",
    "time":"2020-11-19T21:04:41",
    "type":"ons:Instance:InstanceMinerVersionUpgradeCanceled",
    "aliyunaccountid":"138015630679****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

For information about the parameters contained in data, see the field description table.