Explorar o código

由萨文发起的CMS SDK自动发布, BUILD_ID=276, 版本号:0.9.2

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao %!s(int64=7) %!d(string=hai) anos
pai
achega
dde05267d1
Modificáronse 55 ficheiros con 1122 adicións e 359 borrados
  1. 4 0
      ChangeLog.txt
  2. 2 6
      services/cms/access_key_get.go
  3. 3 7
      services/cms/add_my_group_instances.go
  4. 0 0
      services/cms/client.go
  5. 13 17
      services/cms/create_alarm.go
  6. 5 9
      services/cms/create_my_groups.go
  7. 4 8
      services/cms/create_notify_policy.go
  8. 3 7
      services/cms/delete_alarm.go
  9. 4 8
      services/cms/delete_custom_metric.go
  10. 2 6
      services/cms/delete_my_group_instances.go
  11. 2 6
      services/cms/delete_my_groups.go
  12. 4 8
      services/cms/delete_notify_policy.go
  13. 11 15
      services/cms/describe_alarm_history.go
  14. 92 0
      services/cms/disable_actice_alert.go
  15. 3 7
      services/cms/disable_alarm.go
  16. 91 0
      services/cms/enable_actice_alert.go
  17. 3 7
      services/cms/enable_alarm.go
  18. 5 9
      services/cms/get_my_groups.go
  19. 4 8
      services/cms/get_notify_policy.go
  20. 114 0
      services/cms/list_active_alert_rule.go
  21. 8 12
      services/cms/list_alarm.go
  22. 5 9
      services/cms/list_alarm_history.go
  23. 3 7
      services/cms/list_contact_group.go
  24. 2 6
      services/cms/list_my_group_categories.go
  25. 3 7
      services/cms/list_my_group_instances.go
  26. 3 7
      services/cms/list_my_group_instances_details.go
  27. 6 10
      services/cms/list_my_groups.go
  28. 5 9
      services/cms/list_notify_policy.go
  29. 92 0
      services/cms/list_product_of_actice_alert.go
  30. 4 8
      services/cms/node_install.go
  31. 7 11
      services/cms/node_list.go
  32. 4 8
      services/cms/node_process_create.go
  33. 4 8
      services/cms/node_process_delete.go
  34. 2 6
      services/cms/node_processes.go
  35. 2 6
      services/cms/node_status.go
  36. 2 6
      services/cms/node_status_list.go
  37. 2 6
      services/cms/node_uninstall.go
  38. 3 6
      services/cms/profile_get.go
  39. 4 7
      services/cms/profile_set.go
  40. 2 6
      services/cms/put_custom_metric.go
  41. 2 6
      services/cms/put_event.go
  42. 3 7
      services/cms/put_metric_data.go
  43. 2 6
      services/cms/put_system_event.go
  44. 90 0
      services/cms/query_custom_event_count.go
  45. 90 0
      services/cms/query_custom_event_detail.go
  46. 90 0
      services/cms/query_custom_event_histogram.go
  47. 6 10
      services/cms/query_custom_metric_list.go
  48. 9 13
      services/cms/query_metric_last.go
  49. 9 13
      services/cms/query_metric_list.go
  50. 90 0
      services/cms/query_system_event_count.go
  51. 90 0
      services/cms/query_system_event_detail.go
  52. 90 0
      services/cms/query_system_event_histogram.go
  53. 11 15
      services/cms/update_alarm.go
  54. 3 7
      services/cms/update_my_group_instances.go
  55. 5 9
      services/cms/update_my_groups.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-01-24 Version: 0.9.2
+1, Add ActiveAlert API : ListActiveAlertRuleRequest/ListProductOfActiceAlertRequest/EnableActiceAlertRequest/DisableActiceAlertRequest
+
+
 2018-01-24 Version: 0.9.1
 1. improve: asyncWithChan avoid panic of "write on closed channel"
 2. improve: asyncWithChan support select case usage

+ 2 - 6
services/cms/access_key_get.go

@@ -33,12 +33,8 @@ func (client *Client) AccessKeyGetWithChan(request *AccessKeyGetRequest) (<-chan
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.AccessKeyGet(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 3 - 7
services/cms/add_my_group_instances.go

@@ -33,12 +33,8 @@ func (client *Client) AddMyGroupInstancesWithChan(request *AddMyGroupInstancesRe
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.AddMyGroupInstances(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +64,8 @@ func (client *Client) AddMyGroupInstancesWithCallback(request *AddMyGroupInstanc
 
 type AddMyGroupInstancesRequest struct {
 	*requests.RpcRequest
-	GroupId   requests.Integer `position:"Query" name:"GroupId"`
 	Instances string           `position:"Query" name:"Instances"`
+	GroupId   requests.Integer `position:"Query" name:"GroupId"`
 }
 
 type AddMyGroupInstancesResponse struct {

+ 0 - 0
services/cms/client.go


+ 13 - 17
services/cms/create_alarm.go

@@ -33,12 +33,8 @@ func (client *Client) CreateAlarmWithChan(request *CreateAlarmRequest) (<-chan *
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.CreateAlarm(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,22 +64,22 @@ func (client *Client) CreateAlarmWithCallback(request *CreateAlarmRequest, callb
 
 type CreateAlarmRequest struct {
 	*requests.RpcRequest
-	EndTime            requests.Integer `position:"Query" name:"EndTime"`
-	ComparisonOperator string           `position:"Query" name:"ComparisonOperator"`
-	StartTime          requests.Integer `position:"Query" name:"StartTime"`
-	NotifyType         requests.Integer `position:"Query" name:"NotifyType"`
+	CallbyCmsOwner     string           `position:"Query" name:"callby_cms_owner"`
 	Period             requests.Integer `position:"Query" name:"Period"`
-	Namespace          string           `position:"Query" name:"Namespace"`
-	Statistics         string           `position:"Query" name:"Statistics"`
-	Threshold          string           `position:"Query" name:"Threshold"`
-	MetricName         string           `position:"Query" name:"MetricName"`
 	Webhook            string           `position:"Query" name:"Webhook"`
+	ContactGroups      string           `position:"Query" name:"ContactGroups"`
+	EndTime            requests.Integer `position:"Query" name:"EndTime"`
+	Threshold          string           `position:"Query" name:"Threshold"`
+	StartTime          requests.Integer `position:"Query" name:"StartTime"`
 	Name               string           `position:"Query" name:"Name"`
+	Namespace          string           `position:"Query" name:"Namespace"`
 	EvaluationCount    requests.Integer `position:"Query" name:"EvaluationCount"`
-	Dimensions         string           `position:"Query" name:"Dimensions"`
 	SilenceTime        requests.Integer `position:"Query" name:"SilenceTime"`
-	ContactGroups      string           `position:"Query" name:"ContactGroups"`
-	CallbyCmsOwner     string           `position:"Query" name:"callby_cms_owner"`
+	MetricName         string           `position:"Query" name:"MetricName"`
+	NotifyType         requests.Integer `position:"Query" name:"NotifyType"`
+	ComparisonOperator string           `position:"Query" name:"ComparisonOperator"`
+	Dimensions         string           `position:"Query" name:"Dimensions"`
+	Statistics         string           `position:"Query" name:"Statistics"`
 }
 
 type CreateAlarmResponse struct {

+ 5 - 9
services/cms/create_my_groups.go

@@ -33,12 +33,8 @@ func (client *Client) CreateMyGroupsWithChan(request *CreateMyGroupsRequest) (<-
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.CreateMyGroups(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,11 +64,11 @@ func (client *Client) CreateMyGroupsWithCallback(request *CreateMyGroupsRequest,
 
 type CreateMyGroupsRequest struct {
 	*requests.RpcRequest
-	BindUrl       string           `position:"Query" name:"BindUrl"`
-	GroupName     string           `position:"Query" name:"GroupName"`
-	Type          string           `position:"Query" name:"Type"`
 	ContactGroups string           `position:"Query" name:"ContactGroups"`
 	ServiceId     requests.Integer `position:"Query" name:"ServiceId"`
+	Type          string           `position:"Query" name:"Type"`
+	GroupName     string           `position:"Query" name:"GroupName"`
+	BindUrl       string           `position:"Query" name:"BindUrl"`
 }
 
 type CreateMyGroupsResponse struct {

+ 4 - 8
services/cms/create_notify_policy.go

@@ -33,12 +33,8 @@ func (client *Client) CreateNotifyPolicyWithChan(request *CreateNotifyPolicyRequ
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.CreateNotifyPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +64,10 @@ func (client *Client) CreateNotifyPolicyWithCallback(request *CreateNotifyPolicy
 
 type CreateNotifyPolicyRequest struct {
 	*requests.RpcRequest
-	EndTime    requests.Integer `position:"Query" name:"EndTime"`
+	PolicyType string           `position:"Query" name:"PolicyType"`
 	AlertName  string           `position:"Query" name:"AlertName"`
+	EndTime    requests.Integer `position:"Query" name:"EndTime"`
 	StartTime  requests.Integer `position:"Query" name:"StartTime"`
-	PolicyType string           `position:"Query" name:"PolicyType"`
 	Dimensions string           `position:"Query" name:"Dimensions"`
 }
 

+ 3 - 7
services/cms/delete_alarm.go

@@ -33,12 +33,8 @@ func (client *Client) DeleteAlarmWithChan(request *DeleteAlarmRequest) (<-chan *
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DeleteAlarm(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +64,8 @@ func (client *Client) DeleteAlarmWithCallback(request *DeleteAlarmRequest, callb
 
 type DeleteAlarmRequest struct {
 	*requests.RpcRequest
-	Id             string `position:"Query" name:"Id"`
 	CallbyCmsOwner string `position:"Query" name:"callby_cms_owner"`
+	Id             string `position:"Query" name:"Id"`
 }
 
 type DeleteAlarmResponse struct {

+ 4 - 8
services/cms/delete_custom_metric.go

@@ -33,12 +33,8 @@ func (client *Client) DeleteCustomMetricWithChan(request *DeleteCustomMetricRequ
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DeleteCustomMetric(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +64,10 @@ func (client *Client) DeleteCustomMetricWithCallback(request *DeleteCustomMetric
 
 type DeleteCustomMetricRequest struct {
 	*requests.RpcRequest
+	GroupId    string `position:"Query" name:"GroupId"`
 	MetricName string `position:"Query" name:"MetricName"`
-	Md5        string `position:"Query" name:"Md5"`
 	UUID       string `position:"Query" name:"UUID"`
-	GroupId    string `position:"Query" name:"GroupId"`
+	Md5        string `position:"Query" name:"Md5"`
 }
 
 type DeleteCustomMetricResponse struct {

+ 2 - 6
services/cms/delete_my_group_instances.go

@@ -33,12 +33,8 @@ func (client *Client) DeleteMyGroupInstancesWithChan(request *DeleteMyGroupInsta
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DeleteMyGroupInstances(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 6
services/cms/delete_my_groups.go

@@ -33,12 +33,8 @@ func (client *Client) DeleteMyGroupsWithChan(request *DeleteMyGroupsRequest) (<-
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DeleteMyGroups(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 4 - 8
services/cms/delete_notify_policy.go

@@ -33,12 +33,8 @@ func (client *Client) DeleteNotifyPolicyWithChan(request *DeleteNotifyPolicyRequ
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DeleteNotifyPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +64,9 @@ func (client *Client) DeleteNotifyPolicyWithCallback(request *DeleteNotifyPolicy
 
 type DeleteNotifyPolicyRequest struct {
 	*requests.RpcRequest
-	Id         string `position:"Query" name:"Id"`
-	AlertName  string `position:"Query" name:"AlertName"`
 	PolicyType string `position:"Query" name:"PolicyType"`
+	AlertName  string `position:"Query" name:"AlertName"`
+	Id         string `position:"Query" name:"Id"`
 	Dimensions string `position:"Query" name:"Dimensions"`
 }
 

+ 11 - 15
services/cms/describe_alarm_history.go

@@ -33,12 +33,8 @@ func (client *Client) DescribeAlarmHistoryWithChan(request *DescribeAlarmHistory
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DescribeAlarmHistory(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,19 +64,19 @@ func (client *Client) DescribeAlarmHistoryWithCallback(request *DescribeAlarmHis
 
 type DescribeAlarmHistoryRequest struct {
 	*requests.RpcRequest
+	AlertName  string           `position:"Query" name:"AlertName"`
+	GroupId    string           `position:"Query" name:"GroupId"`
 	EndTime    string           `position:"Query" name:"EndTime"`
-	PageSize   requests.Integer `position:"Query" name:"PageSize"`
-	StartTime  string           `position:"Query" name:"StartTime"`
-	Status     string           `position:"Query" name:"Status"`
 	RuleName   string           `position:"Query" name:"RuleName"`
-	State      string           `position:"Query" name:"State"`
-	Namespace  string           `position:"Query" name:"Namespace"`
-	MetricName string           `position:"Query" name:"MetricName"`
-	AlertName  string           `position:"Query" name:"AlertName"`
-	Page       requests.Integer `position:"Query" name:"Page"`
+	StartTime  string           `position:"Query" name:"StartTime"`
 	Ascending  requests.Boolean `position:"Query" name:"Ascending"`
-	GroupId    string           `position:"Query" name:"GroupId"`
 	OnlyCount  requests.Boolean `position:"Query" name:"OnlyCount"`
+	Namespace  string           `position:"Query" name:"Namespace"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	State      string           `position:"Query" name:"State"`
+	Page       requests.Integer `position:"Query" name:"Page"`
+	MetricName string           `position:"Query" name:"MetricName"`
+	Status     string           `position:"Query" name:"Status"`
 }
 
 type DescribeAlarmHistoryResponse struct {

+ 92 - 0
services/cms/disable_actice_alert.go

@@ -0,0 +1,92 @@
+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"
+)
+
+func (client *Client) DisableActiceAlert(request *DisableActiceAlertRequest) (response *DisableActiceAlertResponse, err error) {
+	response = CreateDisableActiceAlertResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+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)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+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
+}
+
+type DisableActiceAlertRequest struct {
+	*requests.RpcRequest
+	Product string `position:"Query" name:"Product"`
+	UserId  string `position:"Query" name:"UserId"`
+}
+
+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"`
+}
+
+func CreateDisableActiceAlertRequest() (request *DisableActiceAlertRequest) {
+	request = &DisableActiceAlertRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "DisableActiceAlert", "cms", "openAPI")
+	return
+}
+
+func CreateDisableActiceAlertResponse() (response *DisableActiceAlertResponse) {
+	response = &DisableActiceAlertResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 7
services/cms/disable_alarm.go

@@ -33,12 +33,8 @@ func (client *Client) DisableAlarmWithChan(request *DisableAlarmRequest) (<-chan
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.DisableAlarm(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +64,8 @@ func (client *Client) DisableAlarmWithCallback(request *DisableAlarmRequest, cal
 
 type DisableAlarmRequest struct {
 	*requests.RpcRequest
-	Id             string `position:"Query" name:"Id"`
 	CallbyCmsOwner string `position:"Query" name:"callby_cms_owner"`
+	Id             string `position:"Query" name:"Id"`
 }
 
 type DisableAlarmResponse struct {

+ 91 - 0
services/cms/enable_actice_alert.go

@@ -0,0 +1,91 @@
+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"
+)
+
+func (client *Client) EnableActiceAlert(request *EnableActiceAlertRequest) (response *EnableActiceAlertResponse, err error) {
+	response = CreateEnableActiceAlertResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+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)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+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
+}
+
+type EnableActiceAlertRequest struct {
+	*requests.RpcRequest
+	Product string `position:"Query" name:"Product"`
+	UserId  string `position:"Query" name:"UserId"`
+}
+
+type EnableActiceAlertResponse struct {
+	*responses.BaseResponse
+	Success bool   `json:"Success" xml:"Success"`
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+}
+
+func CreateEnableActiceAlertRequest() (request *EnableActiceAlertRequest) {
+	request = &EnableActiceAlertRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "EnableActiceAlert", "cms", "openAPI")
+	return
+}
+
+func CreateEnableActiceAlertResponse() (response *EnableActiceAlertResponse) {
+	response = &EnableActiceAlertResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 7
services/cms/enable_alarm.go

@@ -33,12 +33,8 @@ func (client *Client) EnableAlarmWithChan(request *EnableAlarmRequest) (<-chan *
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.EnableAlarm(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +64,8 @@ func (client *Client) EnableAlarmWithCallback(request *EnableAlarmRequest, callb
 
 type EnableAlarmRequest struct {
 	*requests.RpcRequest
-	Id             string `position:"Query" name:"Id"`
 	CallbyCmsOwner string `position:"Query" name:"callby_cms_owner"`
+	Id             string `position:"Query" name:"Id"`
 }
 
 type EnableAlarmResponse struct {

+ 5 - 9
services/cms/get_my_groups.go

@@ -33,12 +33,8 @@ func (client *Client) GetMyGroupsWithChan(request *GetMyGroupsRequest) (<-chan *
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.GetMyGroups(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -69,11 +65,11 @@ func (client *Client) GetMyGroupsWithCallback(request *GetMyGroupsRequest, callb
 type GetMyGroupsRequest struct {
 	*requests.RpcRequest
 	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
-	BindUrl             string           `position:"Query" name:"BindUrl"`
-	GroupName           string           `position:"Query" name:"GroupName"`
+	InstanceId          string           `position:"Query" name:"InstanceId"`
 	GroupId             requests.Integer `position:"Query" name:"GroupId"`
 	Type                string           `position:"Query" name:"Type"`
-	InstanceId          string           `position:"Query" name:"InstanceId"`
+	GroupName           string           `position:"Query" name:"GroupName"`
+	BindUrl             string           `position:"Query" name:"BindUrl"`
 }
 
 type GetMyGroupsResponse struct {

+ 4 - 8
services/cms/get_notify_policy.go

@@ -33,12 +33,8 @@ func (client *Client) GetNotifyPolicyWithChan(request *GetNotifyPolicyRequest) (
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.GetNotifyPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +64,9 @@ func (client *Client) GetNotifyPolicyWithCallback(request *GetNotifyPolicyReques
 
 type GetNotifyPolicyRequest struct {
 	*requests.RpcRequest
-	Id         string `position:"Query" name:"Id"`
-	AlertName  string `position:"Query" name:"AlertName"`
 	PolicyType string `position:"Query" name:"PolicyType"`
+	AlertName  string `position:"Query" name:"AlertName"`
+	Id         string `position:"Query" name:"Id"`
 	Dimensions string `position:"Query" name:"Dimensions"`
 }
 

+ 114 - 0
services/cms/list_active_alert_rule.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"
+)
+
+func (client *Client) ListActiveAlertRule(request *ListActiveAlertRuleRequest) (response *ListActiveAlertRuleResponse, err error) {
+	response = CreateListActiveAlertRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) ListActiveAlertRuleWithChan(request *ListActiveAlertRuleRequest) (<-chan *ListActiveAlertRuleResponse, <-chan error) {
+	responseChan := make(chan *ListActiveAlertRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListActiveAlertRule(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) ListActiveAlertRuleWithCallback(request *ListActiveAlertRuleRequest, callback func(response *ListActiveAlertRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListActiveAlertRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.ListActiveAlertRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type ListActiveAlertRuleRequest struct {
+	*requests.RpcRequest
+	Product string `position:"Query" name:"Product"`
+	UserId  string `position:"Query" name:"UserId"`
+}
+
+type ListActiveAlertRuleResponse struct {
+	*responses.BaseResponse
+	Success    bool   `json:"Success" xml:"Success"`
+	Code       string `json:"Code" xml:"Code"`
+	Message    string `json:"Message" xml:"Message"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Datapoints struct {
+		Alarm []struct {
+			Uuid               string `json:"Uuid" xml:"Uuid"`
+			Name               string `json:"Name" xml:"Name"`
+			Namespace          string `json:"Namespace" xml:"Namespace"`
+			MetricName         string `json:"MetricName" xml:"MetricName"`
+			Period             string `json:"Period" xml:"Period"`
+			Statistics         string `json:"Statistics" xml:"Statistics"`
+			ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+			Threshold          string `json:"Threshold" xml:"Threshold"`
+			EvaluationCount    string `json:"EvaluationCount" xml:"EvaluationCount"`
+			StartTime          string `json:"StartTime" xml:"StartTime"`
+			EndTime            string `json:"EndTime" xml:"EndTime"`
+			SilenceTime        string `json:"SilenceTime" xml:"SilenceTime"`
+			NotifyType         string `json:"NotifyType" xml:"NotifyType"`
+			Enable             string `json:"Enable" xml:"Enable"`
+			State              string `json:"State" xml:"State"`
+			ContactGroups      string `json:"ContactGroups" xml:"ContactGroups"`
+			Webhook            string `json:"Webhook" xml:"Webhook"`
+			RuleName           string `json:"RuleName" xml:"RuleName"`
+		} `json:"Alarm" xml:"Alarm"`
+	} `json:"Datapoints" xml:"Datapoints"`
+}
+
+func CreateListActiveAlertRuleRequest() (request *ListActiveAlertRuleRequest) {
+	request = &ListActiveAlertRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "ListActiveAlertRule", "cms", "openAPI")
+	return
+}
+
+func CreateListActiveAlertRuleResponse() (response *ListActiveAlertRuleResponse) {
+	response = &ListActiveAlertRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 8 - 12
services/cms/list_alarm.go

@@ -33,12 +33,8 @@ func (client *Client) ListAlarmWithChan(request *ListAlarmRequest) (<-chan *List
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListAlarm(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,15 +64,15 @@ func (client *Client) ListAlarmWithCallback(request *ListAlarmRequest, callback
 
 type ListAlarmRequest struct {
 	*requests.RpcRequest
-	Id             string           `position:"Query" name:"Id"`
+	IsEnable       requests.Boolean `position:"Query" name:"IsEnable"`
+	CallbyCmsOwner string           `position:"Query" name:"callby_cms_owner"`
+	Name           string           `position:"Query" name:"Name"`
+	Namespace      string           `position:"Query" name:"Namespace"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
+	Id             string           `position:"Query" name:"Id"`
+	State          string           `position:"Query" name:"State"`
 	Dimension      string           `position:"Query" name:"Dimension"`
 	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
-	Name           string           `position:"Query" name:"Name"`
-	State          string           `position:"Query" name:"State"`
-	IsEnable       requests.Boolean `position:"Query" name:"IsEnable"`
-	Namespace      string           `position:"Query" name:"Namespace"`
-	CallbyCmsOwner string           `position:"Query" name:"callby_cms_owner"`
 }
 
 type ListAlarmResponse struct {

+ 5 - 9
services/cms/list_alarm_history.go

@@ -33,12 +33,8 @@ func (client *Client) ListAlarmHistoryWithChan(request *ListAlarmHistoryRequest)
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListAlarmHistory(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,12 +64,12 @@ func (client *Client) ListAlarmHistoryWithCallback(request *ListAlarmHistoryRequ
 
 type ListAlarmHistoryRequest struct {
 	*requests.RpcRequest
+	Cursor         string           `position:"Query" name:"Cursor"`
+	CallbyCmsOwner string           `position:"Query" name:"callby_cms_owner"`
+	Size           requests.Integer `position:"Query" name:"Size"`
 	EndTime        string           `position:"Query" name:"EndTime"`
 	Id             string           `position:"Query" name:"Id"`
-	Cursor         string           `position:"Query" name:"Cursor"`
 	StartTime      string           `position:"Query" name:"StartTime"`
-	Size           requests.Integer `position:"Query" name:"Size"`
-	CallbyCmsOwner string           `position:"Query" name:"callby_cms_owner"`
 }
 
 type ListAlarmHistoryResponse struct {

+ 3 - 7
services/cms/list_contact_group.go

@@ -33,12 +33,8 @@ func (client *Client) ListContactGroupWithChan(request *ListContactGroupRequest)
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListContactGroup(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +64,9 @@ func (client *Client) ListContactGroupWithCallback(request *ListContactGroupRequ
 
 type ListContactGroupRequest struct {
 	*requests.RpcRequest
+	CallbyCmsOwner string           `position:"Query" name:"callby_cms_owner"`
 	PageSize       requests.Integer `position:"Query" name:"PageSize"`
 	PageNumber     requests.Integer `position:"Query" name:"PageNumber"`
-	CallbyCmsOwner string           `position:"Query" name:"callby_cms_owner"`
 }
 
 type ListContactGroupResponse struct {

+ 2 - 6
services/cms/list_my_group_categories.go

@@ -33,12 +33,8 @@ func (client *Client) ListMyGroupCategoriesWithChan(request *ListMyGroupCategori
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListMyGroupCategories(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 3 - 7
services/cms/list_my_group_instances.go

@@ -33,12 +33,8 @@ func (client *Client) ListMyGroupInstancesWithChan(request *ListMyGroupInstances
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListMyGroupInstances(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -69,10 +65,10 @@ func (client *Client) ListMyGroupInstancesWithCallback(request *ListMyGroupInsta
 type ListMyGroupInstancesRequest struct {
 	*requests.RpcRequest
 	Total      requests.Boolean `position:"Query" name:"Total"`
+	GroupId    requests.Integer `position:"Query" name:"GroupId"`
 	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	Category   string           `position:"Query" name:"Category"`
 	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
-	GroupId    requests.Integer `position:"Query" name:"GroupId"`
 }
 
 type ListMyGroupInstancesResponse struct {

+ 3 - 7
services/cms/list_my_group_instances_details.go

@@ -33,12 +33,8 @@ func (client *Client) ListMyGroupInstancesDetailsWithChan(request *ListMyGroupIn
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListMyGroupInstancesDetails(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -69,10 +65,10 @@ func (client *Client) ListMyGroupInstancesDetailsWithCallback(request *ListMyGro
 type ListMyGroupInstancesDetailsRequest struct {
 	*requests.RpcRequest
 	Total      requests.Boolean `position:"Query" name:"Total"`
+	GroupId    requests.Integer `position:"Query" name:"GroupId"`
 	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	Category   string           `position:"Query" name:"Category"`
 	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
-	GroupId    requests.Integer `position:"Query" name:"GroupId"`
 }
 
 type ListMyGroupInstancesDetailsResponse struct {

+ 6 - 10
services/cms/list_my_groups.go

@@ -33,12 +33,8 @@ func (client *Client) ListMyGroupsWithChan(request *ListMyGroupsRequest) (<-chan
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListMyGroups(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,14 +64,14 @@ func (client *Client) ListMyGroupsWithCallback(request *ListMyGroupsRequest, cal
 
 type ListMyGroupsRequest struct {
 	*requests.RpcRequest
-	PageSize            requests.Integer `position:"Query" name:"PageSize"`
 	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
-	PageNumber          requests.Integer `position:"Query" name:"PageNumber"`
+	InstanceId          string           `position:"Query" name:"InstanceId"`
+	PageSize            requests.Integer `position:"Query" name:"PageSize"`
 	Keyword             string           `position:"Query" name:"Keyword"`
+	Type                string           `position:"Query" name:"Type"`
 	GroupName           string           `position:"Query" name:"GroupName"`
+	PageNumber          requests.Integer `position:"Query" name:"PageNumber"`
 	BindUrls            string           `position:"Query" name:"BindUrls"`
-	Type                string           `position:"Query" name:"Type"`
-	InstanceId          string           `position:"Query" name:"InstanceId"`
 }
 
 type ListMyGroupsResponse struct {

+ 5 - 9
services/cms/list_notify_policy.go

@@ -33,12 +33,8 @@ func (client *Client) ListNotifyPolicyWithChan(request *ListNotifyPolicyRequest)
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ListNotifyPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +64,10 @@ func (client *Client) ListNotifyPolicyWithCallback(request *ListNotifyPolicyRequ
 
 type ListNotifyPolicyRequest struct {
 	*requests.RpcRequest
-	Id         string           `position:"Query" name:"Id"`
-	PageSize   requests.Integer `position:"Query" name:"PageSize"`
-	AlertName  string           `position:"Query" name:"AlertName"`
 	PolicyType string           `position:"Query" name:"PolicyType"`
+	AlertName  string           `position:"Query" name:"AlertName"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	Id         string           `position:"Query" name:"Id"`
 	Dimensions string           `position:"Query" name:"Dimensions"`
 }
 

+ 92 - 0
services/cms/list_product_of_actice_alert.go

@@ -0,0 +1,92 @@
+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"
+)
+
+func (client *Client) ListProductOfActiceAlert(request *ListProductOfActiceAlertRequest) (response *ListProductOfActiceAlertResponse, err error) {
+	response = CreateListProductOfActiceAlertResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+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)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+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
+}
+
+type ListProductOfActiceAlertRequest struct {
+	*requests.RpcRequest
+	UserId string `position:"Query" name:"UserId"`
+}
+
+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"`
+}
+
+func CreateListProductOfActiceAlertRequest() (request *ListProductOfActiceAlertRequest) {
+	request = &ListProductOfActiceAlertRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "ListProductOfActiceAlert", "cms", "openAPI")
+	return
+}
+
+func CreateListProductOfActiceAlertResponse() (response *ListProductOfActiceAlertResponse) {
+	response = &ListProductOfActiceAlertResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 4 - 8
services/cms/node_install.go

@@ -33,12 +33,8 @@ func (client *Client) NodeInstallWithChan(request *NodeInstallRequest) (<-chan *
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeInstall(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +64,9 @@ func (client *Client) NodeInstallWithCallback(request *NodeInstallRequest, callb
 
 type NodeInstallRequest struct {
 	*requests.RpcRequest
-	UserId     string           `position:"Query" name:"UserId"`
-	Force      requests.Boolean `position:"Query" name:"Force"`
 	InstanceId string           `position:"Query" name:"InstanceId"`
+	Force      requests.Boolean `position:"Query" name:"Force"`
+	UserId     string           `position:"Query" name:"UserId"`
 }
 
 type NodeInstallResponse struct {

+ 7 - 11
services/cms/node_list.go

@@ -33,12 +33,8 @@ func (client *Client) NodeListWithChan(request *NodeListRequest) (<-chan *NodeLi
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeList(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,14 +64,14 @@ func (client *Client) NodeListWithCallback(request *NodeListRequest, callback fu
 
 type NodeListRequest struct {
 	*requests.RpcRequest
-	PageSize      requests.Integer `position:"Query" name:"PageSize"`
-	Status        string           `position:"Query" name:"Status"`
-	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
+	HostName      string           `position:"Query" name:"HostName"`
 	InstanceIds   string           `position:"Query" name:"InstanceIds"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
 	KeyWord       string           `position:"Query" name:"KeyWord"`
-	SerialNumbers string           `position:"Query" name:"SerialNumbers"`
 	UserId        requests.Integer `position:"Query" name:"UserId"`
-	HostName      string           `position:"Query" name:"HostName"`
+	SerialNumbers string           `position:"Query" name:"SerialNumbers"`
+	PageNumber    requests.Integer `position:"Query" name:"PageNumber"`
+	Status        string           `position:"Query" name:"Status"`
 }
 
 type NodeListResponse struct {

+ 4 - 8
services/cms/node_process_create.go

@@ -33,12 +33,8 @@ func (client *Client) NodeProcessCreateWithChan(request *NodeProcessCreateReques
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeProcessCreate(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,11 +64,11 @@ func (client *Client) NodeProcessCreateWithCallback(request *NodeProcessCreateRe
 
 type NodeProcessCreateRequest struct {
 	*requests.RpcRequest
+	InstanceId  string `position:"Query" name:"InstanceId"`
 	ProcessName string `position:"Query" name:"ProcessName"`
 	Name        string `position:"Query" name:"Name"`
-	Command     string `position:"Query" name:"Command"`
 	ProcessUser string `position:"Query" name:"ProcessUser"`
-	InstanceId  string `position:"Query" name:"InstanceId"`
+	Command     string `position:"Query" name:"Command"`
 }
 
 type NodeProcessCreateResponse struct {

+ 4 - 8
services/cms/node_process_delete.go

@@ -33,12 +33,8 @@ func (client *Client) NodeProcessDeleteWithChan(request *NodeProcessDeleteReques
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeProcessDelete(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +64,9 @@ func (client *Client) NodeProcessDeleteWithCallback(request *NodeProcessDeleteRe
 
 type NodeProcessDeleteRequest struct {
 	*requests.RpcRequest
-	Id         string `position:"Query" name:"Id"`
-	Name       string `position:"Query" name:"Name"`
 	InstanceId string `position:"Query" name:"InstanceId"`
+	Name       string `position:"Query" name:"Name"`
+	Id         string `position:"Query" name:"Id"`
 }
 
 type NodeProcessDeleteResponse struct {

+ 2 - 6
services/cms/node_processes.go

@@ -33,12 +33,8 @@ func (client *Client) NodeProcessesWithChan(request *NodeProcessesRequest) (<-ch
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeProcesses(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 6
services/cms/node_status.go

@@ -33,12 +33,8 @@ func (client *Client) NodeStatusWithChan(request *NodeStatusRequest) (<-chan *No
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeStatus(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 6
services/cms/node_status_list.go

@@ -33,12 +33,8 @@ func (client *Client) NodeStatusListWithChan(request *NodeStatusListRequest) (<-
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeStatusList(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 6
services/cms/node_uninstall.go

@@ -33,12 +33,8 @@ func (client *Client) NodeUninstallWithChan(request *NodeUninstallRequest) (<-ch
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.NodeUninstall(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 3 - 6
services/cms/profile_get.go

@@ -33,12 +33,8 @@ func (client *Client) ProfileGetWithChan(request *ProfileGetRequest) (<-chan *Pr
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ProfileGet(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -80,6 +76,7 @@ type ProfileGetResponse struct {
 	UserId                   int    `json:"UserId" xml:"UserId"`
 	AutoInstall              bool   `json:"AutoInstall" xml:"AutoInstall"`
 	EnableInstallAgentNewECS bool   `json:"EnableInstallAgentNewECS" xml:"EnableInstallAgentNewECS"`
+	EnableActiveAlert        string `json:"EnableActiveAlert" xml:"EnableActiveAlert"`
 }
 
 func CreateProfileGetRequest() (request *ProfileGetRequest) {

+ 4 - 7
services/cms/profile_set.go

@@ -33,12 +33,8 @@ func (client *Client) ProfileSetWithChan(request *ProfileSetRequest) (<-chan *Pr
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.ProfileSet(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +64,10 @@ func (client *Client) ProfileSetWithCallback(request *ProfileSetRequest, callbac
 
 type ProfileSetRequest struct {
 	*requests.RpcRequest
+	EnableInstallAgentNewECS requests.Boolean `position:"Query" name:"EnableInstallAgentNewECS"`
+	EnableActiveAlert        string           `position:"Query" name:"EnableActiveAlert"`
 	AutoInstall              requests.Boolean `position:"Query" name:"AutoInstall"`
 	UserId                   requests.Integer `position:"Query" name:"UserId"`
-	EnableInstallAgentNewECS requests.Boolean `position:"Query" name:"EnableInstallAgentNewECS"`
 }
 
 type ProfileSetResponse struct {

+ 2 - 6
services/cms/put_custom_metric.go

@@ -33,12 +33,8 @@ func (client *Client) PutCustomMetricWithChan(request *PutCustomMetricRequest) (
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.PutCustomMetric(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 6
services/cms/put_event.go

@@ -33,12 +33,8 @@ func (client *Client) PutEventWithChan(request *PutEventRequest) (<-chan *PutEve
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.PutEvent(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 3 - 7
services/cms/put_metric_data.go

@@ -33,12 +33,8 @@ func (client *Client) PutMetricDataWithChan(request *PutMetricDataRequest) (<-ch
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.PutMetricData(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +64,8 @@ func (client *Client) PutMetricDataWithCallback(request *PutMetricDataRequest, c
 
 type PutMetricDataRequest struct {
 	*requests.RpcRequest
-	Body           string `position:"Query" name:"Body"`
 	CallbyCmsOwner string `position:"Query" name:"callby_cms_owner"`
+	Body           string `position:"Query" name:"Body"`
 }
 
 type PutMetricDataResponse struct {

+ 2 - 6
services/cms/put_system_event.go

@@ -33,12 +33,8 @@ func (client *Client) PutSystemEventWithChan(request *PutSystemEventRequest) (<-
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.PutSystemEvent(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err

+ 90 - 0
services/cms/query_custom_event_count.go

@@ -0,0 +1,90 @@
+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"
+)
+
+func (client *Client) QueryCustomEventCount(request *QueryCustomEventCountRequest) (response *QueryCustomEventCountResponse, err error) {
+	response = CreateQueryCustomEventCountResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QueryCustomEventCountWithChan(request *QueryCustomEventCountRequest) (<-chan *QueryCustomEventCountResponse, <-chan error) {
+	responseChan := make(chan *QueryCustomEventCountResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryCustomEventCount(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QueryCustomEventCountWithCallback(request *QueryCustomEventCountRequest, callback func(response *QueryCustomEventCountResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryCustomEventCountResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryCustomEventCount(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QueryCustomEventCountRequest struct {
+	*requests.RpcRequest
+	QueryJson string `position:"Query" name:"QueryJson"`
+}
+
+type QueryCustomEventCountResponse struct {
+	*responses.BaseResponse
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+	Data    string `json:"Data" xml:"Data"`
+}
+
+func CreateQueryCustomEventCountRequest() (request *QueryCustomEventCountRequest) {
+	request = &QueryCustomEventCountRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomEventCount", "cms", "openAPI")
+	return
+}
+
+func CreateQueryCustomEventCountResponse() (response *QueryCustomEventCountResponse) {
+	response = &QueryCustomEventCountResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 90 - 0
services/cms/query_custom_event_detail.go

@@ -0,0 +1,90 @@
+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"
+)
+
+func (client *Client) QueryCustomEventDetail(request *QueryCustomEventDetailRequest) (response *QueryCustomEventDetailResponse, err error) {
+	response = CreateQueryCustomEventDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QueryCustomEventDetailWithChan(request *QueryCustomEventDetailRequest) (<-chan *QueryCustomEventDetailResponse, <-chan error) {
+	responseChan := make(chan *QueryCustomEventDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryCustomEventDetail(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QueryCustomEventDetailWithCallback(request *QueryCustomEventDetailRequest, callback func(response *QueryCustomEventDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryCustomEventDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryCustomEventDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QueryCustomEventDetailRequest struct {
+	*requests.RpcRequest
+	QueryJson string `position:"Query" name:"QueryJson"`
+}
+
+type QueryCustomEventDetailResponse struct {
+	*responses.BaseResponse
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+	Data    string `json:"Data" xml:"Data"`
+}
+
+func CreateQueryCustomEventDetailRequest() (request *QueryCustomEventDetailRequest) {
+	request = &QueryCustomEventDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomEventDetail", "cms", "openAPI")
+	return
+}
+
+func CreateQueryCustomEventDetailResponse() (response *QueryCustomEventDetailResponse) {
+	response = &QueryCustomEventDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 90 - 0
services/cms/query_custom_event_histogram.go

@@ -0,0 +1,90 @@
+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"
+)
+
+func (client *Client) QueryCustomEventHistogram(request *QueryCustomEventHistogramRequest) (response *QueryCustomEventHistogramResponse, err error) {
+	response = CreateQueryCustomEventHistogramResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QueryCustomEventHistogramWithChan(request *QueryCustomEventHistogramRequest) (<-chan *QueryCustomEventHistogramResponse, <-chan error) {
+	responseChan := make(chan *QueryCustomEventHistogramResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryCustomEventHistogram(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QueryCustomEventHistogramWithCallback(request *QueryCustomEventHistogramRequest, callback func(response *QueryCustomEventHistogramResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryCustomEventHistogramResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryCustomEventHistogram(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QueryCustomEventHistogramRequest struct {
+	*requests.RpcRequest
+	QueryJson string `position:"Query" name:"QueryJson"`
+}
+
+type QueryCustomEventHistogramResponse struct {
+	*responses.BaseResponse
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+	Data    string `json:"Data" xml:"Data"`
+}
+
+func CreateQueryCustomEventHistogramRequest() (request *QueryCustomEventHistogramRequest) {
+	request = &QueryCustomEventHistogramRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "QueryCustomEventHistogram", "cms", "openAPI")
+	return
+}
+
+func CreateQueryCustomEventHistogramResponse() (response *QueryCustomEventHistogramResponse) {
+	response = &QueryCustomEventHistogramResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 6 - 10
services/cms/query_custom_metric_list.go

@@ -33,12 +33,8 @@ func (client *Client) QueryCustomMetricListWithChan(request *QueryCustomMetricLi
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.QueryCustomMetricList(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,13 +64,13 @@ func (client *Client) QueryCustomMetricListWithCallback(request *QueryCustomMetr
 
 type QueryCustomMetricListRequest struct {
 	*requests.RpcRequest
+	Size       string `position:"Query" name:"Size"`
+	GroupId    string `position:"Query" name:"GroupId"`
+	Page       string `position:"Query" name:"Page"`
 	MetricName string `position:"Query" name:"MetricName"`
 	Dimension  string `position:"Query" name:"Dimension"`
-	Page       string `position:"Query" name:"Page"`
-	Md5        string `position:"Query" name:"Md5"`
 	UUID       string `position:"Query" name:"UUID"`
-	GroupId    string `position:"Query" name:"GroupId"`
-	Size       string `position:"Query" name:"Size"`
+	Md5        string `position:"Query" name:"Md5"`
 }
 
 type QueryCustomMetricListResponse struct {

+ 9 - 13
services/cms/query_metric_last.go

@@ -33,12 +33,8 @@ func (client *Client) QueryMetricLastWithChan(request *QueryMetricLastRequest) (
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.QueryMetricLast(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,18 +64,18 @@ func (client *Client) QueryMetricLastWithCallback(request *QueryMetricLastReques
 
 type QueryMetricLastRequest struct {
 	*requests.RpcRequest
-	EndTime         string           `position:"Query" name:"EndTime"`
-	StartTime       string           `position:"Query" name:"StartTime"`
 	Cursor          string           `position:"Query" name:"Cursor"`
-	Express         string           `position:"Query" name:"Express"`
+	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
+	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	Period          string           `position:"Query" name:"Period"`
+	Length          string           `position:"Query" name:"Length"`
 	Project         string           `position:"Query" name:"Project"`
-	Page            string           `position:"Query" name:"Page"`
+	EndTime         string           `position:"Query" name:"EndTime"`
+	Express         string           `position:"Query" name:"Express"`
+	StartTime       string           `position:"Query" name:"StartTime"`
 	Metric          string           `position:"Query" name:"Metric"`
-	Length          string           `position:"Query" name:"Length"`
+	Page            string           `position:"Query" name:"Page"`
 	Dimensions      string           `position:"Query" name:"Dimensions"`
-	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
 }
 
 type QueryMetricLastResponse struct {

+ 9 - 13
services/cms/query_metric_list.go

@@ -33,12 +33,8 @@ func (client *Client) QueryMetricListWithChan(request *QueryMetricListRequest) (
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.QueryMetricList(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,18 +64,18 @@ func (client *Client) QueryMetricListWithCallback(request *QueryMetricListReques
 
 type QueryMetricListRequest struct {
 	*requests.RpcRequest
-	EndTime         string           `position:"Query" name:"EndTime"`
-	StartTime       string           `position:"Query" name:"StartTime"`
 	Cursor          string           `position:"Query" name:"Cursor"`
-	Express         string           `position:"Query" name:"Express"`
+	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
+	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	Period          string           `position:"Query" name:"Period"`
+	Length          string           `position:"Query" name:"Length"`
 	Project         string           `position:"Query" name:"Project"`
-	Page            string           `position:"Query" name:"Page"`
+	EndTime         string           `position:"Query" name:"EndTime"`
+	Express         string           `position:"Query" name:"Express"`
+	StartTime       string           `position:"Query" name:"StartTime"`
 	Metric          string           `position:"Query" name:"Metric"`
-	Length          string           `position:"Query" name:"Length"`
+	Page            string           `position:"Query" name:"Page"`
 	Dimensions      string           `position:"Query" name:"Dimensions"`
-	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	CallbyCmsOwner  string           `position:"Query" name:"callby_cms_owner"`
 }
 
 type QueryMetricListResponse struct {

+ 90 - 0
services/cms/query_system_event_count.go

@@ -0,0 +1,90 @@
+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"
+)
+
+func (client *Client) QuerySystemEventCount(request *QuerySystemEventCountRequest) (response *QuerySystemEventCountResponse, err error) {
+	response = CreateQuerySystemEventCountResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QuerySystemEventCountWithChan(request *QuerySystemEventCountRequest) (<-chan *QuerySystemEventCountResponse, <-chan error) {
+	responseChan := make(chan *QuerySystemEventCountResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QuerySystemEventCount(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QuerySystemEventCountWithCallback(request *QuerySystemEventCountRequest, callback func(response *QuerySystemEventCountResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QuerySystemEventCountResponse
+		var err error
+		defer close(result)
+		response, err = client.QuerySystemEventCount(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QuerySystemEventCountRequest struct {
+	*requests.RpcRequest
+	QueryJson string `position:"Query" name:"QueryJson"`
+}
+
+type QuerySystemEventCountResponse struct {
+	*responses.BaseResponse
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+	Data    string `json:"Data" xml:"Data"`
+}
+
+func CreateQuerySystemEventCountRequest() (request *QuerySystemEventCountRequest) {
+	request = &QuerySystemEventCountRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "QuerySystemEventCount", "cms", "openAPI")
+	return
+}
+
+func CreateQuerySystemEventCountResponse() (response *QuerySystemEventCountResponse) {
+	response = &QuerySystemEventCountResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 90 - 0
services/cms/query_system_event_detail.go

@@ -0,0 +1,90 @@
+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"
+)
+
+func (client *Client) QuerySystemEventDetail(request *QuerySystemEventDetailRequest) (response *QuerySystemEventDetailResponse, err error) {
+	response = CreateQuerySystemEventDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QuerySystemEventDetailWithChan(request *QuerySystemEventDetailRequest) (<-chan *QuerySystemEventDetailResponse, <-chan error) {
+	responseChan := make(chan *QuerySystemEventDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QuerySystemEventDetail(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QuerySystemEventDetailWithCallback(request *QuerySystemEventDetailRequest, callback func(response *QuerySystemEventDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QuerySystemEventDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.QuerySystemEventDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QuerySystemEventDetailRequest struct {
+	*requests.RpcRequest
+	QueryJson string `position:"Query" name:"QueryJson"`
+}
+
+type QuerySystemEventDetailResponse struct {
+	*responses.BaseResponse
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+	Data    string `json:"Data" xml:"Data"`
+}
+
+func CreateQuerySystemEventDetailRequest() (request *QuerySystemEventDetailRequest) {
+	request = &QuerySystemEventDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "QuerySystemEventDetail", "cms", "openAPI")
+	return
+}
+
+func CreateQuerySystemEventDetailResponse() (response *QuerySystemEventDetailResponse) {
+	response = &QuerySystemEventDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 90 - 0
services/cms/query_system_event_histogram.go

@@ -0,0 +1,90 @@
+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"
+)
+
+func (client *Client) QuerySystemEventHistogram(request *QuerySystemEventHistogramRequest) (response *QuerySystemEventHistogramResponse, err error) {
+	response = CreateQuerySystemEventHistogramResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) QuerySystemEventHistogramWithChan(request *QuerySystemEventHistogramRequest) (<-chan *QuerySystemEventHistogramResponse, <-chan error) {
+	responseChan := make(chan *QuerySystemEventHistogramResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QuerySystemEventHistogram(request)
+		responseChan <- response
+		errChan <- err
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) QuerySystemEventHistogramWithCallback(request *QuerySystemEventHistogramRequest, callback func(response *QuerySystemEventHistogramResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QuerySystemEventHistogramResponse
+		var err error
+		defer close(result)
+		response, err = client.QuerySystemEventHistogram(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type QuerySystemEventHistogramRequest struct {
+	*requests.RpcRequest
+	QueryJson string `position:"Query" name:"QueryJson"`
+}
+
+type QuerySystemEventHistogramResponse struct {
+	*responses.BaseResponse
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
+	Data    string `json:"Data" xml:"Data"`
+}
+
+func CreateQuerySystemEventHistogramRequest() (request *QuerySystemEventHistogramRequest) {
+	request = &QuerySystemEventHistogramRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2017-03-01", "QuerySystemEventHistogram", "cms", "openAPI")
+	return
+}
+
+func CreateQuerySystemEventHistogramResponse() (response *QuerySystemEventHistogramResponse) {
+	response = &QuerySystemEventHistogramResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 11 - 15
services/cms/update_alarm.go

@@ -33,12 +33,8 @@ func (client *Client) UpdateAlarmWithChan(request *UpdateAlarmRequest) (<-chan *
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.UpdateAlarm(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,20 +64,20 @@ func (client *Client) UpdateAlarmWithCallback(request *UpdateAlarmRequest, callb
 
 type UpdateAlarmRequest struct {
 	*requests.RpcRequest
-	ComparisonOperator string           `position:"Query" name:"ComparisonOperator"`
-	EndTime            requests.Integer `position:"Query" name:"EndTime"`
-	StartTime          requests.Integer `position:"Query" name:"StartTime"`
-	NotifyType         requests.Integer `position:"Query" name:"NotifyType"`
+	CallbyCmsOwner     string           `position:"Query" name:"callby_cms_owner"`
 	Period             requests.Integer `position:"Query" name:"Period"`
-	Statistics         string           `position:"Query" name:"Statistics"`
-	Threshold          string           `position:"Query" name:"Threshold"`
-	Id                 string           `position:"Query" name:"Id"`
 	Webhook            string           `position:"Query" name:"Webhook"`
+	ContactGroups      string           `position:"Query" name:"ContactGroups"`
+	EndTime            requests.Integer `position:"Query" name:"EndTime"`
+	Threshold          string           `position:"Query" name:"Threshold"`
+	StartTime          requests.Integer `position:"Query" name:"StartTime"`
 	Name               string           `position:"Query" name:"Name"`
 	EvaluationCount    requests.Integer `position:"Query" name:"EvaluationCount"`
 	SilenceTime        requests.Integer `position:"Query" name:"SilenceTime"`
-	ContactGroups      string           `position:"Query" name:"ContactGroups"`
-	CallbyCmsOwner     string           `position:"Query" name:"callby_cms_owner"`
+	Id                 string           `position:"Query" name:"Id"`
+	NotifyType         requests.Integer `position:"Query" name:"NotifyType"`
+	ComparisonOperator string           `position:"Query" name:"ComparisonOperator"`
+	Statistics         string           `position:"Query" name:"Statistics"`
 }
 
 type UpdateAlarmResponse struct {

+ 3 - 7
services/cms/update_my_group_instances.go

@@ -33,12 +33,8 @@ func (client *Client) UpdateMyGroupInstancesWithChan(request *UpdateMyGroupInsta
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.UpdateMyGroupInstances(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +64,8 @@ func (client *Client) UpdateMyGroupInstancesWithCallback(request *UpdateMyGroupI
 
 type UpdateMyGroupInstancesRequest struct {
 	*requests.RpcRequest
-	GroupId   requests.Integer `position:"Query" name:"GroupId"`
 	Instances string           `position:"Query" name:"Instances"`
+	GroupId   requests.Integer `position:"Query" name:"GroupId"`
 }
 
 type UpdateMyGroupInstancesResponse struct {

+ 5 - 9
services/cms/update_my_groups.go

@@ -33,12 +33,8 @@ func (client *Client) UpdateMyGroupsWithChan(request *UpdateMyGroupsRequest) (<-
 		defer close(responseChan)
 		defer close(errChan)
 		response, err := client.UpdateMyGroups(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-
+		responseChan <- response
+		errChan <- err
 	})
 	if err != nil {
 		errChan <- err
@@ -68,12 +64,12 @@ func (client *Client) UpdateMyGroupsWithCallback(request *UpdateMyGroupsRequest,
 
 type UpdateMyGroupsRequest struct {
 	*requests.RpcRequest
-	GroupName     string           `position:"Query" name:"GroupName"`
+	ContactGroups string           `position:"Query" name:"ContactGroups"`
 	GroupId       string           `position:"Query" name:"GroupId"`
+	ServiceId     requests.Integer `position:"Query" name:"ServiceId"`
 	Type          string           `position:"Query" name:"Type"`
+	GroupName     string           `position:"Query" name:"GroupName"`
 	BindUrls      string           `position:"Query" name:"BindUrls"`
-	ContactGroups string           `position:"Query" name:"ContactGroups"`
-	ServiceId     requests.Integer `position:"Query" name:"ServiceId"`
 }
 
 type UpdateMyGroupsResponse struct {