瀏覽代碼

CMS SDK Auto Released By wb-xzy262218,Version:1.23.2

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 年之前
父節點
當前提交
b94e4d83a5

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-07-26 Version: 1.23.2
+1, Add new API: SendDryRunSystemEvent,PutMetricAlarm,DescribeAlarmsForDimensions,DescribeAlarms.
+
 2018-07-26 Version: 1.23.1
 1, Add BatchGetJobMetricInfo API.
 2, Add BatchGetPluginConfigInfo API.

+ 2 - 1
services/cms/delete_event_rule.go

@@ -76,7 +76,8 @@ func (client *Client) DeleteEventRuleWithCallback(request *DeleteEventRuleReques
 // DeleteEventRuleRequest is the request struct for api DeleteEventRule
 type DeleteEventRuleRequest struct {
 	*requests.RpcRequest
-	RuleName string `position:"Query" name:"RuleName"`
+	RuleNames *[]string `position:"Query" name:"RuleNames"  type:"Repeated"`
+	RuleName  string    `position:"Query" name:"RuleName"`
 }
 
 // DeleteEventRuleResponse is the response struct for api DeleteEventRule

+ 119 - 0
services/cms/describe_alarms.go

@@ -0,0 +1,119 @@
+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"
+)
+
+// DescribeAlarms invokes the cms.DescribeAlarms API synchronously
+// api document: https://help.aliyun.com/api/cms/describealarms.html
+func (client *Client) DescribeAlarms(request *DescribeAlarmsRequest) (response *DescribeAlarmsResponse, err error) {
+	response = CreateDescribeAlarmsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeAlarmsWithChan invokes the cms.DescribeAlarms API asynchronously
+// api document: https://help.aliyun.com/api/cms/describealarms.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAlarmsWithChan(request *DescribeAlarmsRequest) (<-chan *DescribeAlarmsResponse, <-chan error) {
+	responseChan := make(chan *DescribeAlarmsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeAlarms(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeAlarmsWithCallback invokes the cms.DescribeAlarms API asynchronously
+// api document: https://help.aliyun.com/api/cms/describealarms.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAlarmsWithCallback(request *DescribeAlarmsRequest, callback func(response *DescribeAlarmsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeAlarmsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeAlarms(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeAlarmsRequest is the request struct for api DescribeAlarms
+type DescribeAlarmsRequest struct {
+	*requests.RpcRequest
+	EnableState requests.Boolean `position:"Query" name:"EnableState"`
+	Names       string           `position:"Query" name:"Names"`
+	DisplayName string           `position:"Query" name:"DisplayName"`
+	GroupId     string           `position:"Query" name:"GroupId"`
+	Namespace   string           `position:"Query" name:"Namespace"`
+	PageSize    string           `position:"Query" name:"PageSize"`
+	AlertState  string           `position:"Query" name:"AlertState"`
+	NameKeyword string           `position:"Query" name:"NameKeyword"`
+	GroupBy     string           `position:"Query" name:"GroupBy"`
+	Page        string           `position:"Query" name:"Page"`
+	MetricName  string           `position:"Query" name:"MetricName"`
+}
+
+// DescribeAlarmsResponse is the response struct for api DescribeAlarms
+type DescribeAlarmsResponse struct {
+	*responses.BaseResponse
+	RequestId  string                     `json:"RequestId" xml:"RequestId"`
+	TraceId    string                     `json:"TraceId" xml:"TraceId"`
+	Success    bool                       `json:"Success" xml:"Success"`
+	Code       int                        `json:"Code" xml:"Code"`
+	Message    string                     `json:"Message" xml:"Message"`
+	Total      string                     `json:"Total" xml:"Total"`
+	Datapoints DatapointsInDescribeAlarms `json:"Datapoints" xml:"Datapoints"`
+}
+
+// CreateDescribeAlarmsRequest creates a request to invoke DescribeAlarms API
+func CreateDescribeAlarmsRequest() (request *DescribeAlarmsRequest) {
+	request = &DescribeAlarmsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeAlarms", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeAlarmsResponse creates a response to parse from DescribeAlarms response
+func CreateDescribeAlarmsResponse() (response *DescribeAlarmsResponse) {
+	response = &DescribeAlarmsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 117 - 0
services/cms/describe_alarms_for_resources.go

@@ -0,0 +1,117 @@
+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"
+)
+
+// DescribeAlarmsForResources invokes the cms.DescribeAlarmsForResources API synchronously
+// api document: https://help.aliyun.com/api/cms/describealarmsforresources.html
+func (client *Client) DescribeAlarmsForResources(request *DescribeAlarmsForResourcesRequest) (response *DescribeAlarmsForResourcesResponse, err error) {
+	response = CreateDescribeAlarmsForResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeAlarmsForResourcesWithChan invokes the cms.DescribeAlarmsForResources API asynchronously
+// api document: https://help.aliyun.com/api/cms/describealarmsforresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAlarmsForResourcesWithChan(request *DescribeAlarmsForResourcesRequest) (<-chan *DescribeAlarmsForResourcesResponse, <-chan error) {
+	responseChan := make(chan *DescribeAlarmsForResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeAlarmsForResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeAlarmsForResourcesWithCallback invokes the cms.DescribeAlarmsForResources API asynchronously
+// api document: https://help.aliyun.com/api/cms/describealarmsforresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAlarmsForResourcesWithCallback(request *DescribeAlarmsForResourcesRequest, callback func(response *DescribeAlarmsForResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeAlarmsForResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeAlarmsForResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeAlarmsForResourcesRequest is the request struct for api DescribeAlarmsForResources
+type DescribeAlarmsForResourcesRequest struct {
+	*requests.RpcRequest
+	EnableState requests.Boolean `position:"Query" name:"EnableState"`
+	GroupId     string           `position:"Query" name:"GroupId"`
+	Namespace   string           `position:"Query" name:"Namespace"`
+	PageSize    string           `position:"Query" name:"PageSize"`
+	AlertState  string           `position:"Query" name:"AlertState"`
+	Page        string           `position:"Query" name:"Page"`
+	MetricName  string           `position:"Query" name:"MetricName"`
+	Dimensions  string           `position:"Query" name:"Dimensions"`
+}
+
+// DescribeAlarmsForResourcesResponse is the response struct for api DescribeAlarmsForResources
+type DescribeAlarmsForResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId  string                                 `json:"RequestId" xml:"RequestId"`
+	TraceId    string                                 `json:"TraceId" xml:"TraceId"`
+	Success    bool                                   `json:"Success" xml:"Success"`
+	Code       int                                    `json:"Code" xml:"Code"`
+	Message    string                                 `json:"Message" xml:"Message"`
+	Total      string                                 `json:"Total" xml:"Total"`
+	Dimensions string                                 `json:"Dimensions" xml:"Dimensions"`
+	Datapoints DatapointsInDescribeAlarmsForResources `json:"Datapoints" xml:"Datapoints"`
+}
+
+// CreateDescribeAlarmsForResourcesRequest creates a request to invoke DescribeAlarmsForResources API
+func CreateDescribeAlarmsForResourcesRequest() (request *DescribeAlarmsForResourcesRequest) {
+	request = &DescribeAlarmsForResourcesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "DescribeAlarmsForResources", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeAlarmsForResourcesResponse creates a response to parse from DescribeAlarmsForResources response
+func CreateDescribeAlarmsForResourcesResponse() (response *DescribeAlarmsForResourcesResponse) {
+	response = &DescribeAlarmsForResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 1
services/cms/disable_event_rule.go

@@ -76,7 +76,8 @@ func (client *Client) DisableEventRuleWithCallback(request *DisableEventRuleRequ
 // DisableEventRuleRequest is the request struct for api DisableEventRule
 type DisableEventRuleRequest struct {
 	*requests.RpcRequest
-	RuleName string `position:"Query" name:"RuleName"`
+	RuleNames *[]string `position:"Query" name:"RuleNames"  type:"Repeated"`
+	RuleName  string    `position:"Query" name:"RuleName"`
 }
 
 // DisableEventRuleResponse is the response struct for api DisableEventRule

+ 4 - 3
services/cms/enable_active_alert.go

@@ -83,9 +83,10 @@ type EnableActiveAlertRequest struct {
 // EnableActiveAlertResponse is the response struct for api EnableActiveAlert
 type EnableActiveAlertResponse struct {
 	*responses.BaseResponse
-	Success bool   `json:"Success" xml:"Success"`
-	Code    string `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
+	Success   bool   `json:"Success" xml:"Success"`
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
 }
 
 // CreateEnableActiveAlertRequest creates a request to invoke EnableActiveAlert API

+ 2 - 1
services/cms/enable_event_rule.go

@@ -76,7 +76,8 @@ func (client *Client) EnableEventRuleWithCallback(request *EnableEventRuleReques
 // EnableEventRuleRequest is the request struct for api EnableEventRule
 type EnableEventRuleRequest struct {
 	*requests.RpcRequest
-	RuleName string `position:"Query" name:"RuleName"`
+	RuleNames *[]string `position:"Query" name:"RuleNames"  type:"Repeated"`
+	RuleName  string    `position:"Query" name:"RuleName"`
 }
 
 // EnableEventRuleResponse is the response struct for api EnableEventRule

+ 1 - 0
services/cms/list_event_rules.go

@@ -76,6 +76,7 @@ func (client *Client) ListEventRulesWithCallback(request *ListEventRulesRequest,
 // ListEventRulesRequest is the request struct for api ListEventRules
 type ListEventRulesRequest struct {
 	*requests.RpcRequest
+	GroupId    string `position:"Query" name:"GroupId"`
 	PageSize   string `position:"Query" name:"PageSize"`
 	NamePrefix string `position:"Query" name:"NamePrefix"`
 	Page       string `position:"Query" name:"Page"`

+ 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"`
-	Type                string           `position:"Query" name:"Type"`
 	Keyword             string           `position:"Query" name:"Keyword"`
+	Type                string           `position:"Query" name:"Type"`
 	GroupName           string           `position:"Query" name:"GroupName"`
 	PageNumber          requests.Integer `position:"Query" name:"PageNumber"`
 	BindUrls            string           `position:"Query" name:"BindUrls"`

+ 1 - 1
services/cms/node_list.go

@@ -82,8 +82,8 @@ type NodeListRequest struct {
 	PageSize         requests.Integer `position:"Query" name:"PageSize"`
 	KeyWord          string           `position:"Query" name:"KeyWord"`
 	UserId           requests.Integer `position:"Query" name:"UserId"`
-	PageNumber       requests.Integer `position:"Query" name:"PageNumber"`
 	SerialNumbers    string           `position:"Query" name:"SerialNumbers"`
+	PageNumber       requests.Integer `position:"Query" name:"PageNumber"`
 	Status           string           `position:"Query" name:"Status"`
 }
 

+ 130 - 0
services/cms/put_metric_alarm.go

@@ -0,0 +1,130 @@
+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"
+)
+
+// PutMetricAlarm invokes the cms.PutMetricAlarm API synchronously
+// api document: https://help.aliyun.com/api/cms/putmetricalarm.html
+func (client *Client) PutMetricAlarm(request *PutMetricAlarmRequest) (response *PutMetricAlarmResponse, err error) {
+	response = CreatePutMetricAlarmResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PutMetricAlarmWithChan invokes the cms.PutMetricAlarm API asynchronously
+// api document: https://help.aliyun.com/api/cms/putmetricalarm.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutMetricAlarmWithChan(request *PutMetricAlarmRequest) (<-chan *PutMetricAlarmResponse, <-chan error) {
+	responseChan := make(chan *PutMetricAlarmResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PutMetricAlarm(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PutMetricAlarmWithCallback invokes the cms.PutMetricAlarm API asynchronously
+// api document: https://help.aliyun.com/api/cms/putmetricalarm.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutMetricAlarmWithCallback(request *PutMetricAlarmRequest, callback func(response *PutMetricAlarmResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PutMetricAlarmResponse
+		var err error
+		defer close(result)
+		response, err = client.PutMetricAlarm(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PutMetricAlarmRequest is the request struct for api PutMetricAlarm
+type PutMetricAlarmRequest struct {
+	*requests.RpcRequest
+	Period              string           `position:"Query" name:"Period"`
+	Webhook             string           `position:"Query" name:"Webhook"`
+	ContactGroups       string           `position:"Query" name:"ContactGroups"`
+	Level               requests.Integer `position:"Query" name:"Level"`
+	Subject             string           `position:"Query" name:"Subject"`
+	AlertName           string           `position:"Query" name:"AlertName"`
+	GroupId             string           `position:"Query" name:"GroupId"`
+	Description         string           `position:"Query" name:"Description"`
+	Resources           string           `position:"Query" name:"Resources"`
+	Threshold           string           `position:"Query" name:"Threshold"`
+	EffectiveInterval   string           `position:"Query" name:"EffectiveInterval"`
+	GroupName           string           `position:"Query" name:"GroupName"`
+	Filter              string           `position:"Query" name:"Filter"`
+	NoEffectiveInterval string           `position:"Query" name:"NoEffectiveInterval"`
+	DisplayName         string           `position:"Query" name:"DisplayName"`
+	Namespace           string           `position:"Query" name:"Namespace"`
+	EvaluationCount     requests.Integer `position:"Query" name:"EvaluationCount"`
+	SilenceTime         requests.Integer `position:"Query" name:"SilenceTime"`
+	Interval            string           `position:"Query" name:"Interval"`
+	MetricName          string           `position:"Query" name:"MetricName"`
+	DeepDive            string           `position:"Query" name:"DeepDive"`
+	ComparisonOperator  string           `position:"Query" name:"ComparisonOperator"`
+	Dimensions          string           `position:"Query" name:"Dimensions"`
+	Statistics          string           `position:"Query" name:"Statistics"`
+}
+
+// PutMetricAlarmResponse is the response struct for api PutMetricAlarm
+type PutMetricAlarmResponse struct {
+	*responses.BaseResponse
+	Success    bool   `json:"Success" xml:"Success"`
+	Code       string `json:"Code" xml:"Code"`
+	Message    string `json:"Message" xml:"Message"`
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Datapoints string `json:"Datapoints" xml:"Datapoints"`
+}
+
+// CreatePutMetricAlarmRequest creates a request to invoke PutMetricAlarm API
+func CreatePutMetricAlarmRequest() (request *PutMetricAlarmRequest) {
+	request = &PutMetricAlarmRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2018-03-08", "PutMetricAlarm", "cms", "openAPI")
+	return
+}
+
+// CreatePutMetricAlarmResponse creates a response to parse from PutMetricAlarm response
+func CreatePutMetricAlarmResponse() (response *PutMetricAlarmResponse) {
+	response = &PutMetricAlarmResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cms/query_metric_top.go

@@ -76,8 +76,8 @@ func (client *Client) QueryMetricTopWithCallback(request *QueryMetricTopRequest,
 // QueryMetricTopRequest is the request struct for api QueryMetricTop
 type QueryMetricTopRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	Period          string           `position:"Query" name:"Period"`
+	ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	Metric          string           `position:"Query" name:"Metric"`
 	Length          string           `position:"Query" name:"Length"`
 	Project         string           `position:"Query" name:"Project"`

+ 110 - 0
services/cms/send_dry_run_system_event.go

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

+ 24 - 18
services/cms/struct_alarm.go

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

+ 38 - 0
services/cms/struct_alarm_in_list_active_alert_rule.go

@@ -0,0 +1,38 @@
+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.
+
+// AlarmInListActiveAlertRule is a nested struct in cms response
+type AlarmInListActiveAlertRule struct {
+	Uuid               string `json:"Uuid" xml:"Uuid"`
+	Name               string `json:"Name" xml:"Name"`
+	Namespace          string `json:"Namespace" xml:"Namespace"`
+	MetricName         string `json:"MetricName" xml:"MetricName"`
+	Period             string `json:"Period" xml:"Period"`
+	Statistics         string `json:"Statistics" xml:"Statistics"`
+	ComparisonOperator string `json:"ComparisonOperator" xml:"ComparisonOperator"`
+	Threshold          string `json:"Threshold" xml:"Threshold"`
+	EvaluationCount    string `json:"EvaluationCount" xml:"EvaluationCount"`
+	StartTime          string `json:"StartTime" xml:"StartTime"`
+	EndTime            string `json:"EndTime" xml:"EndTime"`
+	SilenceTime        string `json:"SilenceTime" xml:"SilenceTime"`
+	NotifyType         string `json:"NotifyType" xml:"NotifyType"`
+	Enable             string `json:"Enable" xml:"Enable"`
+	State              string `json:"State" xml:"State"`
+	ContactGroups      string `json:"ContactGroups" xml:"ContactGroups"`
+	Webhook            string `json:"Webhook" xml:"Webhook"`
+	RuleName           string `json:"RuleName" xml:"RuleName"`
+}

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

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

+ 1 - 1
services/cms/struct_datapoints_in_list_active_alert_rule.go

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