Package | Description |
---|---|
com.tencentcloudapi.as.v20180419 |
Modifier and Type | Method and Description |
---|---|
CreateLifecycleHookResponse |
AsClient.CreateLifecycleHook(CreateLifecycleHookRequest req)
本接口(CreateLifecycleHook)用于创建生命周期挂钩。
您可以为生命周期挂钩配置消息通知,弹性伸缩会通知您的CMQ消息队列,通知内容形如:
```
{
"Service": "Tencent Cloud Auto Scaling",
"Time": "2019-03-14T10:15:11Z",
"AppId": "1251783334",
"ActivityId": "asa-fznnvrja",
"AutoScalingGroupId": "asg-rrrrtttt",
"LifecycleHookId": "ash-xxxxyyyy",
"LifecycleHookName": "my-hook",
"LifecycleActionToken": "3080e1c9-0efe-4dd7-ad3b-90cd6618298f",
"InstanceId": "ins-aaaabbbb",
"LifecycleTransition": "INSTANCE_LAUNCHING",
"NotificationMetadata": ""
}
```
|
Copyright © 2019. All rights reserved.