This topic describes the types of Microservice Engine (MSE) events that can be published to EventBridge.

Event types

The following table describes the types of MSE events that can be published to EventBridge.

Event type Value of the type parameter
Operations performed by Alibaba Cloud on resources mse:ActionTrail:AliyunServiceEvent
API operation calls mse:ActionTrail:ApiCall
Operations performed in the console mse:ActionTrail:ConsoleOperation
Graceful release mse:Agent:GracefulShutdown
Removal of outlier instances mse:Agent:OutlierEjection
Recovery of outlier instance removal mse:Agent:OutlierRecover
Service authentication mse:Agent:ServiceAuth

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

Graceful release

The following example shows the event that EventBridge receives when an application is gracefully released:

{
    "specversion":"1.0",
    "subject":"",
    "source":"acs.mse",
    "data":{
        "framework":"SPRING CLOUD",
        "extraInfo":"SUCCESS, no spring cloud registry found",
        "timestamp":1596455074797
    },
    "datacontenttype":"application/json",
    "type":"mse:Agent:GracefulShutdown",
    "id":"0d6a3880-cc34-45ac-a53e-d26ae218****",
    "time":"2020-11-19T21:04:41+08:00",
    "aliyunaccountid":"123456789098****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
framework String SPRING CLOUD The framework of the call.
Valid values:
  • SPRING CLOUD
  • DUBBO
extraInfo String SUCCESS, no spring cloud registry found The message.
timestamp Timestamp 1596455074797 The timestamp when the application was gracefully released.

Removal of outlier instances

The following example shows the event that EventBridge receives when an outlier instance is removed from an application:

{
    "specversion":"1.0",
    "subject":"",
    "source":"acs.mse",
    "data":{
        "framework":"DUBBO",
        "extraInfo":"172.22.XX.XX:20880 IsolationContext{isolationTimeMultiple=780, recoverTime=1608518836265}",
        "timestamp":1608518536265
    },
    "datacontenttype":"application/json",
    "type":"mse:Agent:OutlierEjection",
    "id":"170d56b6-9efe-420b-affb-16ab9adb****",
    "time":"2020-11-19T21:04:41+08:00",
    "aliyunaccountid":"123456789098****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.22.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
framework String DUBBO The framework of the call.
Valid values:
  • SPRING CLOUD
  • DUBBO
extraInfo String 172.22.XX.XX:20880 IsolationContext{isolationTimeMultiple=780, recoverTime=1608518836265 The message.
timestamp Timestamp 1608518536265 The timestamp when the outlier instance was removed.

Recovery of outlier instance removal

The following example shows the event that EventBridge receives when outlier instance removal is recovered for an application:

{
    "specversion":"1.0",
    "subject":"",
    "source":"acs.mse",
    "data":{
        "framework":"DUBBO",
        "extraInfo":"172.28.XX.XX:26880 IsolationContext{isolationTimeMultiple=1, recoverTime=1608445705043}",
        "timestamp":1608445713989
    },
    "datacontenttype":"application/json",
    "type":"mse:Agent:OutlierRecover",
    "id":"715fa827-a373-4977-9a5a-9cb38025****",
    "time":"2020-11-19T21:04:41+08:00",
    "aliyunaccountid":"123456789098****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.28.XX.XX"
}

The following table describes the fields in the data parameter.

Field Type Example Description
framework String DUBBO The framework of the call.
Valid values:
  • SPRING CLOUD
  • DUBBO
extraInfo String 172.28.XX.XX:26880 IsolationContext{isolationTimeMultiple=1, recoverTime=1608445705043} The message.
timestamp Timestamp 1608445713989 The timestamp when outlier instance removal was recovered.