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 typeValue of the type parameter
Graceful unpublishingmse:Agent:GracefulShutdown
Removal of outlier instancesmse:Agent:OutlierEjection
Recovery of outlier instance removalmse:Agent:OutlierRecover
Service authenticationmse:Agent:ServiceAuth
Notifications indicating that resource change logs are deliveredmse:Config:ConfigurationItemChangeNotification
Notifications indicating that a resource is evaluated as non-compliant is sentmse:Config:NonCompliantNotification
An operation is performed on a resourcemse:ActionTrail:AliyunServiceEvent
An API operation is calledmse:ActionTrail:ApiCall
An operation is performed in the consolemse:ActionTrail:ConsoleOperation

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

Graceful unpublishing

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 parameters contained in data.

ParameterTypeExampleDescription
frameworkStringSPRING CLOUDThe framework of the call.
Valid values:
  • SPRING CLOUD
  • DUBBO
extraInfoStringSUCCESS, no spring cloud registry foundThe message.
timestampTimestamp1596455074797The timestamp that indicates 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 parameters contained in data.

ParameterTypeExampleDescription
frameworkStringDUBBOThe framework of the call.
Valid values:
  • SPRING CLOUD
  • DUBBO
extraInfoString172.22.XX.XX:20880 IsolationContext{isolationTimeMultiple=780, recoverTime=1608518836265The message.
timestampTimestamp1608518536265The timestamp that indicates 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 parameters contained in data.

ParameterTypeExampleDescription
frameworkStringDUBBOThe framework of the call.
Valid values:
  • SPRING CLOUD
  • DUBBO
extraInfoString172.28.XX.XX:26880 IsolationContext{isolationTimeMultiple=1, recoverTime=1608445705043}The message.
timestampTimestamp1608445713989The timestamp that indicates when the outlier instance removal was recovered.