Browse Source

由向召元发起的CMS SDK自动发布, 版本号:1.7.2

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 năm trước cách đây
mục cha
commit
d3721a9c67
79 tập tin đã thay đổi với 1206 bổ sung584 xóa
  1. 4 0
      ChangeLog.txt
  2. 1 1
      services/cms/access_key_get.go
  3. 1 1
      services/cms/add_my_group_instances.go
  4. 1 1
      services/cms/create_alarm.go
  5. 1 1
      services/cms/create_my_groups.go
  6. 1 1
      services/cms/create_notify_policy.go
  7. 1 1
      services/cms/delete_alarm.go
  8. 1 1
      services/cms/delete_custom_metric.go
  9. 1 1
      services/cms/delete_my_group_instances.go
  10. 1 1
      services/cms/delete_my_groups.go
  11. 1 1
      services/cms/delete_notify_policy.go
  12. 1 1
      services/cms/describe_alarm_history.go
  13. 0 107
      services/cms/disable_actice_alert.go
  14. 1 1
      services/cms/disable_active_alert.go
  15. 1 1
      services/cms/disable_alarm.go
  16. 0 106
      services/cms/enable_actice_alert.go
  17. 1 1
      services/cms/enable_active_alert.go
  18. 1 1
      services/cms/enable_alarm.go
  19. 2 2
      services/cms/get_my_groups.go
  20. 1 1
      services/cms/get_notify_policy.go
  21. 1 1
      services/cms/list_active_alert_rule.go
  22. 1 1
      services/cms/list_alarm.go
  23. 1 1
      services/cms/list_alarm_history.go
  24. 1 1
      services/cms/list_contact_group.go
  25. 1 1
      services/cms/list_my_group_categories.go
  26. 2 2
      services/cms/list_my_group_instances.go
  27. 2 2
      services/cms/list_my_group_instances_details.go
  28. 3 3
      services/cms/list_my_groups.go
  29. 1 1
      services/cms/list_notify_policy.go
  30. 0 107
      services/cms/list_product_of_actice_alert.go
  31. 1 1
      services/cms/list_product_of_active_alert.go
  32. 1 1
      services/cms/node_install.go
  33. 3 3
      services/cms/node_list.go
  34. 2 2
      services/cms/node_process_create.go
  35. 1 1
      services/cms/node_process_delete.go
  36. 1 1
      services/cms/node_processes.go
  37. 1 1
      services/cms/node_status.go
  38. 1 1
      services/cms/node_status_list.go
  39. 1 1
      services/cms/node_uninstall.go
  40. 1 1
      services/cms/profile_get.go
  41. 1 1
      services/cms/profile_set.go
  42. 1 1
      services/cms/put_custom_metric.go
  43. 1 1
      services/cms/put_event.go
  44. 1 1
      services/cms/put_metric_data.go
  45. 0 105
      services/cms/put_system_event.go
  46. 6 4
      services/cms/query_custom_event_count.go
  47. 6 4
      services/cms/query_custom_event_detail.go
  48. 6 4
      services/cms/query_custom_event_histogram.go
  49. 1 1
      services/cms/query_custom_metric_list.go
  50. 116 0
      services/cms/query_metric_data.go
  51. 2 3
      services/cms/query_metric_last.go
  52. 2 3
      services/cms/query_metric_list.go
  53. 118 0
      services/cms/query_metric_top.go
  54. 6 4
      services/cms/query_system_event_count.go
  55. 6 4
      services/cms/query_system_event_detail.go
  56. 6 4
      services/cms/query_system_event_histogram.go
  57. 11 11
      services/cms/struct_alarm.go
  58. 12 23
      services/cms/struct_alarm_history.go
  59. 43 0
      services/cms/struct_alarm_history_in_describe_alarm_history.go
  60. 0 32
      services/cms/struct_alarm_history_in_list_alarm_history.go
  61. 1 1
      services/cms/struct_alarm_history_list_in_describe_alarm_history.go
  62. 1 1
      services/cms/struct_alarm_history_list_in_list_alarm_history.go
  63. 2 2
      services/cms/struct_group.go
  64. 21 0
      services/cms/struct_instance_list_in_task_config_list.go
  65. 21 0
      services/cms/struct_instance_list_in_task_config_unhealthy.go
  66. 30 0
      services/cms/struct_node_task_config.go
  67. 22 0
      services/cms/struct_node_task_instance.go
  68. 7 7
      services/cms/struct_resource.go
  69. 21 0
      services/cms/struct_task_list.go
  70. 21 0
      services/cms/struct_unhealthy_list.go
  71. 114 0
      services/cms/task_config_create.go
  72. 106 0
      services/cms/task_config_delete.go
  73. 107 0
      services/cms/task_config_enable.go
  74. 115 0
      services/cms/task_config_list.go
  75. 114 0
      services/cms/task_config_modify.go
  76. 107 0
      services/cms/task_config_unhealthy.go
  77. 1 1
      services/cms/update_alarm.go
  78. 1 1
      services/cms/update_my_group_instances.go
  79. 1 1
      services/cms/update_my_groups.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-04-09 Version: 1.7.2
+1, Add api: QueryMetricData, QueryMetricTop, TaskConfigCreate, TaskConfigDelete, TaskConfigEnable, TaskConfigList, TaskConfigModify, TaskConfigUnhealthy
+2, Remove api: PutSystemEvent 
+
 2018-04-08 Version: 1.7.0
 1, Add voice asynchronous scan interface.
 

+ 1 - 1
services/cms/access_key_get.go

@@ -96,7 +96,7 @@ func CreateAccessKeyGetRequest() (request *AccessKeyGetRequest) {
 	request = &AccessKeyGetRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "AccessKeyGet", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "AccessKeyGet", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/add_my_group_instances.go

@@ -94,7 +94,7 @@ func CreateAddMyGroupInstancesRequest() (request *AddMyGroupInstancesRequest) {
 	request = &AddMyGroupInstancesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "AddMyGroupInstances", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "AddMyGroupInstances", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/create_alarm.go

@@ -109,7 +109,7 @@ func CreateCreateAlarmRequest() (request *CreateAlarmRequest) {
 	request = &CreateAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "CreateAlarm", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "CreateAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/create_my_groups.go

@@ -98,7 +98,7 @@ func CreateCreateMyGroupsRequest() (request *CreateMyGroupsRequest) {
 	request = &CreateMyGroupsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "CreateMyGroups", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "CreateMyGroups", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/create_notify_policy.go

@@ -98,7 +98,7 @@ func CreateCreateNotifyPolicyRequest() (request *CreateNotifyPolicyRequest) {
 	request = &CreateNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "CreateNotifyPolicy", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "CreateNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_alarm.go

@@ -94,7 +94,7 @@ func CreateDeleteAlarmRequest() (request *DeleteAlarmRequest) {
 	request = &DeleteAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteAlarm", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_custom_metric.go

@@ -96,7 +96,7 @@ func CreateDeleteCustomMetricRequest() (request *DeleteCustomMetricRequest) {
 	request = &DeleteCustomMetricRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteCustomMetric", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteCustomMetric", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_my_group_instances.go

@@ -94,7 +94,7 @@ func CreateDeleteMyGroupInstancesRequest() (request *DeleteMyGroupInstancesReque
 	request = &DeleteMyGroupInstancesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteMyGroupInstances", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteMyGroupInstances", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_my_groups.go

@@ -94,7 +94,7 @@ func CreateDeleteMyGroupsRequest() (request *DeleteMyGroupsRequest) {
 	request = &DeleteMyGroupsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteMyGroups", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteMyGroups", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/delete_notify_policy.go

@@ -97,7 +97,7 @@ func CreateDeleteNotifyPolicyRequest() (request *DeleteNotifyPolicyRequest) {
 	request = &DeleteNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DeleteNotifyPolicy", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/describe_alarm_history.go

@@ -107,7 +107,7 @@ func CreateDescribeAlarmHistoryRequest() (request *DescribeAlarmHistoryRequest)
 	request = &DescribeAlarmHistoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DescribeAlarmHistory", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeAlarmHistory", "cms", "openAPI")
 	return
 }
 

+ 0 - 107
services/cms/disable_actice_alert.go

@@ -1,107 +0,0 @@
-package cms
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// DisableActiceAlert invokes the cms.DisableActiceAlert API synchronously
-// api document: https://help.aliyun.com/api/cms/disableacticealert.html
-func (client *Client) DisableActiceAlert(request *DisableActiceAlertRequest) (response *DisableActiceAlertResponse, err error) {
-	response = CreateDisableActiceAlertResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DisableActiceAlertWithChan invokes the cms.DisableActiceAlert API asynchronously
-// api document: https://help.aliyun.com/api/cms/disableacticealert.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DisableActiceAlertWithChan(request *DisableActiceAlertRequest) (<-chan *DisableActiceAlertResponse, <-chan error) {
-	responseChan := make(chan *DisableActiceAlertResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DisableActiceAlert(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DisableActiceAlertWithCallback invokes the cms.DisableActiceAlert API asynchronously
-// api document: https://help.aliyun.com/api/cms/disableacticealert.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DisableActiceAlertWithCallback(request *DisableActiceAlertRequest, callback func(response *DisableActiceAlertResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DisableActiceAlertResponse
-		var err error
-		defer close(result)
-		response, err = client.DisableActiceAlert(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DisableActiceAlertRequest is the request struct for api DisableActiceAlert
-type DisableActiceAlertRequest struct {
-	*requests.RpcRequest
-	Product string `position:"Query" name:"Product"`
-	UserId  string `position:"Query" name:"UserId"`
-}
-
-// DisableActiceAlertResponse is the response struct for api DisableActiceAlert
-type DisableActiceAlertResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Success   bool   `json:"Success" xml:"Success"`
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-}
-
-// CreateDisableActiceAlertRequest creates a request to invoke DisableActiceAlert API
-func CreateDisableActiceAlertRequest() (request *DisableActiceAlertRequest) {
-	request = &DisableActiceAlertRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DisableActiceAlert", "cms", "openAPI")
-	return
-}
-
-// CreateDisableActiceAlertResponse creates a response to parse from DisableActiceAlert response
-func CreateDisableActiceAlertResponse() (response *DisableActiceAlertResponse) {
-	response = &DisableActiceAlertResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cms/disable_active_alert.go

@@ -94,7 +94,7 @@ func CreateDisableActiveAlertRequest() (request *DisableActiveAlertRequest) {
 	request = &DisableActiveAlertRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DisableActiveAlert", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DisableActiveAlert", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/disable_alarm.go

@@ -94,7 +94,7 @@ func CreateDisableAlarmRequest() (request *DisableAlarmRequest) {
 	request = &DisableAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "DisableAlarm", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "DisableAlarm", "cms", "openAPI")
 	return
 }
 

+ 0 - 106
services/cms/enable_actice_alert.go

@@ -1,106 +0,0 @@
-package cms
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// EnableActiceAlert invokes the cms.EnableActiceAlert API synchronously
-// api document: https://help.aliyun.com/api/cms/enableacticealert.html
-func (client *Client) EnableActiceAlert(request *EnableActiceAlertRequest) (response *EnableActiceAlertResponse, err error) {
-	response = CreateEnableActiceAlertResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// EnableActiceAlertWithChan invokes the cms.EnableActiceAlert API asynchronously
-// api document: https://help.aliyun.com/api/cms/enableacticealert.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) EnableActiceAlertWithChan(request *EnableActiceAlertRequest) (<-chan *EnableActiceAlertResponse, <-chan error) {
-	responseChan := make(chan *EnableActiceAlertResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.EnableActiceAlert(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// EnableActiceAlertWithCallback invokes the cms.EnableActiceAlert API asynchronously
-// api document: https://help.aliyun.com/api/cms/enableacticealert.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) EnableActiceAlertWithCallback(request *EnableActiceAlertRequest, callback func(response *EnableActiceAlertResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *EnableActiceAlertResponse
-		var err error
-		defer close(result)
-		response, err = client.EnableActiceAlert(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// EnableActiceAlertRequest is the request struct for api EnableActiceAlert
-type EnableActiceAlertRequest struct {
-	*requests.RpcRequest
-	Product string `position:"Query" name:"Product"`
-	UserId  string `position:"Query" name:"UserId"`
-}
-
-// EnableActiceAlertResponse is the response struct for api EnableActiceAlert
-type EnableActiceAlertResponse struct {
-	*responses.BaseResponse
-	Success bool   `json:"Success" xml:"Success"`
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-}
-
-// CreateEnableActiceAlertRequest creates a request to invoke EnableActiceAlert API
-func CreateEnableActiceAlertRequest() (request *EnableActiceAlertRequest) {
-	request = &EnableActiceAlertRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "EnableActiceAlert", "cms", "openAPI")
-	return
-}
-
-// CreateEnableActiceAlertResponse creates a response to parse from EnableActiceAlert response
-func CreateEnableActiceAlertResponse() (response *EnableActiceAlertResponse) {
-	response = &EnableActiceAlertResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cms/enable_active_alert.go

@@ -93,7 +93,7 @@ func CreateEnableActiveAlertRequest() (request *EnableActiveAlertRequest) {
 	request = &EnableActiveAlertRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "EnableActiveAlert", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "EnableActiveAlert", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/enable_alarm.go

@@ -94,7 +94,7 @@ func CreateEnableAlarmRequest() (request *EnableAlarmRequest) {
 	request = &EnableAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "EnableAlarm", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "EnableAlarm", "cms", "openAPI")
 	return
 }
 

+ 2 - 2
services/cms/get_my_groups.go

@@ -76,10 +76,10 @@ func (client *Client) GetMyGroupsWithCallback(request *GetMyGroupsRequest, callb
 // GetMyGroupsRequest is the request struct for api GetMyGroups
 type GetMyGroupsRequest struct {
 	*requests.RpcRequest
+	InstanceId          string           `position:"Query" name:"InstanceId"`
 	GroupId             requests.Integer `position:"Query" name:"GroupId"`
 	Type                string           `position:"Query" name:"Type"`
 	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
-	InstanceId          string           `position:"Query" name:"InstanceId"`
 	BindUrl             string           `position:"Query" name:"BindUrl"`
 	GroupName           string           `position:"Query" name:"GroupName"`
 }
@@ -99,7 +99,7 @@ func CreateGetMyGroupsRequest() (request *GetMyGroupsRequest) {
 	request = &GetMyGroupsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "GetMyGroups", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "GetMyGroups", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/get_notify_policy.go

@@ -97,7 +97,7 @@ func CreateGetNotifyPolicyRequest() (request *GetNotifyPolicyRequest) {
 	request = &GetNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "GetNotifyPolicy", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "GetNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_active_alert_rule.go

@@ -95,7 +95,7 @@ func CreateListActiveAlertRuleRequest() (request *ListActiveAlertRuleRequest) {
 	request = &ListActiveAlertRuleRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListActiveAlertRule", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListActiveAlertRule", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_alarm.go

@@ -104,7 +104,7 @@ func CreateListAlarmRequest() (request *ListAlarmRequest) {
 	request = &ListAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListAlarm", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_alarm_history.go

@@ -100,7 +100,7 @@ func CreateListAlarmHistoryRequest() (request *ListAlarmHistoryRequest) {
 	request = &ListAlarmHistoryRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListAlarmHistory", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListAlarmHistory", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_contact_group.go

@@ -98,7 +98,7 @@ func CreateListContactGroupRequest() (request *ListContactGroupRequest) {
 	request = &ListContactGroupRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListContactGroup", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListContactGroup", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_my_group_categories.go

@@ -94,7 +94,7 @@ func CreateListMyGroupCategoriesRequest() (request *ListMyGroupCategoriesRequest
 	request = &ListMyGroupCategoriesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListMyGroupCategories", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroupCategories", "cms", "openAPI")
 	return
 }
 

+ 2 - 2
services/cms/list_my_group_instances.go

@@ -77,8 +77,8 @@ func (client *Client) ListMyGroupInstancesWithCallback(request *ListMyGroupInsta
 type ListMyGroupInstancesRequest struct {
 	*requests.RpcRequest
 	Total      requests.Boolean `position:"Query" name:"Total"`
-	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	GroupId    requests.Integer `position:"Query" name:"GroupId"`
 	Category   string           `position:"Query" name:"Category"`
 }
@@ -101,7 +101,7 @@ func CreateListMyGroupInstancesRequest() (request *ListMyGroupInstancesRequest)
 	request = &ListMyGroupInstancesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListMyGroupInstances", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroupInstances", "cms", "openAPI")
 	return
 }
 

+ 2 - 2
services/cms/list_my_group_instances_details.go

@@ -76,9 +76,9 @@ func (client *Client) ListMyGroupInstancesDetailsWithCallback(request *ListMyGro
 // ListMyGroupInstancesDetailsRequest is the request struct for api ListMyGroupInstancesDetails
 type ListMyGroupInstancesDetailsRequest struct {
 	*requests.RpcRequest
+	Total      requests.Boolean `position:"Query" name:"Total"`
 	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
-	Total      requests.Boolean `position:"Query" name:"Total"`
 	GroupId    requests.Integer `position:"Query" name:"GroupId"`
 	Category   string           `position:"Query" name:"Category"`
 }
@@ -101,7 +101,7 @@ func CreateListMyGroupInstancesDetailsRequest() (request *ListMyGroupInstancesDe
 	request = &ListMyGroupInstancesDetailsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListMyGroupInstancesDetails", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroupInstancesDetails", "cms", "openAPI")
 	return
 }
 

+ 3 - 3
services/cms/list_my_groups.go

@@ -76,11 +76,11 @@ func (client *Client) ListMyGroupsWithCallback(request *ListMyGroupsRequest, cal
 // ListMyGroupsRequest is the request struct for api ListMyGroups
 type ListMyGroupsRequest struct {
 	*requests.RpcRequest
+	Keyword             string           `position:"Query" name:"Keyword"`
 	Type                string           `position:"Query" name:"Type"`
-	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
 	PageNumber          requests.Integer `position:"Query" name:"PageNumber"`
 	PageSize            requests.Integer `position:"Query" name:"PageSize"`
-	Keyword             string           `position:"Query" name:"Keyword"`
+	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
 	InstanceId          string           `position:"Query" name:"InstanceId"`
 	BindUrls            string           `position:"Query" name:"BindUrls"`
 	GroupName           string           `position:"Query" name:"GroupName"`
@@ -104,7 +104,7 @@ func CreateListMyGroupsRequest() (request *ListMyGroupsRequest) {
 	request = &ListMyGroupsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListMyGroups", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListMyGroups", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/list_notify_policy.go

@@ -99,7 +99,7 @@ func CreateListNotifyPolicyRequest() (request *ListNotifyPolicyRequest) {
 	request = &ListNotifyPolicyRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListNotifyPolicy", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListNotifyPolicy", "cms", "openAPI")
 	return
 }
 

+ 0 - 107
services/cms/list_product_of_actice_alert.go

@@ -1,107 +0,0 @@
-package cms
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// ListProductOfActiceAlert invokes the cms.ListProductOfActiceAlert API synchronously
-// api document: https://help.aliyun.com/api/cms/listproductofacticealert.html
-func (client *Client) ListProductOfActiceAlert(request *ListProductOfActiceAlertRequest) (response *ListProductOfActiceAlertResponse, err error) {
-	response = CreateListProductOfActiceAlertResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ListProductOfActiceAlertWithChan invokes the cms.ListProductOfActiceAlert API asynchronously
-// api document: https://help.aliyun.com/api/cms/listproductofacticealert.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ListProductOfActiceAlertWithChan(request *ListProductOfActiceAlertRequest) (<-chan *ListProductOfActiceAlertResponse, <-chan error) {
-	responseChan := make(chan *ListProductOfActiceAlertResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ListProductOfActiceAlert(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ListProductOfActiceAlertWithCallback invokes the cms.ListProductOfActiceAlert API asynchronously
-// api document: https://help.aliyun.com/api/cms/listproductofacticealert.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ListProductOfActiceAlertWithCallback(request *ListProductOfActiceAlertRequest, callback func(response *ListProductOfActiceAlertResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ListProductOfActiceAlertResponse
-		var err error
-		defer close(result)
-		response, err = client.ListProductOfActiceAlert(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ListProductOfActiceAlertRequest is the request struct for api ListProductOfActiceAlert
-type ListProductOfActiceAlertRequest struct {
-	*requests.RpcRequest
-	UserId string `position:"Query" name:"UserId"`
-}
-
-// ListProductOfActiceAlertResponse is the response struct for api ListProductOfActiceAlert
-type ListProductOfActiceAlertResponse struct {
-	*responses.BaseResponse
-	RequestId  string `json:"RequestId" xml:"RequestId"`
-	Success    bool   `json:"Success" xml:"Success"`
-	Code       int    `json:"Code" xml:"Code"`
-	Message    string `json:"Message" xml:"Message"`
-	Datapoints string `json:"Datapoints" xml:"Datapoints"`
-}
-
-// CreateListProductOfActiceAlertRequest creates a request to invoke ListProductOfActiceAlert API
-func CreateListProductOfActiceAlertRequest() (request *ListProductOfActiceAlertRequest) {
-	request = &ListProductOfActiceAlertRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListProductOfActiceAlert", "cms", "openAPI")
-	return
-}
-
-// CreateListProductOfActiceAlertResponse creates a response to parse from ListProductOfActiceAlert response
-func CreateListProductOfActiceAlertResponse() (response *ListProductOfActiceAlertResponse) {
-	response = &ListProductOfActiceAlertResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 1
services/cms/list_product_of_active_alert.go

@@ -94,7 +94,7 @@ func CreateListProductOfActiveAlertRequest() (request *ListProductOfActiveAlertR
 	request = &ListProductOfActiveAlertRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ListProductOfActiveAlert", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListProductOfActiveAlert", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/node_install.go

@@ -95,7 +95,7 @@ func CreateNodeInstallRequest() (request *NodeInstallRequest) {
 	request = &NodeInstallRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeInstall", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeInstall", "cms", "openAPI")
 	return
 }
 

+ 3 - 3
services/cms/node_list.go

@@ -76,12 +76,12 @@ func (client *Client) NodeListWithCallback(request *NodeListRequest, callback fu
 // NodeListRequest is the request struct for api NodeList
 type NodeListRequest struct {
 	*requests.RpcRequest
+	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
+	KeyWord       string           `position:"Query" name:"KeyWord"`
 	UserId        requests.Integer `position:"Query" name:"UserId"`
 	HostName      string           `position:"Query" name:"HostName"`
-	KeyWord       string           `position:"Query" name:"KeyWord"`
 	InstanceIds   string           `position:"Query" name:"InstanceIds"`
 	SerialNumbers string           `position:"Query" name:"SerialNumbers"`
-	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
 	PageSize      requests.Integer `position:"Query" name:"PageSize"`
 	Status        string           `position:"Query" name:"Status"`
 }
@@ -105,7 +105,7 @@ func CreateNodeListRequest() (request *NodeListRequest) {
 	request = &NodeListRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeList", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeList", "cms", "openAPI")
 	return
 }
 

+ 2 - 2
services/cms/node_process_create.go

@@ -76,9 +76,9 @@ func (client *Client) NodeProcessCreateWithCallback(request *NodeProcessCreateRe
 // NodeProcessCreateRequest is the request struct for api NodeProcessCreate
 type NodeProcessCreateRequest struct {
 	*requests.RpcRequest
+	ProcessName string `position:"Query" name:"ProcessName"`
 	InstanceId  string `position:"Query" name:"InstanceId"`
 	Name        string `position:"Query" name:"Name"`
-	ProcessName string `position:"Query" name:"ProcessName"`
 	ProcessUser string `position:"Query" name:"ProcessUser"`
 	Command     string `position:"Query" name:"Command"`
 }
@@ -97,7 +97,7 @@ func CreateNodeProcessCreateRequest() (request *NodeProcessCreateRequest) {
 	request = &NodeProcessCreateRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeProcessCreate", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeProcessCreate", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/node_process_delete.go

@@ -95,7 +95,7 @@ func CreateNodeProcessDeleteRequest() (request *NodeProcessDeleteRequest) {
 	request = &NodeProcessDeleteRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeProcessDelete", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeProcessDelete", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/node_processes.go

@@ -94,7 +94,7 @@ func CreateNodeProcessesRequest() (request *NodeProcessesRequest) {
 	request = &NodeProcessesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeProcesses", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeProcesses", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/node_status.go

@@ -96,7 +96,7 @@ func CreateNodeStatusRequest() (request *NodeStatusRequest) {
 	request = &NodeStatusRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeStatus", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeStatus", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/node_status_list.go

@@ -94,7 +94,7 @@ func CreateNodeStatusListRequest() (request *NodeStatusListRequest) {
 	request = &NodeStatusListRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeStatusList", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeStatusList", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/node_uninstall.go

@@ -93,7 +93,7 @@ func CreateNodeUninstallRequest() (request *NodeUninstallRequest) {
 	request = &NodeUninstallRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "NodeUninstall", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "NodeUninstall", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/profile_get.go

@@ -97,7 +97,7 @@ func CreateProfileGetRequest() (request *ProfileGetRequest) {
 	request = &ProfileGetRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ProfileGet", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ProfileGet", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/profile_set.go

@@ -96,7 +96,7 @@ func CreateProfileSetRequest() (request *ProfileSetRequest) {
 	request = &ProfileSetRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "ProfileSet", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "ProfileSet", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/put_custom_metric.go

@@ -92,7 +92,7 @@ func CreatePutCustomMetricRequest() (request *PutCustomMetricRequest) {
 	request = &PutCustomMetricRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "PutCustomMetric", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutCustomMetric", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/put_event.go

@@ -92,7 +92,7 @@ func CreatePutEventRequest() (request *PutEventRequest) {
 	request = &PutEventRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "PutEvent", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutEvent", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/put_metric_data.go

@@ -94,7 +94,7 @@ func CreatePutMetricDataRequest() (request *PutMetricDataRequest) {
 	request = &PutMetricDataRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "PutMetricData", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutMetricData", "cms", "openAPI")
 	return
 }
 

+ 0 - 105
services/cms/put_system_event.go

@@ -1,105 +0,0 @@
-package cms
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-import (
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
-	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
-)
-
-// PutSystemEvent invokes the cms.PutSystemEvent API synchronously
-// api document: https://help.aliyun.com/api/cms/putsystemevent.html
-func (client *Client) PutSystemEvent(request *PutSystemEventRequest) (response *PutSystemEventResponse, err error) {
-	response = CreatePutSystemEventResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// PutSystemEventWithChan invokes the cms.PutSystemEvent API asynchronously
-// api document: https://help.aliyun.com/api/cms/putsystemevent.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) PutSystemEventWithChan(request *PutSystemEventRequest) (<-chan *PutSystemEventResponse, <-chan error) {
-	responseChan := make(chan *PutSystemEventResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.PutSystemEvent(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// PutSystemEventWithCallback invokes the cms.PutSystemEvent API asynchronously
-// api document: https://help.aliyun.com/api/cms/putsystemevent.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) PutSystemEventWithCallback(request *PutSystemEventRequest, callback func(response *PutSystemEventResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *PutSystemEventResponse
-		var err error
-		defer close(result)
-		response, err = client.PutSystemEvent(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// PutSystemEventRequest is the request struct for api PutSystemEvent
-type PutSystemEventRequest struct {
-	*requests.RpcRequest
-	EventInfo string `position:"Query" name:"EventInfo"`
-}
-
-// PutSystemEventResponse is the response struct for api PutSystemEvent
-type PutSystemEventResponse struct {
-	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
-}
-
-// CreatePutSystemEventRequest creates a request to invoke PutSystemEvent API
-func CreatePutSystemEventRequest() (request *PutSystemEventRequest) {
-	request = &PutSystemEventRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "PutSystemEvent", "cms", "openAPI")
-	return
-}
-
-// CreatePutSystemEventResponse creates a response to parse from PutSystemEvent response
-func CreatePutSystemEventResponse() (response *PutSystemEventResponse) {
-	response = &PutSystemEventResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 6 - 4
services/cms/query_custom_event_count.go

@@ -82,9 +82,11 @@ type QueryCustomEventCountRequest struct {
 // QueryCustomEventCountResponse is the response struct for api QueryCustomEventCount
 type QueryCustomEventCountResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
 }
 
 // CreateQueryCustomEventCountRequest creates a request to invoke QueryCustomEventCount API
@@ -92,7 +94,7 @@ func CreateQueryCustomEventCountRequest() (request *QueryCustomEventCountRequest
 	request = &QueryCustomEventCountRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomEventCount", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomEventCount", "cms", "openAPI")
 	return
 }
 

+ 6 - 4
services/cms/query_custom_event_detail.go

@@ -82,9 +82,11 @@ type QueryCustomEventDetailRequest struct {
 // QueryCustomEventDetailResponse is the response struct for api QueryCustomEventDetail
 type QueryCustomEventDetailResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   string `json:"Success" xml:"Success"`
 }
 
 // CreateQueryCustomEventDetailRequest creates a request to invoke QueryCustomEventDetail API
@@ -92,7 +94,7 @@ func CreateQueryCustomEventDetailRequest() (request *QueryCustomEventDetailReque
 	request = &QueryCustomEventDetailRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomEventDetail", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomEventDetail", "cms", "openAPI")
 	return
 }
 

+ 6 - 4
services/cms/query_custom_event_histogram.go

@@ -82,9 +82,11 @@ type QueryCustomEventHistogramRequest struct {
 // QueryCustomEventHistogramResponse is the response struct for api QueryCustomEventHistogram
 type QueryCustomEventHistogramResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   string `json:"Success" xml:"Success"`
 }
 
 // CreateQueryCustomEventHistogramRequest creates a request to invoke QueryCustomEventHistogram API
@@ -92,7 +94,7 @@ func CreateQueryCustomEventHistogramRequest() (request *QueryCustomEventHistogra
 	request = &QueryCustomEventHistogramRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomEventHistogram", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomEventHistogram", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/query_custom_metric_list.go

@@ -99,7 +99,7 @@ func CreateQueryCustomMetricListRequest() (request *QueryCustomMetricListRequest
 	request = &QueryCustomMetricListRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomMetricList", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryCustomMetricList", "cms", "openAPI")
 	return
 }
 

+ 116 - 0
services/cms/query_metric_data.go

@@ -0,0 +1,116 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryMetricData invokes the cms.QueryMetricData API synchronously
+// api document: https://help.aliyun.com/api/cms/querymetricdata.html
+func (client *Client) QueryMetricData(request *QueryMetricDataRequest) (response *QueryMetricDataResponse, err error) {
+	response = CreateQueryMetricDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryMetricDataWithChan invokes the cms.QueryMetricData API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymetricdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMetricDataWithChan(request *QueryMetricDataRequest) (<-chan *QueryMetricDataResponse, <-chan error) {
+	responseChan := make(chan *QueryMetricDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryMetricData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryMetricDataWithCallback invokes the cms.QueryMetricData API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymetricdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMetricDataWithCallback(request *QueryMetricDataRequest, callback func(response *QueryMetricDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryMetricDataResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryMetricData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryMetricDataRequest is the request struct for api QueryMetricData
+type QueryMetricDataRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
+	Project         string           `position:"Query" name:"Project"`
+	Metric          string           `position:"Query" name:"Metric"`
+	Period          string           `position:"Query" name:"Period"`
+	StartTime       string           `position:"Query" name:"StartTime"`
+	EndTime         string           `position:"Query" name:"EndTime"`
+	Dimensions      string           `position:"Query" name:"Dimensions"`
+	Express         string           `position:"Query" name:"Express"`
+	Length          string           `position:"Query" name:"Length"`
+}
+
+// QueryMetricDataResponse is the response struct for api QueryMetricData
+type QueryMetricDataResponse struct {
+	*responses.BaseResponse
+	Code       string `json:"Code" xml:"Code"`
+	Message    string `json:"Message" xml:"Message"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Datapoints string `json:"Datapoints" xml:"Datapoints"`
+	Period     string `json:"Period" xml:"Period"`
+}
+
+// CreateQueryMetricDataRequest creates a request to invoke QueryMetricData API
+func CreateQueryMetricDataRequest() (request *QueryMetricDataRequest) {
+	request = &QueryMetricDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricData", "cms", "openAPI")
+	return
+}
+
+// CreateQueryMetricDataResponse creates a response to parse from QueryMetricData response
+func CreateQueryMetricDataResponse() (response *QueryMetricDataResponse) {
+	response = &QueryMetricDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 3
services/cms/query_metric_last.go

@@ -76,9 +76,9 @@ func (client *Client) QueryMetricLastWithCallback(request *QueryMetricLastReques
 // QueryMetricLastRequest is the request struct for api QueryMetricLast
 type QueryMetricLastRequest struct {
 	*requests.RpcRequest
+	Project         string           `position:"Query" name:"Project"`
 	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
-	Project         string           `position:"Query" name:"Project"`
 	Metric          string           `position:"Query" name:"Metric"`
 	Period          string           `position:"Query" name:"Period"`
 	StartTime       string           `position:"Query" name:"StartTime"`
@@ -95,7 +95,6 @@ type QueryMetricLastResponse struct {
 	*responses.BaseResponse
 	Code       string `json:"Code" xml:"Code"`
 	Message    string `json:"Message" xml:"Message"`
-	Success    bool   `json:"Success" xml:"Success"`
 	RequestId  string `json:"RequestId" xml:"RequestId"`
 	Cursor     string `json:"Cursor" xml:"Cursor"`
 	Datapoints string `json:"Datapoints" xml:"Datapoints"`
@@ -107,7 +106,7 @@ func CreateQueryMetricLastRequest() (request *QueryMetricLastRequest) {
 	request = &QueryMetricLastRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QueryMetricLast", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricLast", "cms", "openAPI")
 	return
 }
 

+ 2 - 3
services/cms/query_metric_list.go

@@ -76,9 +76,9 @@ func (client *Client) QueryMetricListWithCallback(request *QueryMetricListReques
 // QueryMetricListRequest is the request struct for api QueryMetricList
 type QueryMetricListRequest struct {
 	*requests.RpcRequest
+	Project         string           `position:"Query" name:"Project"`
 	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
-	Project         string           `position:"Query" name:"Project"`
 	Metric          string           `position:"Query" name:"Metric"`
 	Period          string           `position:"Query" name:"Period"`
 	StartTime       string           `position:"Query" name:"StartTime"`
@@ -95,7 +95,6 @@ type QueryMetricListResponse struct {
 	*responses.BaseResponse
 	Code       string `json:"Code" xml:"Code"`
 	Message    string `json:"Message" xml:"Message"`
-	Success    bool   `json:"Success" xml:"Success"`
 	RequestId  string `json:"RequestId" xml:"RequestId"`
 	Cursor     string `json:"Cursor" xml:"Cursor"`
 	Datapoints string `json:"Datapoints" xml:"Datapoints"`
@@ -107,7 +106,7 @@ func CreateQueryMetricListRequest() (request *QueryMetricListRequest) {
 	request = &QueryMetricListRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QueryMetricList", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricList", "cms", "openAPI")
 	return
 }
 

+ 118 - 0
services/cms/query_metric_top.go

@@ -0,0 +1,118 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// QueryMetricTop invokes the cms.QueryMetricTop API synchronously
+// api document: https://help.aliyun.com/api/cms/querymetrictop.html
+func (client *Client) QueryMetricTop(request *QueryMetricTopRequest) (response *QueryMetricTopResponse, err error) {
+	response = CreateQueryMetricTopResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryMetricTopWithChan invokes the cms.QueryMetricTop API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymetrictop.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMetricTopWithChan(request *QueryMetricTopRequest) (<-chan *QueryMetricTopResponse, <-chan error) {
+	responseChan := make(chan *QueryMetricTopResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryMetricTop(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryMetricTopWithCallback invokes the cms.QueryMetricTop API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymetrictop.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMetricTopWithCallback(request *QueryMetricTopRequest, callback func(response *QueryMetricTopResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryMetricTopResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryMetricTop(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryMetricTopRequest is the request struct for api QueryMetricTop
+type QueryMetricTopRequest struct {
+	*requests.RpcRequest
+	Period          string           `position:"Query" name:"Period"`
+	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
+	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Project         string           `position:"Query" name:"Project"`
+	Metric          string           `position:"Query" name:"Metric"`
+	StartTime       string           `position:"Query" name:"StartTime"`
+	EndTime         string           `position:"Query" name:"EndTime"`
+	Dimensions      string           `position:"Query" name:"Dimensions"`
+	Orderby         string           `position:"Query" name:"Orderby"`
+	OrderDesc       string           `position:"Query" name:"OrderDesc"`
+	Length          string           `position:"Query" name:"Length"`
+	Express         string           `position:"Query" name:"Express"`
+}
+
+// QueryMetricTopResponse is the response struct for api QueryMetricTop
+type QueryMetricTopResponse struct {
+	*responses.BaseResponse
+	Code       string `json:"Code" xml:"Code"`
+	Message    string `json:"Message" xml:"Message"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Datapoints string `json:"Datapoints" xml:"Datapoints"`
+	Period     string `json:"Period" xml:"Period"`
+}
+
+// CreateQueryMetricTopRequest creates a request to invoke QueryMetricTop API
+func CreateQueryMetricTopRequest() (request *QueryMetricTopRequest) {
+	request = &QueryMetricTopRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricTop", "cms", "openAPI")
+	return
+}
+
+// CreateQueryMetricTopResponse creates a response to parse from QueryMetricTop response
+func CreateQueryMetricTopResponse() (response *QueryMetricTopResponse) {
+	response = &QueryMetricTopResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 6 - 4
services/cms/query_system_event_count.go

@@ -82,9 +82,11 @@ type QuerySystemEventCountRequest struct {
 // QuerySystemEventCountResponse is the response struct for api QuerySystemEventCount
 type QuerySystemEventCountResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   string `json:"Success" xml:"Success"`
 }
 
 // CreateQuerySystemEventCountRequest creates a request to invoke QuerySystemEventCount API
@@ -92,7 +94,7 @@ func CreateQuerySystemEventCountRequest() (request *QuerySystemEventCountRequest
 	request = &QuerySystemEventCountRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QuerySystemEventCount", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QuerySystemEventCount", "cms", "openAPI")
 	return
 }
 

+ 6 - 4
services/cms/query_system_event_detail.go

@@ -82,9 +82,11 @@ type QuerySystemEventDetailRequest struct {
 // QuerySystemEventDetailResponse is the response struct for api QuerySystemEventDetail
 type QuerySystemEventDetailResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   string `json:"Success" xml:"Success"`
 }
 
 // CreateQuerySystemEventDetailRequest creates a request to invoke QuerySystemEventDetail API
@@ -92,7 +94,7 @@ func CreateQuerySystemEventDetailRequest() (request *QuerySystemEventDetailReque
 	request = &QuerySystemEventDetailRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QuerySystemEventDetail", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QuerySystemEventDetail", "cms", "openAPI")
 	return
 }
 

+ 6 - 4
services/cms/query_system_event_histogram.go

@@ -82,9 +82,11 @@ type QuerySystemEventHistogramRequest struct {
 // QuerySystemEventHistogramResponse is the response struct for api QuerySystemEventHistogram
 type QuerySystemEventHistogramResponse struct {
 	*responses.BaseResponse
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   string `json:"Success" xml:"Success"`
 }
 
 // CreateQuerySystemEventHistogramRequest creates a request to invoke QuerySystemEventHistogram API
@@ -92,7 +94,7 @@ func CreateQuerySystemEventHistogramRequest() (request *QuerySystemEventHistogra
 	request = &QuerySystemEventHistogramRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "QuerySystemEventHistogram", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "QuerySystemEventHistogram", "cms", "openAPI")
 	return
 }
 

+ 11 - 11
services/cms/struct_alarm.go

@@ -17,22 +17,22 @@ package cms
 
 // Alarm is a nested struct in cms response
 type Alarm struct {
-	Statistics         string `json:"Statistics" xml:"Statistics"`
 	Name               string `json:"Name" xml:"Name"`
-	StartTime          string `json:"StartTime" xml:"StartTime"`
-	Threshold          string `json:"Threshold" xml:"Threshold"`
-	State              string `json:"State" xml:"State"`
-	EvaluationCount    string `json:"EvaluationCount" xml:"EvaluationCount"`
 	RuleName           string `json:"RuleName" xml:"RuleName"`
-	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
-	Namespace          string `json:"Namespace" xml:"Namespace"`
+	ContactGroups      string `json:"ContactGroups" xml:"ContactGroups"`
+	SilenceTime        string `json:"SilenceTime" xml:"SilenceTime"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
 	Period             string `json:"Period" xml:"Period"`
 	Uuid               string `json:"Uuid" xml:"Uuid"`
-	SilenceTime        string `json:"SilenceTime" xml:"SilenceTime"`
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	StartTime          string `json:"StartTime" xml:"StartTime"`
+	State              string `json:"State" xml:"State"`
+	EndTime            string `json:"EndTime" xml:"EndTime"`
 	NotifyType         string `json:"NotifyType" xml:"NotifyType"`
-	ContactGroups      string `json:"ContactGroups" xml:"ContactGroups"`
-	MetricName         string `json:"MetricName" xml:"MetricName"`
+	Namespace          string `json:"Namespace" xml:"Namespace"`
 	Enable             string `json:"Enable" xml:"Enable"`
+	MetricName         string `json:"MetricName" xml:"MetricName"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	EvaluationCount    string `json:"EvaluationCount" xml:"EvaluationCount"`
 	Webhook            string `json:"Webhook" xml:"Webhook"`
-	EndTime            string `json:"EndTime" xml:"EndTime"`
 }

+ 12 - 23
services/cms/struct_alarm_history.go

@@ -17,27 +17,16 @@ package cms
 
 // AlarmHistory is a nested struct in cms response
 type AlarmHistory struct {
-	Status          int                                 `json:"Status" xml:"Status"`
-	LastTime        int                                 `json:"LastTime" xml:"LastTime"`
-	GroupId         string                              `json:"GroupId" xml:"GroupId"`
-	Expression      string                              `json:"Expression" xml:"Expression"`
-	EvaluationCount int                                 `json:"EvaluationCount" xml:"EvaluationCount"`
-	PreLevel        string                              `json:"PreLevel" xml:"PreLevel"`
-	State           string                              `json:"State" xml:"State"`
-	Namespace       string                              `json:"Namespace" xml:"Namespace"`
-	Value           string                              `json:"Value" xml:"Value"`
-	Dimensions      string                              `json:"Dimensions" xml:"Dimensions"`
-	AlertTime       int                                 `json:"AlertTime" xml:"AlertTime"`
-	Level           string                              `json:"Level" xml:"Level"`
-	UserId          string                              `json:"UserId" xml:"UserId"`
-	MetricName      string                              `json:"MetricName" xml:"MetricName"`
-	Id              string                              `json:"Id" xml:"Id"`
-	AlertName       string                              `json:"AlertName" xml:"AlertName"`
-	RuleName        string                              `json:"ruleName" xml:"ruleName"`
-	Webhooks        string                              `json:"Webhooks" xml:"Webhooks"`
-	ContactMails    ContactMails                        `json:"ContactMails" xml:"ContactMails"`
-	ContactSmses    ContactSmses                        `json:"ContactSmses" xml:"ContactSmses"`
-	ContactGroups   ContactGroupsInDescribeAlarmHistory `json:"ContactGroups" xml:"ContactGroups"`
-	ContactALIIMs   ContactALIIMs                       `json:"ContactALIIMs" xml:"ContactALIIMs"`
-	Contacts        Contacts                            `json:"Contacts" xml:"Contacts"`
+	Name            string `json:"Name" xml:"Name"`
+	Value           string `json:"Value" xml:"Value"`
+	AlarmTime       int    `json:"AlarmTime" xml:"AlarmTime"`
+	Status          int    `json:"Status" xml:"Status"`
+	State           string `json:"State" xml:"State"`
+	Namespace       string `json:"Namespace" xml:"Namespace"`
+	Dimension       string `json:"Dimension" xml:"Dimension"`
+	ContactGroups   string `json:"ContactGroups" xml:"ContactGroups"`
+	Id              string `json:"Id" xml:"Id"`
+	MetricName      string `json:"MetricName" xml:"MetricName"`
+	LastTime        int    `json:"LastTime" xml:"LastTime"`
+	EvaluationCount int    `json:"EvaluationCount" xml:"EvaluationCount"`
 }

+ 43 - 0
services/cms/struct_alarm_history_in_describe_alarm_history.go

@@ -0,0 +1,43 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// AlarmHistoryInDescribeAlarmHistory is a nested struct in cms response
+type AlarmHistoryInDescribeAlarmHistory struct {
+	Id              string                              `json:"Id" xml:"Id"`
+	AlertName       string                              `json:"AlertName" xml:"AlertName"`
+	GroupId         string                              `json:"GroupId" xml:"GroupId"`
+	Namespace       string                              `json:"Namespace" xml:"Namespace"`
+	MetricName      string                              `json:"MetricName" xml:"MetricName"`
+	Dimensions      string                              `json:"Dimensions" xml:"Dimensions"`
+	Expression      string                              `json:"Expression" xml:"Expression"`
+	EvaluationCount int                                 `json:"EvaluationCount" xml:"EvaluationCount"`
+	Value           string                              `json:"Value" xml:"Value"`
+	AlertTime       int                                 `json:"AlertTime" xml:"AlertTime"`
+	LastTime        int                                 `json:"LastTime" xml:"LastTime"`
+	Level           string                              `json:"Level" xml:"Level"`
+	PreLevel        string                              `json:"PreLevel" xml:"PreLevel"`
+	RuleName        string                              `json:"ruleName" xml:"ruleName"`
+	State           string                              `json:"State" xml:"State"`
+	Status          int                                 `json:"Status" xml:"Status"`
+	UserId          string                              `json:"UserId" xml:"UserId"`
+	Webhooks        string                              `json:"Webhooks" xml:"Webhooks"`
+	ContactGroups   ContactGroupsInDescribeAlarmHistory `json:"ContactGroups" xml:"ContactGroups"`
+	Contacts        Contacts                            `json:"Contacts" xml:"Contacts"`
+	ContactALIIMs   ContactALIIMs                       `json:"ContactALIIMs" xml:"ContactALIIMs"`
+	ContactSmses    ContactSmses                        `json:"ContactSmses" xml:"ContactSmses"`
+	ContactMails    ContactMails                        `json:"ContactMails" xml:"ContactMails"`
+}

+ 0 - 32
services/cms/struct_alarm_history_in_list_alarm_history.go

@@ -1,32 +0,0 @@
-package cms
-
-//Licensed under the Apache License, Version 2.0 (the "License");
-//you may not use this file except in compliance with the License.
-//You may obtain a copy of the License at
-//
-//http://www.apache.org/licenses/LICENSE-2.0
-//
-//Unless required by applicable law or agreed to in writing, software
-//distributed under the License is distributed on an "AS IS" BASIS,
-//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//See the License for the specific language governing permissions and
-//limitations under the License.
-//
-// Code generated by Alibaba Cloud SDK Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-
-// AlarmHistoryInListAlarmHistory is a nested struct in cms response
-type AlarmHistoryInListAlarmHistory struct {
-	Id              string `json:"Id" xml:"Id"`
-	Name            string `json:"Name" xml:"Name"`
-	Namespace       string `json:"Namespace" xml:"Namespace"`
-	MetricName      string `json:"MetricName" xml:"MetricName"`
-	Dimension       string `json:"Dimension" xml:"Dimension"`
-	EvaluationCount int    `json:"EvaluationCount" xml:"EvaluationCount"`
-	Value           string `json:"Value" xml:"Value"`
-	AlarmTime       int    `json:"AlarmTime" xml:"AlarmTime"`
-	LastTime        int    `json:"LastTime" xml:"LastTime"`
-	State           string `json:"State" xml:"State"`
-	Status          int    `json:"Status" xml:"Status"`
-	ContactGroups   string `json:"ContactGroups" xml:"ContactGroups"`
-}

+ 1 - 1
services/cms/struct_alarm_history_list_in_describe_alarm_history.go

@@ -17,5 +17,5 @@ package cms
 
 // AlarmHistoryListInDescribeAlarmHistory is a nested struct in cms response
 type AlarmHistoryListInDescribeAlarmHistory struct {
-	AlarmHistory []AlarmHistory `json:"AlarmHistory" xml:"AlarmHistory"`
+	AlarmHistory []AlarmHistoryInDescribeAlarmHistory `json:"AlarmHistory" xml:"AlarmHistory"`
 }

+ 1 - 1
services/cms/struct_alarm_history_list_in_list_alarm_history.go

@@ -17,5 +17,5 @@ package cms
 
 // AlarmHistoryListInListAlarmHistory is a nested struct in cms response
 type AlarmHistoryListInListAlarmHistory struct {
-	AlarmHistory []AlarmHistoryInListAlarmHistory `json:"AlarmHistory" xml:"AlarmHistory"`
+	AlarmHistory []AlarmHistory `json:"AlarmHistory" xml:"AlarmHistory"`
 }

+ 2 - 2
services/cms/struct_group.go

@@ -17,10 +17,10 @@ package cms
 
 // Group is a nested struct in cms response
 type Group struct {
+	GroupId       int                        `json:"GroupId" xml:"GroupId"`
 	ServiceId     int                        `json:"ServiceId" xml:"ServiceId"`
-	Type          string                     `json:"Type" xml:"Type"`
 	BindUrl       string                     `json:"BindUrl" xml:"BindUrl"`
 	GroupName     string                     `json:"GroupName" xml:"GroupName"`
-	GroupId       int                        `json:"GroupId" xml:"GroupId"`
+	Type          string                     `json:"Type" xml:"Type"`
 	ContactGroups ContactGroupsInGetMyGroups `json:"ContactGroups" xml:"ContactGroups"`
 }

+ 21 - 0
services/cms/struct_instance_list_in_task_config_list.go

@@ -0,0 +1,21 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// InstanceListInTaskConfigList is a nested struct in cms response
+type InstanceListInTaskConfigList struct {
+	String []string `json:"String" xml:"String"`
+}

+ 21 - 0
services/cms/struct_instance_list_in_task_config_unhealthy.go

@@ -0,0 +1,21 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// InstanceListInTaskConfigUnhealthy is a nested struct in cms response
+type InstanceListInTaskConfigUnhealthy struct {
+	String []string `json:"String" xml:"String"`
+}

+ 30 - 0
services/cms/struct_node_task_config.go

@@ -0,0 +1,30 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// NodeTaskConfig is a nested struct in cms response
+type NodeTaskConfig struct {
+	Id           int                          `json:"Id" xml:"Id"`
+	TaskName     string                       `json:"TaskName" xml:"TaskName"`
+	TaskType     string                       `json:"TaskType" xml:"TaskType"`
+	TaskScope    string                       `json:"TaskScope" xml:"TaskScope"`
+	Disabled     bool                         `json:"Disabled" xml:"Disabled"`
+	GroupId      int                          `json:"GroupId" xml:"GroupId"`
+	GroupName    string                       `json:"GroupName" xml:"GroupName"`
+	JsonData     string                       `json:"JsonData" xml:"JsonData"`
+	AlertConfig  string                       `json:"AlertConfig" xml:"AlertConfig"`
+	InstanceList InstanceListInTaskConfigList `json:"InstanceList" xml:"InstanceList"`
+}

+ 22 - 0
services/cms/struct_node_task_instance.go

@@ -0,0 +1,22 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// NodeTaskInstance is a nested struct in cms response
+type NodeTaskInstance struct {
+	TaskId       int                               `json:"TaskId" xml:"TaskId"`
+	InstanceList InstanceListInTaskConfigUnhealthy `json:"InstanceList" xml:"InstanceList"`
+}

+ 7 - 7
services/cms/struct_resource.go

@@ -18,18 +18,18 @@ package cms
 // Resource is a nested struct in cms response
 type Resource struct {
 	Category      string                      `json:"Category" xml:"Category"`
-	ServiceId     string                      `json:"ServiceId" xml:"ServiceId"`
-	GroupName     string                      `json:"GroupName" xml:"GroupName"`
 	Desc          string                      `json:"Desc" xml:"Desc"`
 	InstanceName  string                      `json:"InstanceName" xml:"InstanceName"`
-	Type          string                      `json:"Type" xml:"Type"`
-	AliUid        int                         `json:"AliUid" xml:"AliUid"`
-	RegionId      string                      `json:"RegionId" xml:"RegionId"`
-	BindUrls      string                      `json:"BindUrls" xml:"BindUrls"`
+	GroupName     string                      `json:"GroupName" xml:"GroupName"`
 	Id            int                         `json:"Id" xml:"Id"`
-	NetworkType   string                      `json:"NetworkType" xml:"NetworkType"`
+	BindUrls      string                      `json:"BindUrls" xml:"BindUrls"`
+	ServiceId     string                      `json:"ServiceId" xml:"ServiceId"`
+	RegionId      string                      `json:"RegionId" xml:"RegionId"`
 	InstanceId    string                      `json:"InstanceId" xml:"InstanceId"`
 	GroupId       int                         `json:"GroupId" xml:"GroupId"`
+	AliUid        int                         `json:"AliUid" xml:"AliUid"`
+	NetworkType   string                      `json:"NetworkType" xml:"NetworkType"`
+	Type          string                      `json:"Type" xml:"Type"`
 	Vpc           Vpc                         `json:"Vpc" xml:"Vpc"`
 	Region        Region                      `json:"Region" xml:"Region"`
 	Tags          Tags                        `json:"Tags" xml:"Tags"`

+ 21 - 0
services/cms/struct_task_list.go

@@ -0,0 +1,21 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TaskList is a nested struct in cms response
+type TaskList struct {
+	NodeTaskConfig []NodeTaskConfig `json:"NodeTaskConfig" xml:"NodeTaskConfig"`
+}

+ 21 - 0
services/cms/struct_unhealthy_list.go

@@ -0,0 +1,21 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// UnhealthyList is a nested struct in cms response
+type UnhealthyList struct {
+	NodeTaskInstance []NodeTaskInstance `json:"NodeTaskInstance" xml:"NodeTaskInstance"`
+}

+ 114 - 0
services/cms/task_config_create.go

@@ -0,0 +1,114 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TaskConfigCreate invokes the cms.TaskConfigCreate API synchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigcreate.html
+func (client *Client) TaskConfigCreate(request *TaskConfigCreateRequest) (response *TaskConfigCreateResponse, err error) {
+	response = CreateTaskConfigCreateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TaskConfigCreateWithChan invokes the cms.TaskConfigCreate API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigcreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigCreateWithChan(request *TaskConfigCreateRequest) (<-chan *TaskConfigCreateResponse, <-chan error) {
+	responseChan := make(chan *TaskConfigCreateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TaskConfigCreate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TaskConfigCreateWithCallback invokes the cms.TaskConfigCreate API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigcreate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigCreateWithCallback(request *TaskConfigCreateRequest, callback func(response *TaskConfigCreateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TaskConfigCreateResponse
+		var err error
+		defer close(result)
+		response, err = client.TaskConfigCreate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TaskConfigCreateRequest is the request struct for api TaskConfigCreate
+type TaskConfigCreateRequest struct {
+	*requests.RpcRequest
+	TaskType     string           `position:"Query" name:"TaskType"`
+	TaskName     string           `position:"Query" name:"TaskName"`
+	TaskScope    string           `position:"Query" name:"TaskScope"`
+	GroupId      requests.Integer `position:"Query" name:"GroupId"`
+	GroupName    string           `position:"Query" name:"GroupName"`
+	JsonData     string           `position:"Query" name:"JsonData"`
+	InstanceList *[]string        `position:"Query" name:"InstanceList"  type:"Repeated"`
+	AlertConfig  string           `position:"Query" name:"AlertConfig"`
+}
+
+// TaskConfigCreateResponse is the response struct for api TaskConfigCreate
+type TaskConfigCreateResponse struct {
+	*responses.BaseResponse
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Success      bool   `json:"Success" xml:"Success"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	TaskId       int    `json:"taskId" xml:"taskId"`
+}
+
+// CreateTaskConfigCreateRequest creates a request to invoke TaskConfigCreate API
+func CreateTaskConfigCreateRequest() (request *TaskConfigCreateRequest) {
+	request = &TaskConfigCreateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigCreate", "cms", "openAPI")
+	return
+}
+
+// CreateTaskConfigCreateResponse creates a response to parse from TaskConfigCreate response
+func CreateTaskConfigCreateResponse() (response *TaskConfigCreateResponse) {
+	response = &TaskConfigCreateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/task_config_delete.go

@@ -0,0 +1,106 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TaskConfigDelete invokes the cms.TaskConfigDelete API synchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigdelete.html
+func (client *Client) TaskConfigDelete(request *TaskConfigDeleteRequest) (response *TaskConfigDeleteResponse, err error) {
+	response = CreateTaskConfigDeleteResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TaskConfigDeleteWithChan invokes the cms.TaskConfigDelete API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigdelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigDeleteWithChan(request *TaskConfigDeleteRequest) (<-chan *TaskConfigDeleteResponse, <-chan error) {
+	responseChan := make(chan *TaskConfigDeleteResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TaskConfigDelete(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TaskConfigDeleteWithCallback invokes the cms.TaskConfigDelete API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigdelete.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigDeleteWithCallback(request *TaskConfigDeleteRequest, callback func(response *TaskConfigDeleteResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TaskConfigDeleteResponse
+		var err error
+		defer close(result)
+		response, err = client.TaskConfigDelete(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TaskConfigDeleteRequest is the request struct for api TaskConfigDelete
+type TaskConfigDeleteRequest struct {
+	*requests.RpcRequest
+	IdList *[]string `position:"Query" name:"IdList"  type:"Repeated"`
+}
+
+// TaskConfigDeleteResponse is the response struct for api TaskConfigDelete
+type TaskConfigDeleteResponse struct {
+	*responses.BaseResponse
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Success      bool   `json:"Success" xml:"Success"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateTaskConfigDeleteRequest creates a request to invoke TaskConfigDelete API
+func CreateTaskConfigDeleteRequest() (request *TaskConfigDeleteRequest) {
+	request = &TaskConfigDeleteRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigDelete", "cms", "openAPI")
+	return
+}
+
+// CreateTaskConfigDeleteResponse creates a response to parse from TaskConfigDelete response
+func CreateTaskConfigDeleteResponse() (response *TaskConfigDeleteResponse) {
+	response = &TaskConfigDeleteResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/cms/task_config_enable.go

@@ -0,0 +1,107 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TaskConfigEnable invokes the cms.TaskConfigEnable API synchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigenable.html
+func (client *Client) TaskConfigEnable(request *TaskConfigEnableRequest) (response *TaskConfigEnableResponse, err error) {
+	response = CreateTaskConfigEnableResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TaskConfigEnableWithChan invokes the cms.TaskConfigEnable API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigenable.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigEnableWithChan(request *TaskConfigEnableRequest) (<-chan *TaskConfigEnableResponse, <-chan error) {
+	responseChan := make(chan *TaskConfigEnableResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TaskConfigEnable(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TaskConfigEnableWithCallback invokes the cms.TaskConfigEnable API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigenable.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigEnableWithCallback(request *TaskConfigEnableRequest, callback func(response *TaskConfigEnableResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TaskConfigEnableResponse
+		var err error
+		defer close(result)
+		response, err = client.TaskConfigEnable(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TaskConfigEnableRequest is the request struct for api TaskConfigEnable
+type TaskConfigEnableRequest struct {
+	*requests.RpcRequest
+	IdList  *[]string        `position:"Query" name:"IdList"  type:"Repeated"`
+	Enabled requests.Boolean `position:"Query" name:"Enabled"`
+}
+
+// TaskConfigEnableResponse is the response struct for api TaskConfigEnable
+type TaskConfigEnableResponse struct {
+	*responses.BaseResponse
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Success      bool   `json:"Success" xml:"Success"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateTaskConfigEnableRequest creates a request to invoke TaskConfigEnable API
+func CreateTaskConfigEnableRequest() (request *TaskConfigEnableRequest) {
+	request = &TaskConfigEnableRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigEnable", "cms", "openAPI")
+	return
+}
+
+// CreateTaskConfigEnableResponse creates a response to parse from TaskConfigEnable response
+func CreateTaskConfigEnableResponse() (response *TaskConfigEnableResponse) {
+	response = &TaskConfigEnableResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 115 - 0
services/cms/task_config_list.go

@@ -0,0 +1,115 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TaskConfigList invokes the cms.TaskConfigList API synchronously
+// api document: https://help.aliyun.com/api/cms/taskconfiglist.html
+func (client *Client) TaskConfigList(request *TaskConfigListRequest) (response *TaskConfigListResponse, err error) {
+	response = CreateTaskConfigListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TaskConfigListWithChan invokes the cms.TaskConfigList API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfiglist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigListWithChan(request *TaskConfigListRequest) (<-chan *TaskConfigListResponse, <-chan error) {
+	responseChan := make(chan *TaskConfigListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TaskConfigList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TaskConfigListWithCallback invokes the cms.TaskConfigList API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfiglist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigListWithCallback(request *TaskConfigListRequest, callback func(response *TaskConfigListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TaskConfigListResponse
+		var err error
+		defer close(result)
+		response, err = client.TaskConfigList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TaskConfigListRequest is the request struct for api TaskConfigList
+type TaskConfigListRequest struct {
+	*requests.RpcRequest
+	GroupId    requests.Integer `position:"Query" name:"GroupId"`
+	Id         requests.Integer `position:"Query" name:"Id"`
+	TaskName   string           `position:"Query" name:"TaskName"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+}
+
+// TaskConfigListResponse is the response struct for api TaskConfigList
+type TaskConfigListResponse struct {
+	*responses.BaseResponse
+	ErrorCode    int      `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string   `json:"ErrorMessage" xml:"ErrorMessage"`
+	Success      bool     `json:"Success" xml:"Success"`
+	RequestId    string   `json:"RequestId" xml:"RequestId"`
+	PageNumber   int      `json:"PageNumber" xml:"PageNumber"`
+	PageSize     int      `json:"PageSize" xml:"PageSize"`
+	PageTotal    int      `json:"PageTotal" xml:"PageTotal"`
+	Total        int      `json:"Total" xml:"Total"`
+	TaskList     TaskList `json:"TaskList" xml:"TaskList"`
+}
+
+// CreateTaskConfigListRequest creates a request to invoke TaskConfigList API
+func CreateTaskConfigListRequest() (request *TaskConfigListRequest) {
+	request = &TaskConfigListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigList", "cms", "openAPI")
+	return
+}
+
+// CreateTaskConfigListResponse creates a response to parse from TaskConfigList response
+func CreateTaskConfigListResponse() (response *TaskConfigListResponse) {
+	response = &TaskConfigListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/cms/task_config_modify.go

@@ -0,0 +1,114 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TaskConfigModify invokes the cms.TaskConfigModify API synchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigmodify.html
+func (client *Client) TaskConfigModify(request *TaskConfigModifyRequest) (response *TaskConfigModifyResponse, err error) {
+	response = CreateTaskConfigModifyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TaskConfigModifyWithChan invokes the cms.TaskConfigModify API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigmodify.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigModifyWithChan(request *TaskConfigModifyRequest) (<-chan *TaskConfigModifyResponse, <-chan error) {
+	responseChan := make(chan *TaskConfigModifyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TaskConfigModify(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TaskConfigModifyWithCallback invokes the cms.TaskConfigModify API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigmodify.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigModifyWithCallback(request *TaskConfigModifyRequest, callback func(response *TaskConfigModifyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TaskConfigModifyResponse
+		var err error
+		defer close(result)
+		response, err = client.TaskConfigModify(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TaskConfigModifyRequest is the request struct for api TaskConfigModify
+type TaskConfigModifyRequest struct {
+	*requests.RpcRequest
+	GroupId      requests.Integer `position:"Query" name:"GroupId"`
+	TaskType     string           `position:"Query" name:"TaskType"`
+	Id           requests.Integer `position:"Query" name:"Id"`
+	TaskName     string           `position:"Query" name:"TaskName"`
+	TaskScope    string           `position:"Query" name:"TaskScope"`
+	GroupName    string           `position:"Query" name:"GroupName"`
+	JsonData     string           `position:"Query" name:"JsonData"`
+	InstanceList *[]string        `position:"Query" name:"InstanceList"  type:"Repeated"`
+	AlertConfig  string           `position:"Query" name:"AlertConfig"`
+}
+
+// TaskConfigModifyResponse is the response struct for api TaskConfigModify
+type TaskConfigModifyResponse struct {
+	*responses.BaseResponse
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Success      bool   `json:"Success" xml:"Success"`
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateTaskConfigModifyRequest creates a request to invoke TaskConfigModify API
+func CreateTaskConfigModifyRequest() (request *TaskConfigModifyRequest) {
+	request = &TaskConfigModifyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigModify", "cms", "openAPI")
+	return
+}
+
+// CreateTaskConfigModifyResponse creates a response to parse from TaskConfigModify response
+func CreateTaskConfigModifyResponse() (response *TaskConfigModifyResponse) {
+	response = &TaskConfigModifyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/cms/task_config_unhealthy.go

@@ -0,0 +1,107 @@
+package cms
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TaskConfigUnhealthy invokes the cms.TaskConfigUnhealthy API synchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigunhealthy.html
+func (client *Client) TaskConfigUnhealthy(request *TaskConfigUnhealthyRequest) (response *TaskConfigUnhealthyResponse, err error) {
+	response = CreateTaskConfigUnhealthyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TaskConfigUnhealthyWithChan invokes the cms.TaskConfigUnhealthy API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigunhealthy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigUnhealthyWithChan(request *TaskConfigUnhealthyRequest) (<-chan *TaskConfigUnhealthyResponse, <-chan error) {
+	responseChan := make(chan *TaskConfigUnhealthyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TaskConfigUnhealthy(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TaskConfigUnhealthyWithCallback invokes the cms.TaskConfigUnhealthy API asynchronously
+// api document: https://help.aliyun.com/api/cms/taskconfigunhealthy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TaskConfigUnhealthyWithCallback(request *TaskConfigUnhealthyRequest, callback func(response *TaskConfigUnhealthyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TaskConfigUnhealthyResponse
+		var err error
+		defer close(result)
+		response, err = client.TaskConfigUnhealthy(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TaskConfigUnhealthyRequest is the request struct for api TaskConfigUnhealthy
+type TaskConfigUnhealthyRequest struct {
+	*requests.RpcRequest
+	TaskIdList *[]string `position:"Query" name:"TaskIdList"  type:"Repeated"`
+}
+
+// TaskConfigUnhealthyResponse is the response struct for api TaskConfigUnhealthy
+type TaskConfigUnhealthyResponse struct {
+	*responses.BaseResponse
+	ErrorCode     int           `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage  string        `json:"ErrorMessage" xml:"ErrorMessage"`
+	Success       bool          `json:"Success" xml:"Success"`
+	RequestId     string        `json:"RequestId" xml:"RequestId"`
+	UnhealthyList UnhealthyList `json:"unhealthyList" xml:"unhealthyList"`
+}
+
+// CreateTaskConfigUnhealthyRequest creates a request to invoke TaskConfigUnhealthy API
+func CreateTaskConfigUnhealthyRequest() (request *TaskConfigUnhealthyRequest) {
+	request = &TaskConfigUnhealthyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "TaskConfigUnhealthy", "cms", "openAPI")
+	return
+}
+
+// CreateTaskConfigUnhealthyResponse creates a response to parse from TaskConfigUnhealthy response
+func CreateTaskConfigUnhealthyResponse() (response *TaskConfigUnhealthyResponse) {
+	response = &TaskConfigUnhealthyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/update_alarm.go

@@ -106,7 +106,7 @@ func CreateUpdateAlarmRequest() (request *UpdateAlarmRequest) {
 	request = &UpdateAlarmRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "UpdateAlarm", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "UpdateAlarm", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/update_my_group_instances.go

@@ -94,7 +94,7 @@ func CreateUpdateMyGroupInstancesRequest() (request *UpdateMyGroupInstancesReque
 	request = &UpdateMyGroupInstancesRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "UpdateMyGroupInstances", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMyGroupInstances", "cms", "openAPI")
 	return
 }
 

+ 1 - 1
services/cms/update_my_groups.go

@@ -98,7 +98,7 @@ func CreateUpdateMyGroupsRequest() (request *UpdateMyGroupsRequest) {
 	request = &UpdateMyGroupsRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("Cms", "2017-03-01", "UpdateMyGroups", "cms", "openAPI")
+	request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMyGroups", "cms", "openAPI")
 	return
 }