Sfoglia il codice sorgente

Generated 2019-01-01 for Cms.

sdk-team 5 anni fa
parent
commit
224f2f670c

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-01-13 Version: v1.60.329
+- Generated 2019-01-01 for `Cms`.
+- Add Dynamic Tag API.
+
 2020-01-13 Version: v1.60.328
 - Generated 2014-05-26 for `Ecs`.
 - Supported InstanceMaintenanceAtrributes for maintening the attributes of instances.

+ 119 - 0
services/cms/create_dynamic_tag_group.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"
+)
+
+// CreateDynamicTagGroup invokes the cms.CreateDynamicTagGroup API synchronously
+// api document: https://help.aliyun.com/api/cms/createdynamictaggroup.html
+func (client *Client) CreateDynamicTagGroup(request *CreateDynamicTagGroupRequest) (response *CreateDynamicTagGroupResponse, err error) {
+	response = CreateCreateDynamicTagGroupResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateDynamicTagGroupWithChan invokes the cms.CreateDynamicTagGroup API asynchronously
+// api document: https://help.aliyun.com/api/cms/createdynamictaggroup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDynamicTagGroupWithChan(request *CreateDynamicTagGroupRequest) (<-chan *CreateDynamicTagGroupResponse, <-chan error) {
+	responseChan := make(chan *CreateDynamicTagGroupResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateDynamicTagGroup(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateDynamicTagGroupWithCallback invokes the cms.CreateDynamicTagGroup API asynchronously
+// api document: https://help.aliyun.com/api/cms/createdynamictaggroup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDynamicTagGroupWithCallback(request *CreateDynamicTagGroupRequest, callback func(response *CreateDynamicTagGroupResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateDynamicTagGroupResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateDynamicTagGroup(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateDynamicTagGroupRequest is the request struct for api CreateDynamicTagGroup
+type CreateDynamicTagGroupRequest struct {
+	*requests.RpcRequest
+	EnableSubscribeEvent       requests.Boolean                     `position:"Query" name:"EnableSubscribeEvent"`
+	MatchExpressFilterRelation string                               `position:"Query" name:"MatchExpressFilterRelation"`
+	EnableInstallAgent         requests.Boolean                     `position:"Query" name:"EnableInstallAgent"`
+	MatchExpress               *[]CreateDynamicTagGroupMatchExpress `position:"Query" name:"MatchExpress"  type:"Repeated"`
+	ContactGroupList           *[]string                            `position:"Query" name:"ContactGroupList"  type:"Repeated"`
+	TemplateIdList             *[]string                            `position:"Query" name:"TemplateIdList"  type:"Repeated"`
+	TagKey                     string                               `position:"Query" name:"TagKey"`
+}
+
+// CreateDynamicTagGroupMatchExpress is a repeated param struct in CreateDynamicTagGroupRequest
+type CreateDynamicTagGroupMatchExpress struct {
+	TagName               string `name:"TagName"`
+	TagValue              string `name:"TagValue"`
+	TagValueMatchFunction string `name:"TagValueMatchFunction"`
+}
+
+// CreateDynamicTagGroupResponse is the response struct for api CreateDynamicTagGroup
+type CreateDynamicTagGroupResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	Success   bool   `json:"Success" xml:"Success"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateCreateDynamicTagGroupRequest creates a request to invoke CreateDynamicTagGroup API
+func CreateCreateDynamicTagGroupRequest() (request *CreateDynamicTagGroupRequest) {
+	request = &CreateDynamicTagGroupRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "CreateDynamicTagGroup", "cms", "openAPI")
+	return
+}
+
+// CreateCreateDynamicTagGroupResponse creates a response to parse from CreateDynamicTagGroup response
+func CreateCreateDynamicTagGroupResponse() (response *CreateDynamicTagGroupResponse) {
+	response = &CreateDynamicTagGroupResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

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

+ 12 - 12
services/cms/describe_alert_history_list.go

@@ -76,18 +76,18 @@ func (client *Client) DescribeAlertHistoryListWithCallback(request *DescribeAler
 // DescribeAlertHistoryListRequest is the request struct for api DescribeAlertHistoryList
 type DescribeAlertHistoryListRequest struct {
 	*requests.RpcRequest
-	AlertStatus string           `position:"Query" name:"AlertStatus"`
-	RuleName    string           `position:"Query" name:"RuleName"`
-	StartTime   string           `position:"Query" name:"StartTime"`
-	PageSize    requests.Integer `position:"Query" name:"PageSize"`
-	State       string           `position:"Query" name:"State"`
-	MetricName  string           `position:"Query" name:"MetricName"`
-	GroupId     string           `position:"Query" name:"GroupId"`
-	EndTime     string           `position:"Query" name:"EndTime"`
-	Ascending   requests.Boolean `position:"Query" name:"Ascending"`
-	Namespace   string           `position:"Query" name:"Namespace"`
-	Page        requests.Integer `position:"Query" name:"Page"`
-	RuleId      string           `position:"Query" name:"RuleId"`
+	RuleName   string           `position:"Query" name:"RuleName"`
+	StartTime  string           `position:"Query" name:"StartTime"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	State      string           `position:"Query" name:"State"`
+	MetricName string           `position:"Query" name:"MetricName"`
+	GroupId    string           `position:"Query" name:"GroupId"`
+	EndTime    string           `position:"Query" name:"EndTime"`
+	Ascending  requests.Boolean `position:"Query" name:"Ascending"`
+	Namespace  string           `position:"Query" name:"Namespace"`
+	Page       requests.Integer `position:"Query" name:"Page"`
+	RuleId     string           `position:"Query" name:"RuleId"`
+	Status     string           `position:"Query" name:"Status"`
 }
 
 // DescribeAlertHistoryListResponse is the response struct for api DescribeAlertHistoryList

+ 112 - 0
services/cms/describe_dynamic_tag_rule_list.go

@@ -0,0 +1,112 @@
+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"
+)
+
+// DescribeDynamicTagRuleList invokes the cms.DescribeDynamicTagRuleList API synchronously
+// api document: https://help.aliyun.com/api/cms/describedynamictagrulelist.html
+func (client *Client) DescribeDynamicTagRuleList(request *DescribeDynamicTagRuleListRequest) (response *DescribeDynamicTagRuleListResponse, err error) {
+	response = CreateDescribeDynamicTagRuleListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDynamicTagRuleListWithChan invokes the cms.DescribeDynamicTagRuleList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describedynamictagrulelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDynamicTagRuleListWithChan(request *DescribeDynamicTagRuleListRequest) (<-chan *DescribeDynamicTagRuleListResponse, <-chan error) {
+	responseChan := make(chan *DescribeDynamicTagRuleListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDynamicTagRuleList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDynamicTagRuleListWithCallback invokes the cms.DescribeDynamicTagRuleList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describedynamictagrulelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDynamicTagRuleListWithCallback(request *DescribeDynamicTagRuleListRequest, callback func(response *DescribeDynamicTagRuleListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDynamicTagRuleListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDynamicTagRuleList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDynamicTagRuleListRequest is the request struct for api DescribeDynamicTagRuleList
+type DescribeDynamicTagRuleListRequest struct {
+	*requests.RpcRequest
+	PageNumber string `position:"Query" name:"PageNumber"`
+	PageSize   string `position:"Query" name:"PageSize"`
+	TagKey     string `position:"Query" name:"TagKey"`
+}
+
+// DescribeDynamicTagRuleListResponse is the response struct for api DescribeDynamicTagRuleList
+type DescribeDynamicTagRuleListResponse 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"`
+	Total        int          `json:"Total" xml:"Total"`
+	PageNumber   string       `json:"PageNumber" xml:"PageNumber"`
+	PageSize     string       `json:"PageSize" xml:"PageSize"`
+	TagGroupList TagGroupList `json:"TagGroupList" xml:"TagGroupList"`
+}
+
+// CreateDescribeDynamicTagRuleListRequest creates a request to invoke DescribeDynamicTagRuleList API
+func CreateDescribeDynamicTagRuleListRequest() (request *DescribeDynamicTagRuleListRequest) {
+	request = &DescribeDynamicTagRuleListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DescribeDynamicTagRuleList", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeDynamicTagRuleListResponse creates a response to parse from DescribeDynamicTagRuleList response
+func CreateDescribeDynamicTagRuleListResponse() (response *DescribeDynamicTagRuleListResponse) {
+	response = &DescribeDynamicTagRuleListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 4 - 2
services/cms/describe_monitor_groups.go

@@ -79,12 +79,14 @@ type DescribeMonitorGroupsRequest struct {
 	SelectContactGroups    requests.Boolean            `position:"Query" name:"SelectContactGroups"`
 	IncludeTemplateHistory requests.Boolean            `position:"Query" name:"IncludeTemplateHistory"`
 	Type                   string                      `position:"Query" name:"Type"`
-	GroupName              string                      `position:"Query" name:"GroupName"`
 	PageNumber             requests.Integer            `position:"Query" name:"PageNumber"`
-	InstanceId             string                      `position:"Query" name:"InstanceId"`
 	PageSize               requests.Integer            `position:"Query" name:"PageSize"`
 	Tag                    *[]DescribeMonitorGroupsTag `position:"Query" name:"Tag"  type:"Repeated"`
 	Keyword                string                      `position:"Query" name:"Keyword"`
+	GroupId                string                      `position:"Query" name:"GroupId"`
+	GroupName              string                      `position:"Query" name:"GroupName"`
+	InstanceId             string                      `position:"Query" name:"InstanceId"`
+	DynamicTagGroupId      string                      `position:"Query" name:"DynamicTagGroupId"`
 }
 
 // DescribeMonitorGroupsTag is a repeated param struct in DescribeMonitorGroupsRequest

+ 108 - 0
services/cms/describe_product_resource_tag_key_list.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"
+)
+
+// DescribeProductResourceTagKeyList invokes the cms.DescribeProductResourceTagKeyList API synchronously
+// api document: https://help.aliyun.com/api/cms/describeproductresourcetagkeylist.html
+func (client *Client) DescribeProductResourceTagKeyList(request *DescribeProductResourceTagKeyListRequest) (response *DescribeProductResourceTagKeyListResponse, err error) {
+	response = CreateDescribeProductResourceTagKeyListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeProductResourceTagKeyListWithChan invokes the cms.DescribeProductResourceTagKeyList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeproductresourcetagkeylist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductResourceTagKeyListWithChan(request *DescribeProductResourceTagKeyListRequest) (<-chan *DescribeProductResourceTagKeyListResponse, <-chan error) {
+	responseChan := make(chan *DescribeProductResourceTagKeyListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeProductResourceTagKeyList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeProductResourceTagKeyListWithCallback invokes the cms.DescribeProductResourceTagKeyList API asynchronously
+// api document: https://help.aliyun.com/api/cms/describeproductresourcetagkeylist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProductResourceTagKeyListWithCallback(request *DescribeProductResourceTagKeyListRequest, callback func(response *DescribeProductResourceTagKeyListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeProductResourceTagKeyListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeProductResourceTagKeyList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeProductResourceTagKeyListRequest is the request struct for api DescribeProductResourceTagKeyList
+type DescribeProductResourceTagKeyListRequest struct {
+	*requests.RpcRequest
+	NextToken string `position:"Query" name:"NextToken"`
+}
+
+// DescribeProductResourceTagKeyListResponse is the response struct for api DescribeProductResourceTagKeyList
+type DescribeProductResourceTagKeyListResponse struct {
+	*responses.BaseResponse
+	Code      string                                     `json:"Code" xml:"Code"`
+	Message   string                                     `json:"Message" xml:"Message"`
+	Success   bool                                       `json:"Success" xml:"Success"`
+	RequestId string                                     `json:"RequestId" xml:"RequestId"`
+	NextToken string                                     `json:"NextToken" xml:"NextToken"`
+	TagKeys   TagKeysInDescribeProductResourceTagKeyList `json:"TagKeys" xml:"TagKeys"`
+}
+
+// CreateDescribeProductResourceTagKeyListRequest creates a request to invoke DescribeProductResourceTagKeyList API
+func CreateDescribeProductResourceTagKeyListRequest() (request *DescribeProductResourceTagKeyListRequest) {
+	request = &DescribeProductResourceTagKeyListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Cms", "2019-01-01", "DescribeProductResourceTagKeyList", "cms", "openAPI")
+	return
+}
+
+// CreateDescribeProductResourceTagKeyListResponse creates a response to parse from DescribeProductResourceTagKeyList response
+func CreateDescribeProductResourceTagKeyListResponse() (response *DescribeProductResourceTagKeyListResponse) {
+	response = &DescribeProductResourceTagKeyListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 5
services/cms/describe_tag_key_list.go

@@ -83,11 +83,11 @@ type DescribeTagKeyListRequest struct {
 // DescribeTagKeyListResponse is the response struct for api DescribeTagKeyList
 type DescribeTagKeyListResponse struct {
 	*responses.BaseResponse
-	Code      string  `json:"Code" xml:"Code"`
-	Message   string  `json:"Message" xml:"Message"`
-	Success   bool    `json:"Success" xml:"Success"`
-	RequestId string  `json:"RequestId" xml:"RequestId"`
-	TagKeys   TagKeys `json:"TagKeys" xml:"TagKeys"`
+	Code      string                      `json:"Code" xml:"Code"`
+	Message   string                      `json:"Message" xml:"Message"`
+	Success   bool                        `json:"Success" xml:"Success"`
+	RequestId string                      `json:"RequestId" xml:"RequestId"`
+	TagKeys   TagKeysInDescribeTagKeyList `json:"TagKeys" xml:"TagKeys"`
 }
 
 // CreateDescribeTagKeyListRequest creates a request to invoke DescribeTagKeyList API

+ 3 - 2
services/cms/struct_alarm_history.go

@@ -17,8 +17,8 @@ package cms
 
 // AlarmHistory is a nested struct in cms response
 type AlarmHistory struct {
+	Id              string                                  `json:"Id" xml:"Id"`
 	RuleId          string                                  `json:"RuleId" xml:"RuleId"`
-	AlertName       string                                  `json:"AlertName" xml:"AlertName"`
 	GroupId         string                                  `json:"GroupId" xml:"GroupId"`
 	Namespace       string                                  `json:"Namespace" xml:"Namespace"`
 	MetricName      string                                  `json:"MetricName" xml:"MetricName"`
@@ -29,8 +29,9 @@ type AlarmHistory struct {
 	AlertTime       int64                                   `json:"AlertTime" xml:"AlertTime"`
 	LastTime        int64                                   `json:"LastTime" xml:"LastTime"`
 	Level           string                                  `json:"Level" xml:"Level"`
+	PreLevel        string                                  `json:"PreLevel" xml:"PreLevel"`
 	RuleName        string                                  `json:"RuleName" xml:"RuleName"`
-	AlertState      string                                  `json:"AlertState" xml:"AlertState"`
+	State           string                                  `json:"State" xml:"State"`
 	Status          int                                     `json:"Status" xml:"Status"`
 	Webhooks        string                                  `json:"Webhooks" xml:"Webhooks"`
 	InstanceName    string                                  `json:"InstanceName" xml:"InstanceName"`

+ 2 - 2
services/cms/struct_match_express.go → services/cms/struct_match_express_in_describe_dynamic_tag_rule_list.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.
 
-// MatchExpress is a nested struct in cms response
-type MatchExpress struct {
+// MatchExpressInDescribeDynamicTagRuleList is a nested struct in cms response
+type MatchExpressInDescribeDynamicTagRuleList struct {
 	MatchExpressItem []MatchExpressItem `json:"MatchExpress" xml:"MatchExpress"`
 }

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

+ 6 - 3
services/cms/struct_match_express_item.go

@@ -17,7 +17,10 @@ package cms
 
 // MatchExpressItem is a nested struct in cms response
 type MatchExpressItem struct {
-	Name     string `json:"Name" xml:"Name"`
-	Function string `json:"Function" xml:"Function"`
-	Value    string `json:"Value" xml:"Value"`
+	Name                  string `json:"Name" xml:"Name"`
+	Value                 string `json:"Value" xml:"Value"`
+	TagName               string `json:"TagName" xml:"TagName"`
+	TagValueMatchFunction string `json:"TagValueMatchFunction" xml:"TagValueMatchFunction"`
+	Function              string `json:"Function" xml:"Function"`
+	TagValue              string `json:"TagValue" xml:"TagValue"`
 }

+ 6 - 6
services/cms/struct_process.go

@@ -17,10 +17,10 @@ package cms
 
 // Process is a nested struct in cms response
 type Process struct {
-	Id                         string                                           `json:"Id" xml:"Id"`
-	GroupId                    string                                           `json:"GroupId" xml:"GroupId"`
-	ProcessName                string                                           `json:"ProcessName" xml:"ProcessName"`
-	MatchExpressFilterRelation string                                           `json:"MatchExpressFilterRelation" xml:"MatchExpressFilterRelation"`
-	MatchExpress               MatchExpress                                     `json:"MatchExpress" xml:"MatchExpress"`
-	AlertConfig                AlertConfigInDescribeGroupMonitoringAgentProcess `json:"AlertConfig" xml:"AlertConfig"`
+	Id                         string                                            `json:"Id" xml:"Id"`
+	GroupId                    string                                            `json:"GroupId" xml:"GroupId"`
+	ProcessName                string                                            `json:"ProcessName" xml:"ProcessName"`
+	MatchExpressFilterRelation string                                            `json:"MatchExpressFilterRelation" xml:"MatchExpressFilterRelation"`
+	MatchExpress               MatchExpressInDescribeGroupMonitoringAgentProcess `json:"MatchExpress" xml:"MatchExpress"`
+	AlertConfig                AlertConfigInDescribeGroupMonitoringAgentProcess  `json:"AlertConfig" xml:"AlertConfig"`
 }

+ 40 - 39
services/cms/struct_resource.go

@@ -17,43 +17,44 @@ 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"`
-	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"`
-	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"`
-	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"`
+	BindUrl           string                                      `json:"BindUrl" xml:"BindUrl"`
+	Dimensions        string                                      `json:"Dimensions" xml:"Dimensions"`
+	GroupName         string                                      `json:"GroupName" xml:"GroupName"`
+	DynamicTagGroupId int64                                       `json:"DynamicTagGroupId" xml:"DynamicTagGroupId"`
+	ServiceId         string                                      `json:"ServiceId" xml:"ServiceId"`
+	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"`
+	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"`
+	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"`
+	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"`
 }

+ 27 - 0
services/cms/struct_tag_group.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.
+
+// TagGroup is a nested struct in cms response
+type TagGroup struct {
+	DynamicTagGroupId          string                                   `json:"DynamicTagGroupId" xml:"DynamicTagGroupId"`
+	TagKey                     string                                   `json:"TagKey" xml:"TagKey"`
+	RegionId                   string                                   `json:"RegionId" xml:"RegionId"`
+	MatchExpressFilterRelation string                                   `json:"MatchExpressFilterRelation" xml:"MatchExpressFilterRelation"`
+	Status                     string                                   `json:"Status" xml:"Status"`
+	TemplateIdList             TemplateIdList                           `json:"TemplateIdList" xml:"TemplateIdList"`
+	MatchExpress               MatchExpressInDescribeDynamicTagRuleList `json:"MatchExpress" xml:"MatchExpress"`
+}

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

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

+ 2 - 2
services/cms/struct_tag_keys.go → services/cms/struct_tag_keys_in_describe_tag_key_list.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.
 
-// TagKeys is a nested struct in cms response
-type TagKeys struct {
+// TagKeysInDescribeTagKeyList is a nested struct in cms response
+type TagKeysInDescribeTagKeyList struct {
 	TagKey []string `json:"TagKey" xml:"TagKey"`
 }

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