浏览代码

Generated 2019-01-01 for Cms.

sdk-team 5 年之前
父节点
当前提交
c4e4aa5f3e

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-03-16 Version: v1.61.61
+- Generated 2019-01-01 for `Cms`.
+- Add exporter related API.
+
 2020-03-16 Version: v1.61.60
 - Generated 2019-12-12 for `amqp-open`.
 - Release.

+ 106 - 0
services/cms/delete_exporter_output.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"
+)
+
+// DeleteExporterOutput invokes the cms.DeleteExporterOutput API synchronously
+// api document: https://help.aliyun.com/api/cms/deleteexporteroutput.html
+func (client *Client) DeleteExporterOutput(request *DeleteExporterOutputRequest) (response *DeleteExporterOutputResponse, err error) {
+	response = CreateDeleteExporterOutputResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteExporterOutputWithChan invokes the cms.DeleteExporterOutput API asynchronously
+// api document: https://help.aliyun.com/api/cms/deleteexporteroutput.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteExporterOutputWithChan(request *DeleteExporterOutputRequest) (<-chan *DeleteExporterOutputResponse, <-chan error) {
+	responseChan := make(chan *DeleteExporterOutputResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteExporterOutput(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteExporterOutputWithCallback invokes the cms.DeleteExporterOutput API asynchronously
+// api document: https://help.aliyun.com/api/cms/deleteexporteroutput.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteExporterOutputWithCallback(request *DeleteExporterOutputRequest, callback func(response *DeleteExporterOutputResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteExporterOutputResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteExporterOutput(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteExporterOutputRequest is the request struct for api DeleteExporterOutput
+type DeleteExporterOutputRequest struct {
+	*requests.RpcRequest
+	DestName string `position:"Query" name:"DestName"`
+}
+
+// DeleteExporterOutputResponse is the response struct for api DeleteExporterOutput
+type DeleteExporterOutputResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateDeleteExporterOutputRequest creates a request to invoke DeleteExporterOutput API
+func CreateDeleteExporterOutputRequest() (request *DeleteExporterOutputRequest) {
+	request = &DeleteExporterOutputRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DeleteExporterOutput", "cms", "openAPI")
+	return
+}
+
+// CreateDeleteExporterOutputResponse creates a response to parse from DeleteExporterOutput response
+func CreateDeleteExporterOutputResponse() (response *DeleteExporterOutputResponse) {
+	response = &DeleteExporterOutputResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/cms/delete_exporter_rule.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"
+)
+
+// DeleteExporterRule invokes the cms.DeleteExporterRule API synchronously
+// api document: https://help.aliyun.com/api/cms/deleteexporterrule.html
+func (client *Client) DeleteExporterRule(request *DeleteExporterRuleRequest) (response *DeleteExporterRuleResponse, err error) {
+	response = CreateDeleteExporterRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteExporterRuleWithChan invokes the cms.DeleteExporterRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/deleteexporterrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteExporterRuleWithChan(request *DeleteExporterRuleRequest) (<-chan *DeleteExporterRuleResponse, <-chan error) {
+	responseChan := make(chan *DeleteExporterRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteExporterRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteExporterRuleWithCallback invokes the cms.DeleteExporterRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/deleteexporterrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteExporterRuleWithCallback(request *DeleteExporterRuleRequest, callback func(response *DeleteExporterRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteExporterRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteExporterRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteExporterRuleRequest is the request struct for api DeleteExporterRule
+type DeleteExporterRuleRequest struct {
+	*requests.RpcRequest
+	RuleName string `position:"Query" name:"RuleName"`
+}
+
+// DeleteExporterRuleResponse is the response struct for api DeleteExporterRule
+type DeleteExporterRuleResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreateDeleteExporterRuleRequest creates a request to invoke DeleteExporterRule API
+func CreateDeleteExporterRuleRequest() (request *DeleteExporterRuleRequest) {
+	request = &DeleteExporterRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DeleteExporterRule", "cms", "openAPI")
+	return
+}
+
+// CreateDeleteExporterRuleResponse creates a response to parse from DeleteExporterRule response
+func CreateDeleteExporterRuleResponse() (response *DeleteExporterRuleResponse) {
+	response = &DeleteExporterRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 5
services/cms/describe_active_metric_rule_list.go

@@ -82,11 +82,11 @@ type DescribeActiveMetricRuleListRequest struct {
 // DescribeActiveMetricRuleListResponse is the response struct for api DescribeActiveMetricRuleList
 type DescribeActiveMetricRuleListResponse 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 Datapoints `json:"Datapoints" xml:"Datapoints"`
+	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 DatapointsInDescribeActiveMetricRuleList `json:"Datapoints" xml:"Datapoints"`
 }
 
 // CreateDescribeActiveMetricRuleListRequest creates a request to invoke DescribeActiveMetricRuleList API

+ 110 - 0
services/cms/describe_exporter_output_list.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"
+)
+
+// DescribeExporterOutputList invokes the cms.DescribeExporterOutputList API synchronously
+// api document: https://help.aliyun.com/api/cms/describeexporteroutputlist.html
+func (client *Client) DescribeExporterOutputList(request *DescribeExporterOutputListRequest) (response *DescribeExporterOutputListResponse, err error) {
+	response = CreateDescribeExporterOutputListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeExporterOutputListWithChan invokes the cms.DescribeExporterOutputList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeexporteroutputlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeExporterOutputListWithChan(request *DescribeExporterOutputListRequest) (<-chan *DescribeExporterOutputListResponse, <-chan error) {
+	responseChan := make(chan *DescribeExporterOutputListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeExporterOutputList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeExporterOutputListWithCallback invokes the cms.DescribeExporterOutputList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeexporteroutputlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeExporterOutputListWithCallback(request *DescribeExporterOutputListRequest, callback func(response *DescribeExporterOutputListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeExporterOutputListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeExporterOutputList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeExporterOutputListRequest is the request struct for api DescribeExporterOutputList
+type DescribeExporterOutputListRequest struct {
+	*requests.RpcRequest
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+}
+
+// DescribeExporterOutputListResponse is the response struct for api DescribeExporterOutputList
+type DescribeExporterOutputListResponse struct {
+	*responses.BaseResponse
+	Code       string                                 `json:"Code" xml:"Code"`
+	Message    string                                 `json:"Message" xml:"Message"`
+	RequestId  string                                 `json:"RequestId" xml:"RequestId"`
+	Total      int                                    `json:"Total" xml:"Total"`
+	PageNumber int                                    `json:"PageNumber" xml:"PageNumber"`
+	Success    bool                                   `json:"Success" xml:"Success"`
+	Datapoints DatapointsInDescribeExporterOutputList `json:"Datapoints" xml:"Datapoints"`
+}
+
+// CreateDescribeExporterOutputListRequest creates a request to invoke DescribeExporterOutputList API
+func CreateDescribeExporterOutputListRequest() (request *DescribeExporterOutputListRequest) {
+	request = &DescribeExporterOutputListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DescribeExporterOutputList", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeExporterOutputListResponse creates a response to parse from DescribeExporterOutputList response
+func CreateDescribeExporterOutputListResponse() (response *DescribeExporterOutputListResponse) {
+	response = &DescribeExporterOutputListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/cms/describe_exporter_rule_list.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"
+)
+
+// DescribeExporterRuleList invokes the cms.DescribeExporterRuleList API synchronously
+// api document: https://help.aliyun.com/api/cms/describeexporterrulelist.html
+func (client *Client) DescribeExporterRuleList(request *DescribeExporterRuleListRequest) (response *DescribeExporterRuleListResponse, err error) {
+	response = CreateDescribeExporterRuleListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeExporterRuleListWithChan invokes the cms.DescribeExporterRuleList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeexporterrulelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeExporterRuleListWithChan(request *DescribeExporterRuleListRequest) (<-chan *DescribeExporterRuleListResponse, <-chan error) {
+	responseChan := make(chan *DescribeExporterRuleListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeExporterRuleList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeExporterRuleListWithCallback invokes the cms.DescribeExporterRuleList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeexporterrulelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeExporterRuleListWithCallback(request *DescribeExporterRuleListRequest, callback func(response *DescribeExporterRuleListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeExporterRuleListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeExporterRuleList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeExporterRuleListRequest is the request struct for api DescribeExporterRuleList
+type DescribeExporterRuleListRequest struct {
+	*requests.RpcRequest
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+}
+
+// DescribeExporterRuleListResponse is the response struct for api DescribeExporterRuleList
+type DescribeExporterRuleListResponse struct {
+	*responses.BaseResponse
+	Code       string                               `json:"Code" xml:"Code"`
+	Message    string                               `json:"Message" xml:"Message"`
+	RequestId  string                               `json:"RequestId" xml:"RequestId"`
+	Total      int                                  `json:"Total" xml:"Total"`
+	PageNumber int                                  `json:"PageNumber" xml:"PageNumber"`
+	Success    bool                                 `json:"Success" xml:"Success"`
+	Datapoints DatapointsInDescribeExporterRuleList `json:"Datapoints" xml:"Datapoints"`
+}
+
+// CreateDescribeExporterRuleListRequest creates a request to invoke DescribeExporterRuleList API
+func CreateDescribeExporterRuleListRequest() (request *DescribeExporterRuleListRequest) {
+	request = &DescribeExporterRuleListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DescribeExporterRuleList", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeExporterRuleListResponse creates a response to parse from DescribeExporterRuleList response
+func CreateDescribeExporterRuleListResponse() (response *DescribeExporterRuleListResponse) {
+	response = &DescribeExporterRuleListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/cms/describe_folder_list.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"
+)
+
+// DescribeFolderList invokes the cms.DescribeFolderList API synchronously
+// api document: https://help.aliyun.com/api/cms/describefolderlist.html
+func (client *Client) DescribeFolderList(request *DescribeFolderListRequest) (response *DescribeFolderListResponse, err error) {
+	response = CreateDescribeFolderListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeFolderListWithChan invokes the cms.DescribeFolderList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describefolderlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeFolderListWithChan(request *DescribeFolderListRequest) (<-chan *DescribeFolderListResponse, <-chan error) {
+	responseChan := make(chan *DescribeFolderListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeFolderList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeFolderListWithCallback invokes the cms.DescribeFolderList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describefolderlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeFolderListWithCallback(request *DescribeFolderListRequest, callback func(response *DescribeFolderListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeFolderListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeFolderList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeFolderListRequest is the request struct for api DescribeFolderList
+type DescribeFolderListRequest struct {
+	*requests.RpcRequest
+	AppName string `position:"Query" name:"AppName"`
+}
+
+// DescribeFolderListResponse is the response struct for api DescribeFolderList
+type DescribeFolderListResponse struct {
+	*responses.BaseResponse
+	RequestId  string   `json:"RequestId" xml:"RequestId"`
+	Success    bool     `json:"Success" xml:"Success"`
+	Code       int      `json:"Code" xml:"Code"`
+	Message    string   `json:"Message" xml:"Message"`
+	PageNumber int      `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int      `json:"PageSize" xml:"PageSize"`
+	Total      int      `json:"Total" xml:"Total"`
+	Resource   Resource `json:"Resource" xml:"Resource"`
+}
+
+// CreateDescribeFolderListRequest creates a request to invoke DescribeFolderList API
+func CreateDescribeFolderListRequest() (request *DescribeFolderListRequest) {
+	request = &DescribeFolderListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DescribeFolderList", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeFolderListResponse creates a response to parse from DescribeFolderList response
+func CreateDescribeFolderListResponse() (response *DescribeFolderListResponse) {
+	response = &DescribeFolderListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/cms/describe_monitor_groups.go

@@ -87,6 +87,7 @@ type DescribeMonitorGroupsRequest struct {
 	GroupId                string                      `position:"Query" name:"GroupId"`
 	GroupName              string                      `position:"Query" name:"GroupName"`
 	InstanceId             string                      `position:"Query" name:"InstanceId"`
+	ServiceId              string                      `position:"Query" name:"ServiceId"`
 }
 
 // DescribeMonitorGroupsTag is a repeated param struct in DescribeMonitorGroupsRequest

+ 109 - 0
services/cms/put_exporter_output.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"
+)
+
+// PutExporterOutput invokes the cms.PutExporterOutput API synchronously
+// api document: https://help.aliyun.com/api/cms/putexporteroutput.html
+func (client *Client) PutExporterOutput(request *PutExporterOutputRequest) (response *PutExporterOutputResponse, err error) {
+	response = CreatePutExporterOutputResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PutExporterOutputWithChan invokes the cms.PutExporterOutput API asynchronously
+// api document: https://help.aliyun.com/api/cms/putexporteroutput.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutExporterOutputWithChan(request *PutExporterOutputRequest) (<-chan *PutExporterOutputResponse, <-chan error) {
+	responseChan := make(chan *PutExporterOutputResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PutExporterOutput(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PutExporterOutputWithCallback invokes the cms.PutExporterOutput API asynchronously
+// api document: https://help.aliyun.com/api/cms/putexporteroutput.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutExporterOutputWithCallback(request *PutExporterOutputRequest, callback func(response *PutExporterOutputResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PutExporterOutputResponse
+		var err error
+		defer close(result)
+		response, err = client.PutExporterOutput(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PutExporterOutputRequest is the request struct for api PutExporterOutput
+type PutExporterOutputRequest struct {
+	*requests.RpcRequest
+	DestName   string `position:"Query" name:"DestName"`
+	ConfigJson string `position:"Query" name:"ConfigJson"`
+	DestType   string `position:"Query" name:"DestType"`
+	Desc       string `position:"Query" name:"Desc"`
+}
+
+// PutExporterOutputResponse is the response struct for api PutExporterOutput
+type PutExporterOutputResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreatePutExporterOutputRequest creates a request to invoke PutExporterOutput API
+func CreatePutExporterOutputRequest() (request *PutExporterOutputRequest) {
+	request = &PutExporterOutputRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "PutExporterOutput", "cms", "openAPI")
+	return
+}
+
+// CreatePutExporterOutputResponse creates a response to parse from PutExporterOutput response
+func CreatePutExporterOutputResponse() (response *PutExporterOutputResponse) {
+	response = &PutExporterOutputResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/cms/put_exporter_rule.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"
+)
+
+// PutExporterRule invokes the cms.PutExporterRule API synchronously
+// api document: https://help.aliyun.com/api/cms/putexporterrule.html
+func (client *Client) PutExporterRule(request *PutExporterRuleRequest) (response *PutExporterRuleResponse, err error) {
+	response = CreatePutExporterRuleResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// PutExporterRuleWithChan invokes the cms.PutExporterRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/putexporterrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutExporterRuleWithChan(request *PutExporterRuleRequest) (<-chan *PutExporterRuleResponse, <-chan error) {
+	responseChan := make(chan *PutExporterRuleResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.PutExporterRule(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// PutExporterRuleWithCallback invokes the cms.PutExporterRule API asynchronously
+// api document: https://help.aliyun.com/api/cms/putexporterrule.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) PutExporterRuleWithCallback(request *PutExporterRuleRequest, callback func(response *PutExporterRuleResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *PutExporterRuleResponse
+		var err error
+		defer close(result)
+		response, err = client.PutExporterRule(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// PutExporterRuleRequest is the request struct for api PutExporterRule
+type PutExporterRuleRequest struct {
+	*requests.RpcRequest
+	RuleName      string    `position:"Query" name:"RuleName"`
+	DstNames      *[]string `position:"Query" name:"DstNames"  type:"Repeated"`
+	Namespace     string    `position:"Query" name:"Namespace"`
+	TargetWindows string    `position:"Query" name:"TargetWindows"`
+	Describe      string    `position:"Query" name:"Describe"`
+	MetricName    string    `position:"Query" name:"MetricName"`
+}
+
+// PutExporterRuleResponse is the response struct for api PutExporterRule
+type PutExporterRuleResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Success   bool   `json:"Success" xml:"Success"`
+}
+
+// CreatePutExporterRuleRequest creates a request to invoke PutExporterRule API
+func CreatePutExporterRuleRequest() (request *PutExporterRuleRequest) {
+	request = &PutExporterRuleRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "PutExporterRule", "cms", "openAPI")
+	return
+}
+
+// CreatePutExporterRuleResponse creates a response to parse from PutExporterRule response
+func CreatePutExporterRuleResponse() (response *PutExporterRuleResponse) {
+	response = &PutExporterRuleResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 25 - 0
services/cms/struct_config_json.go

@@ -0,0 +1,25 @@
+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.
+
+// ConfigJson is a nested struct in cms response
+type ConfigJson struct {
+	Logstore string `json:"logstore" xml:"logstore"`
+	Project  string `json:"project" xml:"project"`
+	Endpoint string `json:"endpoint" xml:"endpoint"`
+	As       string `json:"as" xml:"as"`
+	Ak       string `json:"ak" xml:"ak"`
+}

+ 32 - 0
services/cms/struct_datapoint.go

@@ -0,0 +1,32 @@
+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.
+
+// Datapoint is a nested struct in cms response
+type Datapoint struct {
+	DestType      string     `json:"DestType" xml:"DestType"`
+	RuleName      string     `json:"RuleName" xml:"RuleName"`
+	Describe      string     `json:"Describe" xml:"Describe"`
+	Namespace     string     `json:"Namespace" xml:"Namespace"`
+	Enabled       bool       `json:"Enabled" xml:"Enabled"`
+	DestName      string     `json:"DestName" xml:"DestName"`
+	Dimension     string     `json:"Dimension" xml:"Dimension"`
+	MetricName    string     `json:"MetricName" xml:"MetricName"`
+	TargetWindows string     `json:"TargetWindows" xml:"TargetWindows"`
+	CreateTime    int64      `json:"CreateTime" xml:"CreateTime"`
+	DstName       DstName    `json:"DstName" xml:"DstName"`
+	ConfigJson    ConfigJson `json:"ConfigJson" xml:"ConfigJson"`
+}

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

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

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

+ 3 - 3
services/cms/struct_datapoints.go → services/cms/struct_dst_name.go

@@ -15,7 +15,7 @@ package cms
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// Datapoints is a nested struct in cms response
-type Datapoints struct {
-	Alarm []Alarm `json:"Alarm" xml:"Alarm"`
+// DstName is a nested struct in cms response
+type DstName struct {
+	DstName []string `json:"DstName" xml:"DstName"`
 }

+ 32 - 42
services/cms/struct_resource.go

@@ -17,46 +17,36 @@ package cms
 
 // Resource is a nested struct in cms response
 type Resource struct {
-	TemplateId           string                                      `json:"TemplateId" xml:"TemplateId"`
-	Name                 string                                      `json:"Name" xml:"Name"`
-	Category             string                                      `json:"Category" xml:"Category"`
-	Unit                 string                                      `json:"Unit" xml:"Unit"`
-	NameDesc             string                                      `json:"NameDesc" xml:"NameDesc"`
-	Desc                 string                                      `json:"Desc" xml:"Desc"`
-	BindUrl              string                                      `json:"BindUrl" xml:"BindUrl"`
-	Dimensions           string                                      `json:"Dimensions" xml:"Dimensions"`
-	GroupName            string                                      `json:"GroupName" xml:"GroupName"`
-	ServiceId            string                                      `json:"ServiceId" xml:"ServiceId"`
-	RestVersion          string                                      `json:"RestVersion" xml:"RestVersion"`
-	RegionId             string                                      `json:"RegionId" xml:"RegionId"`
-	InstanceId           string                                      `json:"InstanceId" xml:"InstanceId"`
-	DynamicTagRuleId     string                                      `json:"DynamicTagRuleId" xml:"DynamicTagRuleId"`
-	NetworkType          string                                      `json:"NetworkType" xml:"NetworkType"`
-	Description          string                                      `json:"Description" xml:"Description"`
-	Periods              string                                      `json:"Periods" xml:"Periods"`
-	Type                 string                                      `json:"Type" xml:"Type"`
-	Product              string                                      `json:"Product" xml:"Product"`
-	InstanceName         string                                      `json:"InstanceName" xml:"InstanceName"`
-	Level                string                                      `json:"Level" xml:"Level"`
-	Dimension            string                                      `json:"Dimension" xml:"Dimension"`
-	Id                   int64                                       `json:"Id" xml:"Id"`
-	GroupFounderTagValue string                                      `json:"GroupFounderTagValue" xml:"GroupFounderTagValue"`
-	GmtCreate            int64                                       `json:"GmtCreate" xml:"GmtCreate"`
-	EventType            string                                      `json:"EventType" xml:"EventType"`
-	Namespace            string                                      `json:"Namespace" xml:"Namespace"`
-	GroupId              int64                                       `json:"GroupId" xml:"GroupId"`
-	GmtModified          int64                                       `json:"GmtModified" xml:"GmtModified"`
-	GroupFounderTagKey   string                                      `json:"GroupFounderTagKey" xml:"GroupFounderTagKey"`
-	MetricName           string                                      `json:"MetricName" xml:"MetricName"`
-	StatusDesc           string                                      `json:"StatusDesc" xml:"StatusDesc"`
-	Labels               string                                      `json:"Labels" xml:"Labels"`
-	Status               string                                      `json:"Status" xml:"Status"`
-	Statistics           string                                      `json:"Statistics" xml:"Statistics"`
-	TemplateIds          TemplateIds                                 `json:"TemplateIds" xml:"TemplateIds"`
-	Vpc                  Vpc                                         `json:"Vpc" xml:"Vpc"`
-	Region               Region                                      `json:"Region" xml:"Region"`
-	Tags                 TagsInDescribeMonitorGroupInstanceAttribute `json:"Tags" xml:"Tags"`
-	ContactGroups        ContactGroupsInDescribeMonitorGroups        `json:"ContactGroups" xml:"ContactGroups"`
-	AlertResults         []Result                                    `json:"AlertResults" xml:"AlertResults"`
-	AlertTemplates       AlertTemplates                              `json:"AlertTemplates" xml:"AlertTemplates"`
+	TemplateId     string                                      `json:"TemplateId" xml:"TemplateId"`
+	Name           string                                      `json:"Name" xml:"Name"`
+	Category       string                                      `json:"Category" xml:"Category"`
+	Unit           string                                      `json:"Unit" xml:"Unit"`
+	NameDesc       string                                      `json:"NameDesc" xml:"NameDesc"`
+	Desc           string                                      `json:"Desc" xml:"Desc"`
+	Dimensions     string                                      `json:"Dimensions" xml:"Dimensions"`
+	RestVersion    string                                      `json:"RestVersion" xml:"RestVersion"`
+	RegionId       string                                      `json:"RegionId" xml:"RegionId"`
+	InstanceId     string                                      `json:"InstanceId" xml:"InstanceId"`
+	NetworkType    string                                      `json:"NetworkType" xml:"NetworkType"`
+	Description    string                                      `json:"Description" xml:"Description"`
+	Periods        string                                      `json:"Periods" xml:"Periods"`
+	Product        string                                      `json:"Product" xml:"Product"`
+	InstanceName   string                                      `json:"InstanceName" xml:"InstanceName"`
+	Level          string                                      `json:"Level" xml:"Level"`
+	Dimension      string                                      `json:"Dimension" xml:"Dimension"`
+	Id             int64                                       `json:"Id" xml:"Id"`
+	EventType      string                                      `json:"EventType" xml:"EventType"`
+	Namespace      string                                      `json:"Namespace" xml:"Namespace"`
+	GroupId        int64                                       `json:"GroupId" xml:"GroupId"`
+	ServiceId      int64                                       `json:"ServiceId" xml:"ServiceId"`
+	MetricName     string                                      `json:"MetricName" xml:"MetricName"`
+	StatusDesc     string                                      `json:"StatusDesc" xml:"StatusDesc"`
+	Labels         string                                      `json:"Labels" xml:"Labels"`
+	Status         string                                      `json:"Status" xml:"Status"`
+	Statistics     string                                      `json:"Statistics" xml:"Statistics"`
+	Vpc            Vpc                                         `json:"Vpc" xml:"Vpc"`
+	Region         Region                                      `json:"Region" xml:"Region"`
+	Tags           TagsInDescribeMonitorGroupInstanceAttribute `json:"Tags" xml:"Tags"`
+	AlertResults   []Result                                    `json:"AlertResults" xml:"AlertResults"`
+	AlertTemplates AlertTemplates                              `json:"AlertTemplates" xml:"AlertTemplates"`
 }

+ 33 - 0
services/cms/struct_resource_in_describe_monitor_groups.go

@@ -0,0 +1,33 @@
+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.
+
+// ResourceInDescribeMonitorGroups is a nested struct in cms response
+type ResourceInDescribeMonitorGroups struct {
+	GroupId              int64                                `json:"GroupId" xml:"GroupId"`
+	GroupName            string                               `json:"GroupName" xml:"GroupName"`
+	ServiceId            string                               `json:"ServiceId" xml:"ServiceId"`
+	Type                 string                               `json:"Type" xml:"Type"`
+	GmtModified          int64                                `json:"GmtModified" xml:"GmtModified"`
+	GmtCreate            int64                                `json:"GmtCreate" xml:"GmtCreate"`
+	BindUrl              string                               `json:"BindUrl" xml:"BindUrl"`
+	DynamicTagRuleId     string                               `json:"DynamicTagRuleId" xml:"DynamicTagRuleId"`
+	GroupFounderTagKey   string                               `json:"GroupFounderTagKey" xml:"GroupFounderTagKey"`
+	GroupFounderTagValue string                               `json:"GroupFounderTagValue" xml:"GroupFounderTagValue"`
+	TemplateIds          TemplateIds                          `json:"TemplateIds" xml:"TemplateIds"`
+	ContactGroups        ContactGroupsInDescribeMonitorGroups `json:"ContactGroups" xml:"ContactGroups"`
+	Tags                 TagsInDescribeMonitorGroups          `json:"Tags" xml:"Tags"`
+}

+ 1 - 1
services/cms/struct_resources_in_describe_monitor_groups.go

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