Browse Source

CMS SDK Auto Released By shenshi,Version:1.53.72

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 years ago
parent
commit
98404a78c0
69 changed files with 2864 additions and 89 deletions
  1. 3 0
      ChangeLog.txt
  2. 114 0
      services/cms/apply_monitoring_template.go
  3. 111 0
      services/cms/create_monitoring_template.go
  4. 108 0
      services/cms/create_my_group_alert_batch.go
  5. 1 0
      services/cms/create_task.go
  6. 107 0
      services/cms/delete_monitoring_template.go
  7. 1 0
      services/cms/delete_my_group_instances.go
  8. 5 5
      services/cms/describe_event_rule.go
  9. 108 0
      services/cms/get_monitoring_template.go
  10. 108 0
      services/cms/get_my_group_alert.go
  11. 5 5
      services/cms/get_notify_policy.go
  12. 2 0
      services/cms/list_event_targets_by_rule.go
  13. 116 0
      services/cms/list_monitoring_templates.go
  14. 1 1
      services/cms/list_my_groups.go
  15. 1 0
      services/cms/modify_task.go
  16. 5 4
      services/cms/put_event_rule.go
  17. 15 5
      services/cms/put_event_targets.go
  18. 108 0
      services/cms/query_error_distribution.go
  19. 2 1
      services/cms/query_metric_last.go
  20. 1 0
      services/cms/query_metric_list.go
  21. 111 0
      services/cms/query_metric_meta.go
  22. 116 0
      services/cms/query_monitor_data.go
  23. 109 0
      services/cms/query_project_meta.go
  24. 108 0
      services/cms/query_statics_availability.go
  25. 108 0
      services/cms/query_statics_error_rate.go
  26. 108 0
      services/cms/query_statics_response_time.go
  27. 106 0
      services/cms/query_task_config.go
  28. 116 0
      services/cms/query_task_monitor_data.go
  29. 25 24
      services/cms/struct_alarm.go
  30. 1 1
      services/cms/struct_alarm_history_in_describe_alarm_history.go
  31. 6 4
      services/cms/struct_alert_result.go
  32. 26 0
      services/cms/struct_alert_result_in_apply_template.go
  33. 21 0
      services/cms/struct_alert_results.go
  34. 21 0
      services/cms/struct_apply_histories.go
  35. 23 0
      services/cms/struct_apply_history.go
  36. 1 1
      services/cms/struct_create_alert_results.go
  37. 24 0
      services/cms/struct_critical.go
  38. 24 0
      services/cms/struct_critical_in_describe_alarms.go
  39. 24 0
      services/cms/struct_critical_in_describe_alarms_for_resources.go
  40. 23 0
      services/cms/struct_escalations.go
  41. 5 4
      services/cms/struct_event_pattern_item.go
  42. 21 0
      services/cms/struct_event_results.go
  43. 21 0
      services/cms/struct_event_type_list.go
  44. 24 0
      services/cms/struct_failed_sls_parameter.go
  45. 21 0
      services/cms/struct_failed_sls_parameters.go
  46. 37 0
      services/cms/struct_group_alert.go
  47. 24 0
      services/cms/struct_info.go
  48. 24 0
      services/cms/struct_info_in_describe_alarms.go
  49. 24 0
      services/cms/struct_info_in_describe_alarms_for_resources.go
  50. 38 22
      services/cms/struct_resource.go
  51. 27 0
      services/cms/struct_resource_in_delete_monitoring_template.go
  52. 27 0
      services/cms/struct_resource_in_get_monitoring_template.go
  53. 21 0
      services/cms/struct_resources_in_create_my_group_alert_batch.go
  54. 21 0
      services/cms/struct_resources_in_list_monitoring_templates.go
  55. 21 0
      services/cms/struct_resources_in_query_metric_meta.go
  56. 21 0
      services/cms/struct_resources_in_query_project_meta.go
  57. 6 12
      services/cms/struct_result.go
  58. 26 0
      services/cms/struct_result_in_apply_monitoring_template.go
  59. 26 0
      services/cms/struct_result_in_describe_event_rule.go
  60. 27 0
      services/cms/struct_result_in_get_notify_policy.go
  61. 24 0
      services/cms/struct_sls_parameter.go
  62. 21 0
      services/cms/struct_sls_parameters.go
  63. 24 0
      services/cms/struct_warn.go
  64. 24 0
      services/cms/struct_warn_in_describe_alarms.go
  65. 24 0
      services/cms/struct_warn_in_describe_alarms_for_resources.go
  66. 24 0
      services/cms/struct_webhook_parameter.go
  67. 21 0
      services/cms/struct_webhook_parameters.go
  68. 111 0
      services/cms/update_monitoring_template.go
  69. 106 0
      services/cms/update_my_group_alert.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-03-20 Version: 1.53.72
+1, Update the Dependency
+
 2019-03-20 Version: 1.53.71
 1, Update the Dependency
 

+ 114 - 0
services/cms/apply_monitoring_template.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"
+)
+
+// ApplyMonitoringTemplate invokes the cms.ApplyMonitoringTemplate API synchronously
+// api document: https://help.aliyun.com/api/cms/applymonitoringtemplate.html
+func (client *Client) ApplyMonitoringTemplate(request *ApplyMonitoringTemplateRequest) (response *ApplyMonitoringTemplateResponse, err error) {
+	response = CreateApplyMonitoringTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ApplyMonitoringTemplateWithChan invokes the cms.ApplyMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/applymonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ApplyMonitoringTemplateWithChan(request *ApplyMonitoringTemplateRequest) (<-chan *ApplyMonitoringTemplateResponse, <-chan error) {
+	responseChan := make(chan *ApplyMonitoringTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ApplyMonitoringTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ApplyMonitoringTemplateWithCallback invokes the cms.ApplyMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/applymonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ApplyMonitoringTemplateWithCallback(request *ApplyMonitoringTemplateRequest, callback func(response *ApplyMonitoringTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ApplyMonitoringTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.ApplyMonitoringTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ApplyMonitoringTemplateRequest is the request struct for api ApplyMonitoringTemplate
+type ApplyMonitoringTemplateRequest struct {
+	*requests.RpcRequest
+	EnableStartTime requests.Integer `position:"Query" name:"EnableStartTime"`
+	ApplyMode       string           `position:"Query" name:"ApplyMode"`
+	Webhook         string           `position:"Query" name:"Webhook"`
+	TemplateIds     string           `position:"Query" name:"TemplateIds"`
+	EnableEndTime   requests.Integer `position:"Query" name:"EnableEndTime"`
+	GroupId         requests.Integer `position:"Query" name:"GroupId"`
+	NotifyLevel     requests.Integer `position:"Query" name:"NotifyLevel"`
+	SilenceTime     requests.Integer `position:"Query" name:"SilenceTime"`
+}
+
+// ApplyMonitoringTemplateResponse is the response struct for api ApplyMonitoringTemplate
+type ApplyMonitoringTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId    string   `json:"RequestId" xml:"RequestId"`
+	Success      bool     `json:"Success" xml:"Success"`
+	ErrorCode    int      `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string   `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resource     Resource `json:"Resource" xml:"Resource"`
+}
+
+// CreateApplyMonitoringTemplateRequest creates a request to invoke ApplyMonitoringTemplate API
+func CreateApplyMonitoringTemplateRequest() (request *ApplyMonitoringTemplateRequest) {
+	request = &ApplyMonitoringTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ApplyMonitoringTemplate", "cms", "openAPI")
+	return
+}
+
+// CreateApplyMonitoringTemplateResponse creates a response to parse from ApplyMonitoringTemplate response
+func CreateApplyMonitoringTemplateResponse() (response *ApplyMonitoringTemplateResponse) {
+	response = &ApplyMonitoringTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/cms/create_monitoring_template.go

@@ -0,0 +1,111 @@
+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"
+)
+
+// CreateMonitoringTemplate invokes the cms.CreateMonitoringTemplate API synchronously
+// api document: https://help.aliyun.com/api/cms/createmonitoringtemplate.html
+func (client *Client) CreateMonitoringTemplate(request *CreateMonitoringTemplateRequest) (response *CreateMonitoringTemplateResponse, err error) {
+	response = CreateCreateMonitoringTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateMonitoringTemplateWithChan invokes the cms.CreateMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/createmonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateMonitoringTemplateWithChan(request *CreateMonitoringTemplateRequest) (<-chan *CreateMonitoringTemplateResponse, <-chan error) {
+	responseChan := make(chan *CreateMonitoringTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateMonitoringTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateMonitoringTemplateWithCallback invokes the cms.CreateMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/createmonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateMonitoringTemplateWithCallback(request *CreateMonitoringTemplateRequest, callback func(response *CreateMonitoringTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateMonitoringTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateMonitoringTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateMonitoringTemplateRequest is the request struct for api CreateMonitoringTemplate
+type CreateMonitoringTemplateRequest struct {
+	*requests.RpcRequest
+	EventRuleTemplatesJson string `position:"Query" name:"EventRuleTemplatesJson"`
+	Name                   string `position:"Query" name:"Name"`
+	Namespace              string `position:"Query" name:"Namespace"`
+	Description            string `position:"Query" name:"Description"`
+	AlertTemplatesJson     string `position:"Query" name:"AlertTemplatesJson"`
+}
+
+// CreateMonitoringTemplateResponse is the response struct for api CreateMonitoringTemplate
+type CreateMonitoringTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+	Id           int    `json:"Id" xml:"Id"`
+}
+
+// CreateCreateMonitoringTemplateRequest creates a request to invoke CreateMonitoringTemplate API
+func CreateCreateMonitoringTemplateRequest() (request *CreateMonitoringTemplateRequest) {
+	request = &CreateMonitoringTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "CreateMonitoringTemplate", "cms", "openAPI")
+	return
+}
+
+// CreateCreateMonitoringTemplateResponse creates a response to parse from CreateMonitoringTemplate response
+func CreateCreateMonitoringTemplateResponse() (response *CreateMonitoringTemplateResponse) {
+	response = &CreateMonitoringTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/cms/create_my_group_alert_batch.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// CreateMyGroupAlertBatch invokes the cms.CreateMyGroupAlertBatch API synchronously
+// api document: https://help.aliyun.com/api/cms/createmygroupalertbatch.html
+func (client *Client) CreateMyGroupAlertBatch(request *CreateMyGroupAlertBatchRequest) (response *CreateMyGroupAlertBatchResponse, err error) {
+	response = CreateCreateMyGroupAlertBatchResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateMyGroupAlertBatchWithChan invokes the cms.CreateMyGroupAlertBatch API asynchronously
+// api document: https://help.aliyun.com/api/cms/createmygroupalertbatch.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateMyGroupAlertBatchWithChan(request *CreateMyGroupAlertBatchRequest) (<-chan *CreateMyGroupAlertBatchResponse, <-chan error) {
+	responseChan := make(chan *CreateMyGroupAlertBatchResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateMyGroupAlertBatch(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateMyGroupAlertBatchWithCallback invokes the cms.CreateMyGroupAlertBatch API asynchronously
+// api document: https://help.aliyun.com/api/cms/createmygroupalertbatch.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateMyGroupAlertBatchWithCallback(request *CreateMyGroupAlertBatchRequest, callback func(response *CreateMyGroupAlertBatchResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateMyGroupAlertBatchResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateMyGroupAlertBatch(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateMyGroupAlertBatchRequest is the request struct for api CreateMyGroupAlertBatch
+type CreateMyGroupAlertBatchRequest struct {
+	*requests.RpcRequest
+	GroupId             requests.Integer `position:"Query" name:"GroupId"`
+	GroupAlertJsonArray string           `position:"Query" name:"GroupAlertJsonArray"`
+}
+
+// CreateMyGroupAlertBatchResponse is the response struct for api CreateMyGroupAlertBatch
+type CreateMyGroupAlertBatchResponse struct {
+	*responses.BaseResponse
+	RequestId    string                             `json:"RequestId" xml:"RequestId"`
+	Success      bool                               `json:"Success" xml:"Success"`
+	ErrorCode    int                                `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                             `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resources    ResourcesInCreateMyGroupAlertBatch `json:"Resources" xml:"Resources"`
+}
+
+// CreateCreateMyGroupAlertBatchRequest creates a request to invoke CreateMyGroupAlertBatch API
+func CreateCreateMyGroupAlertBatchRequest() (request *CreateMyGroupAlertBatchRequest) {
+	request = &CreateMyGroupAlertBatchRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "CreateMyGroupAlertBatch", "cms", "openAPI")
+	return
+}
+
+// CreateCreateMyGroupAlertBatchResponse creates a response to parse from CreateMyGroupAlertBatch response
+func CreateCreateMyGroupAlertBatchResponse() (response *CreateMyGroupAlertBatchResponse) {
+	response = &CreateMyGroupAlertBatchResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/cms/create_task.go

@@ -76,6 +76,7 @@ func (client *Client) CreateTaskWithCallback(request *CreateTaskRequest, callbac
 // CreateTaskRequest is the request struct for api CreateTask
 type CreateTaskRequest struct {
 	*requests.RpcRequest
+	Caller    string `position:"Query" name:"caller"`
 	Address   string `position:"Query" name:"Address"`
 	TaskType  string `position:"Query" name:"TaskType"`
 	IspCity   string `position:"Query" name:"IspCity"`

+ 107 - 0
services/cms/delete_monitoring_template.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"
+)
+
+// DeleteMonitoringTemplate invokes the cms.DeleteMonitoringTemplate API synchronously
+// api document: https://help.aliyun.com/api/cms/deletemonitoringtemplate.html
+func (client *Client) DeleteMonitoringTemplate(request *DeleteMonitoringTemplateRequest) (response *DeleteMonitoringTemplateResponse, err error) {
+	response = CreateDeleteMonitoringTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteMonitoringTemplateWithChan invokes the cms.DeleteMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/deletemonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteMonitoringTemplateWithChan(request *DeleteMonitoringTemplateRequest) (<-chan *DeleteMonitoringTemplateResponse, <-chan error) {
+	responseChan := make(chan *DeleteMonitoringTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteMonitoringTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteMonitoringTemplateWithCallback invokes the cms.DeleteMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/deletemonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteMonitoringTemplateWithCallback(request *DeleteMonitoringTemplateRequest, callback func(response *DeleteMonitoringTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteMonitoringTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteMonitoringTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteMonitoringTemplateRequest is the request struct for api DeleteMonitoringTemplate
+type DeleteMonitoringTemplateRequest struct {
+	*requests.RpcRequest
+	Id string `position:"Query" name:"Id"`
+}
+
+// DeleteMonitoringTemplateResponse is the response struct for api DeleteMonitoringTemplate
+type DeleteMonitoringTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId    string                             `json:"RequestId" xml:"RequestId"`
+	Success      bool                               `json:"Success" xml:"Success"`
+	ErrorCode    int                                `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                             `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resource     ResourceInDeleteMonitoringTemplate `json:"Resource" xml:"Resource"`
+}
+
+// CreateDeleteMonitoringTemplateRequest creates a request to invoke DeleteMonitoringTemplate API
+func CreateDeleteMonitoringTemplateRequest() (request *DeleteMonitoringTemplateRequest) {
+	request = &DeleteMonitoringTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DeleteMonitoringTemplate", "cms", "openAPI")
+	return
+}
+
+// CreateDeleteMonitoringTemplateResponse creates a response to parse from DeleteMonitoringTemplate response
+func CreateDeleteMonitoringTemplateResponse() (response *DeleteMonitoringTemplateResponse) {
+	response = &DeleteMonitoringTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/cms/delete_my_group_instances.go

@@ -79,6 +79,7 @@ type DeleteMyGroupInstancesRequest struct {
 	InstanceIds    string           `position:"Query" name:"InstanceIds"`
 	InstanceIdList string           `position:"Query" name:"InstanceIdList"`
 	GroupId        requests.Integer `position:"Query" name:"GroupId"`
+	Category       string           `position:"Query" name:"Category"`
 }
 
 // DeleteMyGroupInstancesResponse is the response struct for api DeleteMyGroupInstances

+ 5 - 5
services/cms/describe_event_rule.go

@@ -82,11 +82,11 @@ type DescribeEventRuleRequest struct {
 // DescribeEventRuleResponse is the response struct for api DescribeEventRule
 type DescribeEventRuleResponse 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"`
-	Result    Result `json:"Result" xml:"Result"`
+	Success   bool                      `json:"Success" xml:"Success"`
+	Code      string                    `json:"Code" xml:"Code"`
+	Message   string                    `json:"Message" xml:"Message"`
+	RequestId string                    `json:"RequestId" xml:"RequestId"`
+	Result    ResultInDescribeEventRule `json:"Result" xml:"Result"`
 }
 
 // CreateDescribeEventRuleRequest creates a request to invoke DescribeEventRule API

+ 108 - 0
services/cms/get_monitoring_template.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// GetMonitoringTemplate invokes the cms.GetMonitoringTemplate API synchronously
+// api document: https://help.aliyun.com/api/cms/getmonitoringtemplate.html
+func (client *Client) GetMonitoringTemplate(request *GetMonitoringTemplateRequest) (response *GetMonitoringTemplateResponse, err error) {
+	response = CreateGetMonitoringTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMonitoringTemplateWithChan invokes the cms.GetMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/getmonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMonitoringTemplateWithChan(request *GetMonitoringTemplateRequest) (<-chan *GetMonitoringTemplateResponse, <-chan error) {
+	responseChan := make(chan *GetMonitoringTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMonitoringTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMonitoringTemplateWithCallback invokes the cms.GetMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/getmonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMonitoringTemplateWithCallback(request *GetMonitoringTemplateRequest, callback func(response *GetMonitoringTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMonitoringTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMonitoringTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMonitoringTemplateRequest is the request struct for api GetMonitoringTemplate
+type GetMonitoringTemplateRequest struct {
+	*requests.RpcRequest
+	Name string `position:"Query" name:"Name"`
+	Id   string `position:"Query" name:"Id"`
+}
+
+// GetMonitoringTemplateResponse is the response struct for api GetMonitoringTemplate
+type GetMonitoringTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId    string                          `json:"RequestId" xml:"RequestId"`
+	Success      bool                            `json:"Success" xml:"Success"`
+	ErrorCode    int                             `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                          `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resource     ResourceInGetMonitoringTemplate `json:"Resource" xml:"Resource"`
+}
+
+// CreateGetMonitoringTemplateRequest creates a request to invoke GetMonitoringTemplate API
+func CreateGetMonitoringTemplateRequest() (request *GetMonitoringTemplateRequest) {
+	request = &GetMonitoringTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "GetMonitoringTemplate", "cms", "openAPI")
+	return
+}
+
+// CreateGetMonitoringTemplateResponse creates a response to parse from GetMonitoringTemplate response
+func CreateGetMonitoringTemplateResponse() (response *GetMonitoringTemplateResponse) {
+	response = &GetMonitoringTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/cms/get_my_group_alert.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// GetMyGroupAlert invokes the cms.GetMyGroupAlert API synchronously
+// api document: https://help.aliyun.com/api/cms/getmygroupalert.html
+func (client *Client) GetMyGroupAlert(request *GetMyGroupAlertRequest) (response *GetMyGroupAlertResponse, err error) {
+	response = CreateGetMyGroupAlertResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMyGroupAlertWithChan invokes the cms.GetMyGroupAlert API asynchronously
+// api document: https://help.aliyun.com/api/cms/getmygroupalert.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMyGroupAlertWithChan(request *GetMyGroupAlertRequest) (<-chan *GetMyGroupAlertResponse, <-chan error) {
+	responseChan := make(chan *GetMyGroupAlertResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMyGroupAlert(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMyGroupAlertWithCallback invokes the cms.GetMyGroupAlert API asynchronously
+// api document: https://help.aliyun.com/api/cms/getmygroupalert.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMyGroupAlertWithCallback(request *GetMyGroupAlertRequest, callback func(response *GetMyGroupAlertResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMyGroupAlertResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMyGroupAlert(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMyGroupAlertRequest is the request struct for api GetMyGroupAlert
+type GetMyGroupAlertRequest struct {
+	*requests.RpcRequest
+	GroupId   requests.Integer `position:"Query" name:"GroupId"`
+	AlertName string           `position:"Query" name:"AlertName"`
+}
+
+// GetMyGroupAlertResponse is the response struct for api GetMyGroupAlert
+type GetMyGroupAlertResponse struct {
+	*responses.BaseResponse
+	RequestId    string     `json:"RequestId" xml:"RequestId"`
+	Success      bool       `json:"Success" xml:"Success"`
+	ErrorCode    int        `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string     `json:"ErrorMessage" xml:"ErrorMessage"`
+	GroupAlert   GroupAlert `json:"GroupAlert" xml:"GroupAlert"`
+}
+
+// CreateGetMyGroupAlertRequest creates a request to invoke GetMyGroupAlert API
+func CreateGetMyGroupAlertRequest() (request *GetMyGroupAlertRequest) {
+	request = &GetMyGroupAlertRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "GetMyGroupAlert", "cms", "openAPI")
+	return
+}
+
+// CreateGetMyGroupAlertResponse creates a response to parse from GetMyGroupAlert response
+func CreateGetMyGroupAlertResponse() (response *GetMyGroupAlertResponse) {
+	response = &GetMyGroupAlertResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 5
services/cms/get_notify_policy.go

@@ -86,11 +86,11 @@ type GetNotifyPolicyRequest struct {
 // GetNotifyPolicyResponse is the response struct for api GetNotifyPolicy
 type GetNotifyPolicyResponse struct {
 	*responses.BaseResponse
-	Code      string `json:"Code" xml:"Code"`
-	Message   string `json:"Message" xml:"Message"`
-	Success   string `json:"Success" xml:"Success"`
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Result    Result `json:"Result" xml:"Result"`
+	Code      string                  `json:"Code" xml:"Code"`
+	Message   string                  `json:"Message" xml:"Message"`
+	Success   string                  `json:"Success" xml:"Success"`
+	RequestId string                  `json:"RequestId" xml:"RequestId"`
+	Result    ResultInGetNotifyPolicy `json:"Result" xml:"Result"`
 }
 
 // CreateGetNotifyPolicyRequest creates a request to invoke GetNotifyPolicy API

+ 2 - 0
services/cms/list_event_targets_by_rule.go

@@ -89,6 +89,8 @@ type ListEventTargetsByRuleResponse struct {
 	ContactParameters ContactParametersInListEventTargetsByRule `json:"ContactParameters" xml:"ContactParameters"`
 	FcParameters      FcParametersInListEventTargetsByRule      `json:"FcParameters" xml:"FcParameters"`
 	MnsParameters     MnsParametersInListEventTargetsByRule     `json:"MnsParameters" xml:"MnsParameters"`
+	WebhookParameters WebhookParameters                         `json:"WebhookParameters" xml:"WebhookParameters"`
+	SlsParameters     SlsParameters                             `json:"SlsParameters" xml:"SlsParameters"`
 }
 
 // CreateListEventTargetsByRuleRequest creates a request to invoke ListEventTargetsByRule API

+ 116 - 0
services/cms/list_monitoring_templates.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"
+)
+
+// ListMonitoringTemplates invokes the cms.ListMonitoringTemplates API synchronously
+// api document: https://help.aliyun.com/api/cms/listmonitoringtemplates.html
+func (client *Client) ListMonitoringTemplates(request *ListMonitoringTemplatesRequest) (response *ListMonitoringTemplatesResponse, err error) {
+	response = CreateListMonitoringTemplatesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListMonitoringTemplatesWithChan invokes the cms.ListMonitoringTemplates API asynchronously
+// api document: https://help.aliyun.com/api/cms/listmonitoringtemplates.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListMonitoringTemplatesWithChan(request *ListMonitoringTemplatesRequest) (<-chan *ListMonitoringTemplatesResponse, <-chan error) {
+	responseChan := make(chan *ListMonitoringTemplatesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListMonitoringTemplates(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListMonitoringTemplatesWithCallback invokes the cms.ListMonitoringTemplates API asynchronously
+// api document: https://help.aliyun.com/api/cms/listmonitoringtemplates.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListMonitoringTemplatesWithCallback(request *ListMonitoringTemplatesRequest, callback func(response *ListMonitoringTemplatesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListMonitoringTemplatesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListMonitoringTemplates(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListMonitoringTemplatesRequest is the request struct for api ListMonitoringTemplates
+type ListMonitoringTemplatesRequest struct {
+	*requests.RpcRequest
+	Total      requests.Boolean `position:"Query" name:"Total"`
+	Name       string           `position:"Query" name:"Name"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	Id         requests.Integer `position:"Query" name:"Id"`
+	History    requests.Boolean `position:"Query" name:"History"`
+	Keyword    string           `position:"Query" name:"Keyword"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+}
+
+// ListMonitoringTemplatesResponse is the response struct for api ListMonitoringTemplates
+type ListMonitoringTemplatesResponse struct {
+	*responses.BaseResponse
+	RequestId    string                             `json:"RequestId" xml:"RequestId"`
+	Success      bool                               `json:"Success" xml:"Success"`
+	ErrorCode    int                                `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                             `json:"ErrorMessage" xml:"ErrorMessage"`
+	PageSize     int                                `json:"PageSize" xml:"PageSize"`
+	PageNumber   int                                `json:"PageNumber" xml:"PageNumber"`
+	Total        int                                `json:"Total" xml:"Total"`
+	Resources    ResourcesInListMonitoringTemplates `json:"Resources" xml:"Resources"`
+}
+
+// CreateListMonitoringTemplatesRequest creates a request to invoke ListMonitoringTemplates API
+func CreateListMonitoringTemplatesRequest() (request *ListMonitoringTemplatesRequest) {
+	request = &ListMonitoringTemplatesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "ListMonitoringTemplates", "cms", "openAPI")
+	return
+}
+
+// CreateListMonitoringTemplatesResponse creates a response to parse from ListMonitoringTemplates response
+func CreateListMonitoringTemplatesResponse() (response *ListMonitoringTemplatesResponse) {
+	response = &ListMonitoringTemplatesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/list_my_groups.go

@@ -79,8 +79,8 @@ type ListMyGroupsRequest struct {
 	SelectContactGroups requests.Boolean `position:"Query" name:"SelectContactGroups"`
 	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"`
+	Keyword             string           `position:"Query" name:"Keyword"`
 	GroupName           string           `position:"Query" name:"GroupName"`
 	PageNumber          requests.Integer `position:"Query" name:"PageNumber"`
 	BindUrls            string           `position:"Query" name:"BindUrls"`

+ 1 - 0
services/cms/modify_task.go

@@ -76,6 +76,7 @@ func (client *Client) ModifyTaskWithCallback(request *ModifyTaskRequest, callbac
 // ModifyTaskRequest is the request struct for api ModifyTask
 type ModifyTaskRequest struct {
 	*requests.RpcRequest
+	Caller    string `position:"Query" name:"caller"`
 	Address   string `position:"Query" name:"Address"`
 	IspCity   string `position:"Query" name:"IspCity"`
 	AlertIds  string `position:"Query" name:"AlertIds"`

+ 5 - 4
services/cms/put_event_rule.go

@@ -86,10 +86,11 @@ type PutEventRuleRequest struct {
 
 // PutEventRuleEventPattern is a repeated param struct in PutEventRuleRequest
 type PutEventRuleEventPattern struct {
-	Product    string    `name:"Product"`
-	NameList   *[]string `name:"NameList" type:"Repeated"`
-	StatusList *[]string `name:"StatusList" type:"Repeated"`
-	LevelList  *[]string `name:"LevelList" type:"Repeated"`
+	LevelList     *[]string `name:"LevelList" type:"Repeated"`
+	Product       string    `name:"Product"`
+	StatusList    *[]string `name:"StatusList" type:"Repeated"`
+	NameList      *[]string `name:"NameList" type:"Repeated"`
+	EventTypeList *[]string `name:"EventTypeList" type:"Repeated"`
 }
 
 // PutEventRuleResponse is the response struct for api PutEventRule

+ 15 - 5
services/cms/put_event_targets.go

@@ -78,6 +78,7 @@ type PutEventTargetsRequest struct {
 	*requests.RpcRequest
 	WebhookParameters *[]PutEventTargetsWebhookParameters `position:"Query" name:"WebhookParameters"  type:"Repeated"`
 	ContactParameters *[]PutEventTargetsContactParameters `position:"Query" name:"ContactParameters"  type:"Repeated"`
+	SlsParameters     *[]PutEventTargetsSlsParameters     `position:"Query" name:"SlsParameters"  type:"Repeated"`
 	FcParameters      *[]PutEventTargetsFcParameters      `position:"Query" name:"FcParameters"  type:"Repeated"`
 	RuleName          string                              `position:"Query" name:"RuleName"`
 	MnsParameters     *[]PutEventTargetsMnsParameters     `position:"Query" name:"MnsParameters"  type:"Repeated"`
@@ -85,25 +86,33 @@ type PutEventTargetsRequest struct {
 
 // PutEventTargetsWebhookParameters is a repeated param struct in PutEventTargetsRequest
 type PutEventTargetsWebhookParameters struct {
-	Id       string `name:"Id"`
 	Protocol string `name:"Protocol"`
-	Url      string `name:"Url"`
 	Method   string `name:"Method"`
+	Id       string `name:"Id"`
+	Url      string `name:"Url"`
 }
 
 // PutEventTargetsContactParameters is a repeated param struct in PutEventTargetsRequest
 type PutEventTargetsContactParameters struct {
+	Level            string `name:"Level"`
 	Id               string `name:"Id"`
 	ContactGroupName string `name:"ContactGroupName"`
-	Level            string `name:"Level"`
+}
+
+// PutEventTargetsSlsParameters is a repeated param struct in PutEventTargetsRequest
+type PutEventTargetsSlsParameters struct {
+	Project  string `name:"Project"`
+	Id       string `name:"Id"`
+	Region   string `name:"Region"`
+	LogStore string `name:"LogStore"`
 }
 
 // PutEventTargetsFcParameters is a repeated param struct in PutEventTargetsRequest
 type PutEventTargetsFcParameters struct {
+	FunctionName string `name:"FunctionName"`
+	ServiceName  string `name:"ServiceName"`
 	Id           string `name:"Id"`
 	Region       string `name:"Region"`
-	ServiceName  string `name:"ServiceName"`
-	FunctionName string `name:"FunctionName"`
 }
 
 // PutEventTargetsMnsParameters is a repeated param struct in PutEventTargetsRequest
@@ -128,6 +137,7 @@ type PutEventTargetsResponse struct {
 	FailedContactParameters FailedContactParameters            `json:"FailedContactParameters" xml:"FailedContactParameters"`
 	FailedMnsParameters     FailedMnsParameters                `json:"FailedMnsParameters" xml:"FailedMnsParameters"`
 	FailedFcParameters      FailedFcParameters                 `json:"FailedFcParameters" xml:"FailedFcParameters"`
+	FailedSlsParameters     FailedSlsParameters                `json:"FailedSlsParameters" xml:"FailedSlsParameters"`
 }
 
 // CreatePutEventTargetsRequest creates a request to invoke PutEventTargets API

+ 108 - 0
services/cms/query_error_distribution.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// QueryErrorDistribution invokes the cms.QueryErrorDistribution API synchronously
+// api document: https://help.aliyun.com/api/cms/queryerrordistribution.html
+func (client *Client) QueryErrorDistribution(request *QueryErrorDistributionRequest) (response *QueryErrorDistributionResponse, err error) {
+	response = CreateQueryErrorDistributionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryErrorDistributionWithChan invokes the cms.QueryErrorDistribution API asynchronously
+// api document: https://help.aliyun.com/api/cms/queryerrordistribution.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryErrorDistributionWithChan(request *QueryErrorDistributionRequest) (<-chan *QueryErrorDistributionResponse, <-chan error) {
+	responseChan := make(chan *QueryErrorDistributionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryErrorDistribution(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryErrorDistributionWithCallback invokes the cms.QueryErrorDistribution API asynchronously
+// api document: https://help.aliyun.com/api/cms/queryerrordistribution.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryErrorDistributionWithCallback(request *QueryErrorDistributionRequest, callback func(response *QueryErrorDistributionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryErrorDistributionResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryErrorDistribution(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryErrorDistributionRequest is the request struct for api QueryErrorDistribution
+type QueryErrorDistributionRequest struct {
+	*requests.RpcRequest
+	TimeRange string `position:"Query" name:"TimeRange"`
+	TaskId    string `position:"Query" name:"TaskId"`
+}
+
+// QueryErrorDistributionResponse is the response struct for api QueryErrorDistribution
+type QueryErrorDistributionResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateQueryErrorDistributionRequest creates a request to invoke QueryErrorDistribution API
+func CreateQueryErrorDistributionRequest() (request *QueryErrorDistributionRequest) {
+	request = &QueryErrorDistributionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryErrorDistribution", "cms", "openAPI")
+	return
+}
+
+// CreateQueryErrorDistributionResponse creates a response to parse from QueryErrorDistribution response
+func CreateQueryErrorDistributionResponse() (response *QueryErrorDistributionResponse) {
+	response = &QueryErrorDistributionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 1
services/cms/query_metric_last.go

@@ -79,12 +79,12 @@ type QueryMetricLastRequest struct {
 	Cursor          string           `position:"Query" name:"Cursor"`
 	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	Period          string           `position:"Query" name:"Period"`
-	Metric          string           `position:"Query" name:"Metric"`
 	Length          string           `position:"Query" name:"Length"`
 	Project         string           `position:"Query" name:"Project"`
 	EndTime         string           `position:"Query" name:"EndTime"`
 	Express         string           `position:"Query" name:"Express"`
 	StartTime       string           `position:"Query" name:"StartTime"`
+	Metric          string           `position:"Query" name:"Metric"`
 	Page            string           `position:"Query" name:"Page"`
 	Dimensions      string           `position:"Query" name:"Dimensions"`
 }
@@ -98,6 +98,7 @@ type QueryMetricLastResponse struct {
 	Cursor     string `json:"Cursor" xml:"Cursor"`
 	Datapoints string `json:"Datapoints" xml:"Datapoints"`
 	Period     string `json:"Period" xml:"Period"`
+	Success    string `json:"Success" xml:"Success"`
 }
 
 // CreateQueryMetricLastRequest creates a request to invoke QueryMetricLast API

+ 1 - 0
services/cms/query_metric_list.go

@@ -97,6 +97,7 @@ type QueryMetricListResponse struct {
 	Cursor     string `json:"Cursor" xml:"Cursor"`
 	Datapoints string `json:"Datapoints" xml:"Datapoints"`
 	Period     string `json:"Period" xml:"Period"`
+	Success    string `json:"Success" xml:"Success"`
 }
 
 // CreateQueryMetricListRequest creates a request to invoke QueryMetricList API

+ 111 - 0
services/cms/query_metric_meta.go

@@ -0,0 +1,111 @@
+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"
+)
+
+// QueryMetricMeta invokes the cms.QueryMetricMeta API synchronously
+// api document: https://help.aliyun.com/api/cms/querymetricmeta.html
+func (client *Client) QueryMetricMeta(request *QueryMetricMetaRequest) (response *QueryMetricMetaResponse, err error) {
+	response = CreateQueryMetricMetaResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryMetricMetaWithChan invokes the cms.QueryMetricMeta API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymetricmeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMetricMetaWithChan(request *QueryMetricMetaRequest) (<-chan *QueryMetricMetaResponse, <-chan error) {
+	responseChan := make(chan *QueryMetricMetaResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryMetricMeta(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryMetricMetaWithCallback invokes the cms.QueryMetricMeta API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymetricmeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMetricMetaWithCallback(request *QueryMetricMetaRequest, callback func(response *QueryMetricMetaResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryMetricMetaResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryMetricMeta(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryMetricMetaRequest is the request struct for api QueryMetricMeta
+type QueryMetricMetaRequest struct {
+	*requests.RpcRequest
+	Metric     string           `position:"Query" name:"Metric"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	Project    string           `position:"Query" name:"Project"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	Labels     string           `position:"Query" name:"Labels"`
+}
+
+// QueryMetricMetaResponse is the response struct for api QueryMetricMeta
+type QueryMetricMetaResponse struct {
+	*responses.BaseResponse
+	RequestId    string                     `json:"RequestId" xml:"RequestId"`
+	Success      bool                       `json:"Success" xml:"Success"`
+	ErrorCode    string                     `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                     `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resources    ResourcesInQueryMetricMeta `json:"Resources" xml:"Resources"`
+}
+
+// CreateQueryMetricMetaRequest creates a request to invoke QueryMetricMeta API
+func CreateQueryMetricMetaRequest() (request *QueryMetricMetaRequest) {
+	request = &QueryMetricMetaRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryMetricMeta", "cms", "openAPI")
+	return
+}
+
+// CreateQueryMetricMetaResponse creates a response to parse from QueryMetricMeta response
+func CreateQueryMetricMetaResponse() (response *QueryMetricMetaResponse) {
+	response = &QueryMetricMetaResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/cms/query_monitor_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"
+)
+
+// QueryMonitorData invokes the cms.QueryMonitorData API synchronously
+// api document: https://help.aliyun.com/api/cms/querymonitordata.html
+func (client *Client) QueryMonitorData(request *QueryMonitorDataRequest) (response *QueryMonitorDataResponse, err error) {
+	response = CreateQueryMonitorDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryMonitorDataWithChan invokes the cms.QueryMonitorData API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymonitordata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMonitorDataWithChan(request *QueryMonitorDataRequest) (<-chan *QueryMonitorDataResponse, <-chan error) {
+	responseChan := make(chan *QueryMonitorDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryMonitorData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryMonitorDataWithCallback invokes the cms.QueryMonitorData API asynchronously
+// api document: https://help.aliyun.com/api/cms/querymonitordata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryMonitorDataWithCallback(request *QueryMonitorDataRequest, callback func(response *QueryMonitorDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryMonitorDataResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryMonitorData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryMonitorDataRequest is the request struct for api QueryMonitorData
+type QueryMonitorDataRequest struct {
+	*requests.RpcRequest
+	Cursor     string           `position:"Query" name:"Cursor"`
+	Period     string           `position:"Query" name:"Period"`
+	Length     requests.Integer `position:"Query" name:"Length"`
+	EndTime    string           `position:"Query" name:"EndTime"`
+	StartTime  string           `position:"Query" name:"StartTime"`
+	Type       string           `position:"Query" name:"Type"`
+	MetricName string           `position:"Query" name:"metricName"`
+	TaskId     string           `position:"Query" name:"TaskId"`
+}
+
+// QueryMonitorDataResponse is the response struct for api QueryMonitorData
+type QueryMonitorDataResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TraceId   string `json:"TraceId" xml:"TraceId"`
+	Data      string `json:"Data" xml:"Data"`
+	Cursor    string `json:"Cursor" xml:"Cursor"`
+}
+
+// CreateQueryMonitorDataRequest creates a request to invoke QueryMonitorData API
+func CreateQueryMonitorDataRequest() (request *QueryMonitorDataRequest) {
+	request = &QueryMonitorDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryMonitorData", "cms", "openAPI")
+	return
+}
+
+// CreateQueryMonitorDataResponse creates a response to parse from QueryMonitorData response
+func CreateQueryMonitorDataResponse() (response *QueryMonitorDataResponse) {
+	response = &QueryMonitorDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/cms/query_project_meta.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// QueryProjectMeta invokes the cms.QueryProjectMeta API synchronously
+// api document: https://help.aliyun.com/api/cms/queryprojectmeta.html
+func (client *Client) QueryProjectMeta(request *QueryProjectMetaRequest) (response *QueryProjectMetaResponse, err error) {
+	response = CreateQueryProjectMetaResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryProjectMetaWithChan invokes the cms.QueryProjectMeta API asynchronously
+// api document: https://help.aliyun.com/api/cms/queryprojectmeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryProjectMetaWithChan(request *QueryProjectMetaRequest) (<-chan *QueryProjectMetaResponse, <-chan error) {
+	responseChan := make(chan *QueryProjectMetaResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryProjectMeta(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryProjectMetaWithCallback invokes the cms.QueryProjectMeta API asynchronously
+// api document: https://help.aliyun.com/api/cms/queryprojectmeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryProjectMetaWithCallback(request *QueryProjectMetaRequest, callback func(response *QueryProjectMetaResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryProjectMetaResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryProjectMeta(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryProjectMetaRequest is the request struct for api QueryProjectMeta
+type QueryProjectMetaRequest struct {
+	*requests.RpcRequest
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	Labels     string           `position:"Query" name:"Labels"`
+}
+
+// QueryProjectMetaResponse is the response struct for api QueryProjectMeta
+type QueryProjectMetaResponse struct {
+	*responses.BaseResponse
+	RequestId    string                      `json:"RequestId" xml:"RequestId"`
+	Success      bool                        `json:"Success" xml:"Success"`
+	ErrorCode    string                      `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string                      `json:"ErrorMessage" xml:"ErrorMessage"`
+	Resources    ResourcesInQueryProjectMeta `json:"Resources" xml:"Resources"`
+}
+
+// CreateQueryProjectMetaRequest creates a request to invoke QueryProjectMeta API
+func CreateQueryProjectMetaRequest() (request *QueryProjectMetaRequest) {
+	request = &QueryProjectMetaRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryProjectMeta", "cms", "openAPI")
+	return
+}
+
+// CreateQueryProjectMetaResponse creates a response to parse from QueryProjectMeta response
+func CreateQueryProjectMetaResponse() (response *QueryProjectMetaResponse) {
+	response = &QueryProjectMetaResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/cms/query_statics_availability.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// QueryStaticsAvailability invokes the cms.QueryStaticsAvailability API synchronously
+// api document: https://help.aliyun.com/api/cms/querystaticsavailability.html
+func (client *Client) QueryStaticsAvailability(request *QueryStaticsAvailabilityRequest) (response *QueryStaticsAvailabilityResponse, err error) {
+	response = CreateQueryStaticsAvailabilityResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryStaticsAvailabilityWithChan invokes the cms.QueryStaticsAvailability API asynchronously
+// api document: https://help.aliyun.com/api/cms/querystaticsavailability.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryStaticsAvailabilityWithChan(request *QueryStaticsAvailabilityRequest) (<-chan *QueryStaticsAvailabilityResponse, <-chan error) {
+	responseChan := make(chan *QueryStaticsAvailabilityResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryStaticsAvailability(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryStaticsAvailabilityWithCallback invokes the cms.QueryStaticsAvailability API asynchronously
+// api document: https://help.aliyun.com/api/cms/querystaticsavailability.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryStaticsAvailabilityWithCallback(request *QueryStaticsAvailabilityRequest, callback func(response *QueryStaticsAvailabilityResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryStaticsAvailabilityResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryStaticsAvailability(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryStaticsAvailabilityRequest is the request struct for api QueryStaticsAvailability
+type QueryStaticsAvailabilityRequest struct {
+	*requests.RpcRequest
+	TimeRange string `position:"Query" name:"TimeRange"`
+	TaskId    string `position:"Query" name:"TaskId"`
+}
+
+// QueryStaticsAvailabilityResponse is the response struct for api QueryStaticsAvailability
+type QueryStaticsAvailabilityResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateQueryStaticsAvailabilityRequest creates a request to invoke QueryStaticsAvailability API
+func CreateQueryStaticsAvailabilityRequest() (request *QueryStaticsAvailabilityRequest) {
+	request = &QueryStaticsAvailabilityRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryStaticsAvailability", "cms", "openAPI")
+	return
+}
+
+// CreateQueryStaticsAvailabilityResponse creates a response to parse from QueryStaticsAvailability response
+func CreateQueryStaticsAvailabilityResponse() (response *QueryStaticsAvailabilityResponse) {
+	response = &QueryStaticsAvailabilityResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/cms/query_statics_error_rate.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// QueryStaticsErrorRate invokes the cms.QueryStaticsErrorRate API synchronously
+// api document: https://help.aliyun.com/api/cms/querystaticserrorrate.html
+func (client *Client) QueryStaticsErrorRate(request *QueryStaticsErrorRateRequest) (response *QueryStaticsErrorRateResponse, err error) {
+	response = CreateQueryStaticsErrorRateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryStaticsErrorRateWithChan invokes the cms.QueryStaticsErrorRate API asynchronously
+// api document: https://help.aliyun.com/api/cms/querystaticserrorrate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryStaticsErrorRateWithChan(request *QueryStaticsErrorRateRequest) (<-chan *QueryStaticsErrorRateResponse, <-chan error) {
+	responseChan := make(chan *QueryStaticsErrorRateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryStaticsErrorRate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryStaticsErrorRateWithCallback invokes the cms.QueryStaticsErrorRate API asynchronously
+// api document: https://help.aliyun.com/api/cms/querystaticserrorrate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryStaticsErrorRateWithCallback(request *QueryStaticsErrorRateRequest, callback func(response *QueryStaticsErrorRateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryStaticsErrorRateResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryStaticsErrorRate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryStaticsErrorRateRequest is the request struct for api QueryStaticsErrorRate
+type QueryStaticsErrorRateRequest struct {
+	*requests.RpcRequest
+	TimeRange string `position:"Query" name:"TimeRange"`
+	TaskId    string `position:"Query" name:"TaskId"`
+}
+
+// QueryStaticsErrorRateResponse is the response struct for api QueryStaticsErrorRate
+type QueryStaticsErrorRateResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateQueryStaticsErrorRateRequest creates a request to invoke QueryStaticsErrorRate API
+func CreateQueryStaticsErrorRateRequest() (request *QueryStaticsErrorRateRequest) {
+	request = &QueryStaticsErrorRateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryStaticsErrorRate", "cms", "openAPI")
+	return
+}
+
+// CreateQueryStaticsErrorRateResponse creates a response to parse from QueryStaticsErrorRate response
+func CreateQueryStaticsErrorRateResponse() (response *QueryStaticsErrorRateResponse) {
+	response = &QueryStaticsErrorRateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/cms/query_statics_response_time.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// QueryStaticsResponseTime invokes the cms.QueryStaticsResponseTime API synchronously
+// api document: https://help.aliyun.com/api/cms/querystaticsresponsetime.html
+func (client *Client) QueryStaticsResponseTime(request *QueryStaticsResponseTimeRequest) (response *QueryStaticsResponseTimeResponse, err error) {
+	response = CreateQueryStaticsResponseTimeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryStaticsResponseTimeWithChan invokes the cms.QueryStaticsResponseTime API asynchronously
+// api document: https://help.aliyun.com/api/cms/querystaticsresponsetime.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryStaticsResponseTimeWithChan(request *QueryStaticsResponseTimeRequest) (<-chan *QueryStaticsResponseTimeResponse, <-chan error) {
+	responseChan := make(chan *QueryStaticsResponseTimeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryStaticsResponseTime(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryStaticsResponseTimeWithCallback invokes the cms.QueryStaticsResponseTime API asynchronously
+// api document: https://help.aliyun.com/api/cms/querystaticsresponsetime.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryStaticsResponseTimeWithCallback(request *QueryStaticsResponseTimeRequest, callback func(response *QueryStaticsResponseTimeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryStaticsResponseTimeResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryStaticsResponseTime(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryStaticsResponseTimeRequest is the request struct for api QueryStaticsResponseTime
+type QueryStaticsResponseTimeRequest struct {
+	*requests.RpcRequest
+	TimeRange string `position:"Query" name:"TimeRange"`
+	TaskId    string `position:"Query" name:"TaskId"`
+}
+
+// QueryStaticsResponseTimeResponse is the response struct for api QueryStaticsResponseTime
+type QueryStaticsResponseTimeResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateQueryStaticsResponseTimeRequest creates a request to invoke QueryStaticsResponseTime API
+func CreateQueryStaticsResponseTimeRequest() (request *QueryStaticsResponseTimeRequest) {
+	request = &QueryStaticsResponseTimeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryStaticsResponseTime", "cms", "openAPI")
+	return
+}
+
+// CreateQueryStaticsResponseTimeResponse creates a response to parse from QueryStaticsResponseTime response
+func CreateQueryStaticsResponseTimeResponse() (response *QueryStaticsResponseTimeResponse) {
+	response = &QueryStaticsResponseTimeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/query_task_config.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"
+)
+
+// QueryTaskConfig invokes the cms.QueryTaskConfig API synchronously
+// api document: https://help.aliyun.com/api/cms/querytaskconfig.html
+func (client *Client) QueryTaskConfig(request *QueryTaskConfigRequest) (response *QueryTaskConfigResponse, err error) {
+	response = CreateQueryTaskConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryTaskConfigWithChan invokes the cms.QueryTaskConfig API asynchronously
+// api document: https://help.aliyun.com/api/cms/querytaskconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryTaskConfigWithChan(request *QueryTaskConfigRequest) (<-chan *QueryTaskConfigResponse, <-chan error) {
+	responseChan := make(chan *QueryTaskConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryTaskConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryTaskConfigWithCallback invokes the cms.QueryTaskConfig API asynchronously
+// api document: https://help.aliyun.com/api/cms/querytaskconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryTaskConfigWithCallback(request *QueryTaskConfigRequest, callback func(response *QueryTaskConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryTaskConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryTaskConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryTaskConfigRequest is the request struct for api QueryTaskConfig
+type QueryTaskConfigRequest struct {
+	*requests.RpcRequest
+}
+
+// QueryTaskConfigResponse is the response struct for api QueryTaskConfig
+type QueryTaskConfigResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Data      string `json:"Data" xml:"Data"`
+}
+
+// CreateQueryTaskConfigRequest creates a request to invoke QueryTaskConfig API
+func CreateQueryTaskConfigRequest() (request *QueryTaskConfigRequest) {
+	request = &QueryTaskConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryTaskConfig", "cms", "openAPI")
+	return
+}
+
+// CreateQueryTaskConfigResponse creates a response to parse from QueryTaskConfig response
+func CreateQueryTaskConfigResponse() (response *QueryTaskConfigResponse) {
+	response = &QueryTaskConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/cms/query_task_monitor_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"
+)
+
+// QueryTaskMonitorData invokes the cms.QueryTaskMonitorData API synchronously
+// api document: https://help.aliyun.com/api/cms/querytaskmonitordata.html
+func (client *Client) QueryTaskMonitorData(request *QueryTaskMonitorDataRequest) (response *QueryTaskMonitorDataResponse, err error) {
+	response = CreateQueryTaskMonitorDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// QueryTaskMonitorDataWithChan invokes the cms.QueryTaskMonitorData API asynchronously
+// api document: https://help.aliyun.com/api/cms/querytaskmonitordata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryTaskMonitorDataWithChan(request *QueryTaskMonitorDataRequest) (<-chan *QueryTaskMonitorDataResponse, <-chan error) {
+	responseChan := make(chan *QueryTaskMonitorDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.QueryTaskMonitorData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// QueryTaskMonitorDataWithCallback invokes the cms.QueryTaskMonitorData API asynchronously
+// api document: https://help.aliyun.com/api/cms/querytaskmonitordata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) QueryTaskMonitorDataWithCallback(request *QueryTaskMonitorDataRequest, callback func(response *QueryTaskMonitorDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *QueryTaskMonitorDataResponse
+		var err error
+		defer close(result)
+		response, err = client.QueryTaskMonitorData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// QueryTaskMonitorDataRequest is the request struct for api QueryTaskMonitorData
+type QueryTaskMonitorDataRequest struct {
+	*requests.RpcRequest
+	Cursor     string           `position:"Query" name:"Cursor"`
+	Period     string           `position:"Query" name:"Period"`
+	Length     requests.Integer `position:"Query" name:"Length"`
+	EndTime    string           `position:"Query" name:"EndTime"`
+	StartTime  string           `position:"Query" name:"StartTime"`
+	Type       string           `position:"Query" name:"Type"`
+	MetricName string           `position:"Query" name:"metricName"`
+	TaskId     string           `position:"Query" name:"TaskId"`
+}
+
+// QueryTaskMonitorDataResponse is the response struct for api QueryTaskMonitorData
+type QueryTaskMonitorDataResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   string `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TraceId   string `json:"TraceId" xml:"TraceId"`
+	Data      string `json:"Data" xml:"Data"`
+	Cursor    string `json:"Cursor" xml:"Cursor"`
+}
+
+// CreateQueryTaskMonitorDataRequest creates a request to invoke QueryTaskMonitorData API
+func CreateQueryTaskMonitorDataRequest() (request *QueryTaskMonitorDataRequest) {
+	request = &QueryTaskMonitorDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "QueryTaskMonitorData", "cms", "openAPI")
+	return
+}
+
+// CreateQueryTaskMonitorDataResponse creates a response to parse from QueryTaskMonitorData response
+func CreateQueryTaskMonitorDataResponse() (response *QueryTaskMonitorDataResponse) {
+	response = &QueryTaskMonitorDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 25 - 24
services/cms/struct_alarm.go

@@ -17,28 +17,29 @@ package cms
 
 // Alarm is a nested struct in cms response
 type Alarm struct {
-	Name                string `json:"Name" xml:"Name"`
-	Resources           string `json:"Resources" xml:"Resources"`
-	RuleName            string `json:"RuleName" xml:"RuleName"`
-	Level               string `json:"Level" xml:"Level"`
-	EffectiveInterval   string `json:"EffectiveInterval" xml:"EffectiveInterval"`
-	ContactGroups       string `json:"ContactGroups" xml:"ContactGroups"`
-	GroupName           string `json:"GroupName" xml:"GroupName"`
-	Dimensions          string `json:"Dimensions" xml:"Dimensions"`
-	SilenceTime         string `json:"SilenceTime" xml:"SilenceTime"`
-	DisplayName         string `json:"DisplayName" xml:"DisplayName"`
-	Threshold           string `json:"Threshold" xml:"Threshold"`
-	Period              string `json:"Period" xml:"Period"`
-	Uuid                string `json:"Uuid" xml:"Uuid"`
-	Subject             string `json:"Subject" xml:"Subject"`
-	ComparisonOperator  string `json:"ComparisonOperator" xml:"ComparisonOperator"`
-	State               string `json:"State" xml:"State"`
-	Namespace           string `json:"Namespace" xml:"Namespace"`
-	Enable              bool   `json:"Enable" xml:"Enable"`
-	MetricName          string `json:"MetricName" xml:"MetricName"`
-	GroupId             string `json:"GroupId" xml:"GroupId"`
-	Statistics          string `json:"Statistics" xml:"Statistics"`
-	EvaluationCount     string `json:"EvaluationCount" xml:"EvaluationCount"`
-	Webhook             string `json:"Webhook" xml:"Webhook"`
-	NoEffectiveInterval string `json:"NoEffectiveInterval" xml:"NoEffectiveInterval"`
+	Name                string      `json:"Name" xml:"Name"`
+	Resources           string      `json:"Resources" xml:"Resources"`
+	RuleName            string      `json:"RuleName" xml:"RuleName"`
+	EffectiveInterval   string      `json:"EffectiveInterval" xml:"EffectiveInterval"`
+	ContactGroups       string      `json:"ContactGroups" xml:"ContactGroups"`
+	GroupName           string      `json:"GroupName" xml:"GroupName"`
+	Dimensions          string      `json:"Dimensions" xml:"Dimensions"`
+	Uuid                string      `json:"Uuid" xml:"Uuid"`
+	Subject             string      `json:"Subject" xml:"Subject"`
+	ComparisonOperator  string      `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	GroupId             string      `json:"GroupId" xml:"GroupId"`
+	EvaluationCount     string      `json:"EvaluationCount" xml:"EvaluationCount"`
+	Level               string      `json:"Level" xml:"Level"`
+	SilenceTime         string      `json:"SilenceTime" xml:"SilenceTime"`
+	DisplayName         string      `json:"DisplayName" xml:"DisplayName"`
+	Threshold           string      `json:"Threshold" xml:"Threshold"`
+	Period              string      `json:"Period" xml:"Period"`
+	State               string      `json:"State" xml:"State"`
+	Namespace           string      `json:"Namespace" xml:"Namespace"`
+	Enable              bool        `json:"Enable" xml:"Enable"`
+	MetricName          string      `json:"MetricName" xml:"MetricName"`
+	Statistics          string      `json:"Statistics" xml:"Statistics"`
+	Webhook             string      `json:"Webhook" xml:"Webhook"`
+	NoEffectiveInterval string      `json:"NoEffectiveInterval" xml:"NoEffectiveInterval"`
+	Escalations         Escalations `json:"Escalations" xml:"Escalations"`
 }

+ 1 - 1
services/cms/struct_alarm_history_in_describe_alarm_history.go

@@ -30,7 +30,7 @@ type AlarmHistoryInDescribeAlarmHistory struct {
 	LastTime        int                                 `json:"LastTime" xml:"LastTime"`
 	Level           string                              `json:"Level" xml:"Level"`
 	PreLevel        string                              `json:"PreLevel" xml:"PreLevel"`
-	RuleName        string                              `json:"ruleName" xml:"ruleName"`
+	RuleName        string                              `json:"RuleName" xml:"RuleName"`
 	State           string                              `json:"State" xml:"State"`
 	Status          int                                 `json:"Status" xml:"Status"`
 	UserId          string                              `json:"UserId" xml:"UserId"`

+ 6 - 4
services/cms/struct_alert_result.go

@@ -17,10 +17,12 @@ package cms
 
 // AlertResult is a nested struct in cms response
 type AlertResult struct {
-	Name            string `json:"Name" xml:"Name"`
-	DisplayName     string `json:"DisplayName" xml:"DisplayName"`
 	MetricNamespace string `json:"MetricNamespace" xml:"MetricNamespace"`
-	MetricName      string `json:"MetricName" xml:"MetricName"`
 	Message         string `json:"Message" xml:"Message"`
-	Success         string `json:"Success" xml:"Success"`
+	Success         bool   `json:"Success" xml:"Success"`
+	GroupId         int    `json:"GroupId" xml:"GroupId"`
+	MetricName      string `json:"MetricName" xml:"MetricName"`
+	Code            int    `json:"Code" xml:"Code"`
+	DisplayName     string `json:"DisplayName" xml:"DisplayName"`
+	AlertName       string `json:"AlertName" xml:"AlertName"`
 }

+ 26 - 0
services/cms/struct_alert_result_in_apply_template.go

@@ -0,0 +1,26 @@
+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.
+
+// AlertResultInApplyTemplate is a nested struct in cms response
+type AlertResultInApplyTemplate struct {
+	Name            string `json:"Name" xml:"Name"`
+	DisplayName     string `json:"DisplayName" xml:"DisplayName"`
+	MetricNamespace string `json:"MetricNamespace" xml:"MetricNamespace"`
+	MetricName      string `json:"MetricName" xml:"MetricName"`
+	Message         string `json:"Message" xml:"Message"`
+	Success         string `json:"Success" xml:"Success"`
+}

+ 21 - 0
services/cms/struct_alert_results.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.
+
+// AlertResults is a nested struct in cms response
+type AlertResults struct {
+	Result []ResultInApplyMonitoringTemplate `json:"Result" xml:"Result"`
+}

+ 21 - 0
services/cms/struct_apply_histories.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.
+
+// ApplyHistories is a nested struct in cms response
+type ApplyHistories struct {
+	ApplyHistory []ApplyHistory `json:"ApplyHistory" xml:"ApplyHistory"`
+}

+ 23 - 0
services/cms/struct_apply_history.go

@@ -0,0 +1,23 @@
+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.
+
+// ApplyHistory is a nested struct in cms response
+type ApplyHistory struct {
+	GroupId   int    `json:"GroupId" xml:"GroupId"`
+	GroupName string `json:"GroupName" xml:"GroupName"`
+	ApplyTime int    `json:"ApplyTime" xml:"ApplyTime"`
+}

+ 1 - 1
services/cms/struct_create_alert_results.go

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

+ 24 - 0
services/cms/struct_critical.go

@@ -0,0 +1,24 @@
+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.
+
+// Critical is a nested struct in cms response
+type Critical struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Times              int    `json:"Times" xml:"Times"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+}

+ 24 - 0
services/cms/struct_critical_in_describe_alarms.go

@@ -0,0 +1,24 @@
+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.
+
+// CriticalInDescribeAlarms is a nested struct in cms response
+type CriticalInDescribeAlarms struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	Times              string `json:"Times" xml:"Times"`
+}

+ 24 - 0
services/cms/struct_critical_in_describe_alarms_for_resources.go

@@ -0,0 +1,24 @@
+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.
+
+// CriticalInDescribeAlarmsForResources is a nested struct in cms response
+type CriticalInDescribeAlarmsForResources struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	Times              string `json:"Times" xml:"Times"`
+}

+ 23 - 0
services/cms/struct_escalations.go

@@ -0,0 +1,23 @@
+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.
+
+// Escalations is a nested struct in cms response
+type Escalations struct {
+	Warn     WarnInDescribeAlarmsForResources     `json:"Warn" xml:"Warn"`
+	Info     InfoInDescribeAlarmsForResources     `json:"Info" xml:"Info"`
+	Critical CriticalInDescribeAlarmsForResources `json:"Critical" xml:"Critical"`
+}

+ 5 - 4
services/cms/struct_event_pattern_item.go

@@ -17,8 +17,9 @@ package cms
 
 // EventPatternItem is a nested struct in cms response
 type EventPatternItem struct {
-	Product    string                     `json:"Product" xml:"Product"`
-	NameList   NameListInListEventRules   `json:"NameList" xml:"NameList"`
-	StatusList StatusListInListEventRules `json:"StatusList" xml:"StatusList"`
-	LevelList  LevelListInListEventRules  `json:"LevelList" xml:"LevelList"`
+	Product       string                     `json:"Product" xml:"Product"`
+	NameList      NameListInListEventRules   `json:"NameList" xml:"NameList"`
+	StatusList    StatusListInListEventRules `json:"StatusList" xml:"StatusList"`
+	LevelList     LevelListInListEventRules  `json:"LevelList" xml:"LevelList"`
+	EventTypeList EventTypeList              `json:"EventTypeList" xml:"EventTypeList"`
 }

+ 21 - 0
services/cms/struct_event_results.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.
+
+// EventResults is a nested struct in cms response
+type EventResults struct {
+	Result []Result `json:"Result" xml:"Result"`
+}

+ 21 - 0
services/cms/struct_event_type_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.
+
+// EventTypeList is a nested struct in cms response
+type EventTypeList struct {
+	EventTypeList []string `json:"EventTypeList" xml:"EventTypeList"`
+}

+ 24 - 0
services/cms/struct_failed_sls_parameter.go

@@ -0,0 +1,24 @@
+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.
+
+// FailedSlsParameter is a nested struct in cms response
+type FailedSlsParameter struct {
+	Id       string `json:"Id" xml:"Id"`
+	Region   string `json:"Region" xml:"Region"`
+	Project  string `json:"Project" xml:"Project"`
+	LogStore string `json:"LogStore" xml:"LogStore"`
+}

+ 21 - 0
services/cms/struct_failed_sls_parameters.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.
+
+// FailedSlsParameters is a nested struct in cms response
+type FailedSlsParameters struct {
+	FailedSlsParameter []FailedSlsParameter `json:"FailedSlsParameter" xml:"FailedSlsParameter"`
+}

+ 37 - 0
services/cms/struct_group_alert.go

@@ -0,0 +1,37 @@
+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.
+
+// GroupAlert is a nested struct in cms response
+type GroupAlert struct {
+	GroupId         string      `json:"GroupId" xml:"GroupId"`
+	AlertName       string      `json:"AlertName" xml:"AlertName"`
+	DisplayName     string      `json:"DisplayName" xml:"DisplayName"`
+	Subject         string      `json:"Subject" xml:"Subject"`
+	Webhook         string      `json:"Webhook" xml:"Webhook"`
+	Category        string      `json:"Category" xml:"Category"`
+	Namespace       string      `json:"Namespace" xml:"Namespace"`
+	MetricName      string      `json:"MetricName" xml:"MetricName"`
+	Period          int         `json:"Period" xml:"Period"`
+	State           string      `json:"State" xml:"State"`
+	Description     string      `json:"Description" xml:"Description"`
+	Enable          bool        `json:"Enable" xml:"Enable"`
+	SilenceTime     int         `json:"SilenceTime" xml:"SilenceTime"`
+	EnableEndTime   string      `json:"EnableEndTime" xml:"EnableEndTime"`
+	EnableStartTime string      `json:"EnableStartTime" xml:"EnableStartTime"`
+	Selector        string      `json:"Selector" xml:"Selector"`
+	Escalations     Escalations `json:"Escalations" xml:"Escalations"`
+}

+ 24 - 0
services/cms/struct_info.go

@@ -0,0 +1,24 @@
+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.
+
+// Info is a nested struct in cms response
+type Info struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Times              int    `json:"Times" xml:"Times"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+}

+ 24 - 0
services/cms/struct_info_in_describe_alarms.go

@@ -0,0 +1,24 @@
+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.
+
+// InfoInDescribeAlarms is a nested struct in cms response
+type InfoInDescribeAlarms struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	Times              string `json:"Times" xml:"Times"`
+}

+ 24 - 0
services/cms/struct_info_in_describe_alarms_for_resources.go

@@ -0,0 +1,24 @@
+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.
+
+// InfoInDescribeAlarmsForResources is a nested struct in cms response
+type InfoInDescribeAlarmsForResources struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	Times              string `json:"Times" xml:"Times"`
+}

+ 38 - 22
services/cms/struct_resource.go

@@ -17,26 +17,42 @@ package cms
 
 // Resource is a nested struct in cms response
 type Resource struct {
-	Category           string                      `json:"Category" xml:"Category"`
-	Desc               string                      `json:"Desc" xml:"Desc"`
-	BindUrl            string                      `json:"BindUrl" xml:"BindUrl"`
-	InstanceName       string                      `json:"InstanceName" xml:"InstanceName"`
-	Dimension          string                      `json:"Dimension" xml:"Dimension"`
-	GroupName          string                      `json:"GroupName" xml:"GroupName"`
-	Id                 int                         `json:"Id" xml:"Id"`
-	GmtCreate          int                         `json:"GmtCreate" xml:"GmtCreate"`
-	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"`
-	GmtModified        int                         `json:"GmtModified" xml:"GmtModified"`
-	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"`
-	CreateAlertResults CreateAlertResults          `json:"CreateAlertResults" xml:"CreateAlertResults"`
-	Tags               Tags                        `json:"Tags" xml:"Tags"`
-	ContactGroups      ContactGroupsInListMyGroups `json:"ContactGroups" xml:"ContactGroups"`
+	Name                   string                            `json:"Name" xml:"Name"`
+	Category               string                            `json:"Category" xml:"Category"`
+	Unit                   string                            `json:"Unit" xml:"Unit"`
+	Desc                   string                            `json:"Desc" xml:"Desc"`
+	Metric                 string                            `json:"Metric" xml:"Metric"`
+	BindUrl                string                            `json:"BindUrl" xml:"BindUrl"`
+	Dimensions             string                            `json:"Dimensions" xml:"Dimensions"`
+	GroupName              string                            `json:"GroupName" xml:"GroupName"`
+	BindUrls               string                            `json:"BindUrls" xml:"BindUrls"`
+	ServiceId              string                            `json:"ServiceId" xml:"ServiceId"`
+	RegionId               string                            `json:"RegionId" xml:"RegionId"`
+	AlertTemplatesJson     string                            `json:"AlertTemplatesJson" xml:"AlertTemplatesJson"`
+	Project                string                            `json:"Project" xml:"Project"`
+	InstanceId             string                            `json:"InstanceId" xml:"InstanceId"`
+	AliUid                 int                               `json:"AliUid" xml:"AliUid"`
+	EventRuleTemplatesJson string                            `json:"EventRuleTemplatesJson" xml:"EventRuleTemplatesJson"`
+	NetworkType            string                            `json:"NetworkType" xml:"NetworkType"`
+	Description            string                            `json:"Description" xml:"Description"`
+	Periods                string                            `json:"Periods" xml:"Periods"`
+	Type                   string                            `json:"Type" xml:"Type"`
+	InstanceName           string                            `json:"InstanceName" xml:"InstanceName"`
+	Dimension              string                            `json:"Dimension" xml:"Dimension"`
+	Id                     int                               `json:"Id" xml:"Id"`
+	GmtCreate              int                               `json:"GmtCreate" xml:"GmtCreate"`
+	Namespace              string                            `json:"Namespace" xml:"Namespace"`
+	GroupId                int                               `json:"GroupId" xml:"GroupId"`
+	GmtModified            int                               `json:"GmtModified" xml:"GmtModified"`
+	Labels                 string                            `json:"Labels" xml:"Labels"`
+	Statistics             string                            `json:"Statistics" xml:"Statistics"`
+	RestVersion            int                               `json:"RestVersion" xml:"RestVersion"`
+	Vpc                    Vpc                               `json:"Vpc" xml:"Vpc"`
+	Region                 Region                            `json:"Region" xml:"Region"`
+	CreateAlertResults     CreateAlertResults                `json:"CreateAlertResults" xml:"CreateAlertResults"`
+	Tags                   Tags                              `json:"Tags" xml:"Tags"`
+	ContactGroups          ContactGroupsInListMyGroups       `json:"ContactGroups" xml:"ContactGroups"`
+	EventResults           []Result                          `json:"EventResults" xml:"EventResults"`
+	AlertResults           []ResultInApplyMonitoringTemplate `json:"AlertResults" xml:"AlertResults"`
+	ApplyHistories         ApplyHistories                    `json:"ApplyHistories" xml:"ApplyHistories"`
 }

+ 27 - 0
services/cms/struct_resource_in_delete_monitoring_template.go

@@ -0,0 +1,27 @@
+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.
+
+// ResourceInDeleteMonitoringTemplate is a nested struct in cms response
+type ResourceInDeleteMonitoringTemplate struct {
+	Name                   string `json:"Name" xml:"Name"`
+	Id                     string `json:"Id" xml:"Id"`
+	RestVersion            string `json:"RestVersion" xml:"RestVersion"`
+	Namespace              string `json:"Namespace" xml:"Namespace"`
+	Description            string `json:"Description" xml:"Description"`
+	AlertTemplatesJson     string `json:"AlertTemplatesJson" xml:"AlertTemplatesJson"`
+	EventRuleTemplatesJson string `json:"EventRuleTemplatesJson" xml:"EventRuleTemplatesJson"`
+}

+ 27 - 0
services/cms/struct_resource_in_get_monitoring_template.go

@@ -0,0 +1,27 @@
+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.
+
+// ResourceInGetMonitoringTemplate is a nested struct in cms response
+type ResourceInGetMonitoringTemplate struct {
+	Name                   string `json:"Name" xml:"Name"`
+	Id                     string `json:"Id" xml:"Id"`
+	RestVersion            string `json:"RestVersion" xml:"RestVersion"`
+	Namespace              string `json:"Namespace" xml:"Namespace"`
+	Description            string `json:"Description" xml:"Description"`
+	AlertTemplatesJson     string `json:"AlertTemplatesJson" xml:"AlertTemplatesJson"`
+	EventRuleTemplatesJson string `json:"EventRuleTemplatesJson" xml:"EventRuleTemplatesJson"`
+}

+ 21 - 0
services/cms/struct_resources_in_create_my_group_alert_batch.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.
+
+// ResourcesInCreateMyGroupAlertBatch is a nested struct in cms response
+type ResourcesInCreateMyGroupAlertBatch struct {
+	AlertResult []AlertResult `json:"AlertResult" xml:"AlertResult"`
+}

+ 21 - 0
services/cms/struct_resources_in_list_monitoring_templates.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.
+
+// ResourcesInListMonitoringTemplates is a nested struct in cms response
+type ResourcesInListMonitoringTemplates struct {
+	Resource []Resource `json:"Resource" xml:"Resource"`
+}

+ 21 - 0
services/cms/struct_resources_in_query_metric_meta.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.
+
+// ResourcesInQueryMetricMeta is a nested struct in cms response
+type ResourcesInQueryMetricMeta struct {
+	Resource []Resource `json:"Resource" xml:"Resource"`
+}

+ 21 - 0
services/cms/struct_resources_in_query_project_meta.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.
+
+// ResourcesInQueryProjectMeta is a nested struct in cms response
+type ResourcesInQueryProjectMeta struct {
+	Resource []Resource `json:"Resource" xml:"Resource"`
+}

+ 6 - 12
services/cms/struct_result.go

@@ -17,16 +17,10 @@ package cms
 
 // Result is a nested struct in cms response
 type Result struct {
-	Name         string       `json:"Name" xml:"Name"`
-	StartTime    int          `json:"StartTime" xml:"StartTime"`
-	State        string       `json:"State" xml:"State"`
-	EventType    string       `json:"EventType" xml:"EventType"`
-	Dimensions   string       `json:"Dimensions" xml:"Dimensions"`
-	GroupId      string       `json:"GroupId" xml:"GroupId"`
-	Id           string       `json:"Id" xml:"Id"`
-	Description  string       `json:"Description" xml:"Description"`
-	EndTime      int          `json:"EndTime" xml:"EndTime"`
-	AlertName    string       `json:"AlertName" xml:"AlertName"`
-	Type         string       `json:"Type" xml:"Type"`
-	EventPattern EventPattern `json:"EventPattern" xml:"EventPattern"`
+	Name        string `json:"Name" xml:"Name"`
+	Message     string `json:"Message" xml:"Message"`
+	Success     bool   `json:"Success" xml:"Success"`
+	GroupId     int    `json:"GroupId" xml:"GroupId"`
+	Code        int    `json:"Code" xml:"Code"`
+	DisplayName string `json:"DisplayName" xml:"DisplayName"`
 }

+ 26 - 0
services/cms/struct_result_in_apply_monitoring_template.go

@@ -0,0 +1,26 @@
+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.
+
+// ResultInApplyMonitoringTemplate is a nested struct in cms response
+type ResultInApplyMonitoringTemplate struct {
+	GroupId     int    `json:"GroupId" xml:"GroupId"`
+	Name        string `json:"Name" xml:"Name"`
+	Message     string `json:"Message" xml:"Message"`
+	DisplayName string `json:"DisplayName" xml:"DisplayName"`
+	Code        string `json:"Code" xml:"Code"`
+	Success     bool   `json:"Success" xml:"Success"`
+}

+ 26 - 0
services/cms/struct_result_in_describe_event_rule.go

@@ -0,0 +1,26 @@
+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.
+
+// ResultInDescribeEventRule is a nested struct in cms response
+type ResultInDescribeEventRule struct {
+	Description  string       `json:"Description" xml:"Description"`
+	Name         string       `json:"Name" xml:"Name"`
+	EventType    string       `json:"EventType" xml:"EventType"`
+	GroupId      string       `json:"GroupId" xml:"GroupId"`
+	State        string       `json:"State" xml:"State"`
+	EventPattern EventPattern `json:"EventPattern" xml:"EventPattern"`
+}

+ 27 - 0
services/cms/struct_result_in_get_notify_policy.go

@@ -0,0 +1,27 @@
+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.
+
+// ResultInGetNotifyPolicy is a nested struct in cms response
+type ResultInGetNotifyPolicy struct {
+	AlertName  string `json:"AlertName" xml:"AlertName"`
+	Dimensions string `json:"Dimensions" xml:"Dimensions"`
+	Type       string `json:"Type" xml:"Type"`
+	Id         string `json:"Id" xml:"Id"`
+	StartTime  int    `json:"StartTime" xml:"StartTime"`
+	EndTime    int    `json:"EndTime" xml:"EndTime"`
+	GroupId    string `json:"GroupId" xml:"GroupId"`
+}

+ 24 - 0
services/cms/struct_sls_parameter.go

@@ -0,0 +1,24 @@
+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.
+
+// SlsParameter is a nested struct in cms response
+type SlsParameter struct {
+	Id       string `json:"Id" xml:"Id"`
+	Region   string `json:"Region" xml:"Region"`
+	Project  string `json:"Project" xml:"Project"`
+	LogStore string `json:"LogStore" xml:"LogStore"`
+}

+ 21 - 0
services/cms/struct_sls_parameters.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.
+
+// SlsParameters is a nested struct in cms response
+type SlsParameters struct {
+	SlsParameter []SlsParameter `json:"SlsParameter" xml:"SlsParameter"`
+}

+ 24 - 0
services/cms/struct_warn.go

@@ -0,0 +1,24 @@
+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.
+
+// Warn is a nested struct in cms response
+type Warn struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Times              int    `json:"Times" xml:"Times"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+}

+ 24 - 0
services/cms/struct_warn_in_describe_alarms.go

@@ -0,0 +1,24 @@
+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.
+
+// WarnInDescribeAlarms is a nested struct in cms response
+type WarnInDescribeAlarms struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	Times              string `json:"Times" xml:"Times"`
+}

+ 24 - 0
services/cms/struct_warn_in_describe_alarms_for_resources.go

@@ -0,0 +1,24 @@
+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.
+
+// WarnInDescribeAlarmsForResources is a nested struct in cms response
+type WarnInDescribeAlarmsForResources struct {
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	Times              string `json:"Times" xml:"Times"`
+}

+ 24 - 0
services/cms/struct_webhook_parameter.go

@@ -0,0 +1,24 @@
+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.
+
+// WebhookParameter is a nested struct in cms response
+type WebhookParameter struct {
+	Id       string `json:"Id" xml:"Id"`
+	Protocol string `json:"Protocol" xml:"Protocol"`
+	Method   string `json:"Method" xml:"Method"`
+	Url      string `json:"Url" xml:"Url"`
+}

+ 21 - 0
services/cms/struct_webhook_parameters.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.
+
+// WebhookParameters is a nested struct in cms response
+type WebhookParameters struct {
+	WebhookParameter []WebhookParameter `json:"WebhookParameter" xml:"WebhookParameter"`
+}

+ 111 - 0
services/cms/update_monitoring_template.go

@@ -0,0 +1,111 @@
+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"
+)
+
+// UpdateMonitoringTemplate invokes the cms.UpdateMonitoringTemplate API synchronously
+// api document: https://help.aliyun.com/api/cms/updatemonitoringtemplate.html
+func (client *Client) UpdateMonitoringTemplate(request *UpdateMonitoringTemplateRequest) (response *UpdateMonitoringTemplateResponse, err error) {
+	response = CreateUpdateMonitoringTemplateResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateMonitoringTemplateWithChan invokes the cms.UpdateMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/updatemonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateMonitoringTemplateWithChan(request *UpdateMonitoringTemplateRequest) (<-chan *UpdateMonitoringTemplateResponse, <-chan error) {
+	responseChan := make(chan *UpdateMonitoringTemplateResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateMonitoringTemplate(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateMonitoringTemplateWithCallback invokes the cms.UpdateMonitoringTemplate API asynchronously
+// api document: https://help.aliyun.com/api/cms/updatemonitoringtemplate.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateMonitoringTemplateWithCallback(request *UpdateMonitoringTemplateRequest, callback func(response *UpdateMonitoringTemplateResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateMonitoringTemplateResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateMonitoringTemplate(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateMonitoringTemplateRequest is the request struct for api UpdateMonitoringTemplate
+type UpdateMonitoringTemplateRequest struct {
+	*requests.RpcRequest
+	EventRuleTemplatesJson string           `position:"Query" name:"EventRuleTemplatesJson"`
+	Name                   string           `position:"Query" name:"Name"`
+	RestVersion            requests.Integer `position:"Query" name:"RestVersion"`
+	Description            string           `position:"Query" name:"Description"`
+	Id                     requests.Integer `position:"Query" name:"Id"`
+	AlertTemplatesJson     string           `position:"Query" name:"AlertTemplatesJson"`
+}
+
+// UpdateMonitoringTemplateResponse is the response struct for api UpdateMonitoringTemplate
+type UpdateMonitoringTemplateResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+}
+
+// CreateUpdateMonitoringTemplateRequest creates a request to invoke UpdateMonitoringTemplate API
+func CreateUpdateMonitoringTemplateRequest() (request *UpdateMonitoringTemplateRequest) {
+	request = &UpdateMonitoringTemplateRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMonitoringTemplate", "cms", "openAPI")
+	return
+}
+
+// CreateUpdateMonitoringTemplateResponse creates a response to parse from UpdateMonitoringTemplate response
+func CreateUpdateMonitoringTemplateResponse() (response *UpdateMonitoringTemplateResponse) {
+	response = &UpdateMonitoringTemplateResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/update_my_group_alert.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"
+)
+
+// UpdateMyGroupAlert invokes the cms.UpdateMyGroupAlert API synchronously
+// api document: https://help.aliyun.com/api/cms/updatemygroupalert.html
+func (client *Client) UpdateMyGroupAlert(request *UpdateMyGroupAlertRequest) (response *UpdateMyGroupAlertResponse, err error) {
+	response = CreateUpdateMyGroupAlertResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UpdateMyGroupAlertWithChan invokes the cms.UpdateMyGroupAlert API asynchronously
+// api document: https://help.aliyun.com/api/cms/updatemygroupalert.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateMyGroupAlertWithChan(request *UpdateMyGroupAlertRequest) (<-chan *UpdateMyGroupAlertResponse, <-chan error) {
+	responseChan := make(chan *UpdateMyGroupAlertResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UpdateMyGroupAlert(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UpdateMyGroupAlertWithCallback invokes the cms.UpdateMyGroupAlert API asynchronously
+// api document: https://help.aliyun.com/api/cms/updatemygroupalert.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UpdateMyGroupAlertWithCallback(request *UpdateMyGroupAlertRequest, callback func(response *UpdateMyGroupAlertResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UpdateMyGroupAlertResponse
+		var err error
+		defer close(result)
+		response, err = client.UpdateMyGroupAlert(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UpdateMyGroupAlertRequest is the request struct for api UpdateMyGroupAlert
+type UpdateMyGroupAlertRequest struct {
+	*requests.RpcRequest
+	GroupAlertJson string `position:"Query" name:"GroupAlertJson"`
+}
+
+// UpdateMyGroupAlertResponse is the response struct for api UpdateMyGroupAlert
+type UpdateMyGroupAlertResponse struct {
+	*responses.BaseResponse
+	RequestId    string `json:"RequestId" xml:"RequestId"`
+	Success      bool   `json:"Success" xml:"Success"`
+	ErrorCode    int    `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
+}
+
+// CreateUpdateMyGroupAlertRequest creates a request to invoke UpdateMyGroupAlert API
+func CreateUpdateMyGroupAlertRequest() (request *UpdateMyGroupAlertRequest) {
+	request = &UpdateMyGroupAlertRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "UpdateMyGroupAlert", "cms", "openAPI")
+	return
+}
+
+// CreateUpdateMyGroupAlertResponse creates a response to parse from UpdateMyGroupAlert response
+func CreateUpdateMyGroupAlertResponse() (response *UpdateMyGroupAlertResponse) {
+	response = &UpdateMyGroupAlertResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}