Browse Source

Api release 2019-08-08 public sdk 2-5-2 sdk release 20190822 shichun-fsc.

sdk-team 6 years ago
parent
commit
bd3da478bd

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-08-22 Version: 1.60.117
+- Api release 2019-08-08 public sdk 2-5-2 sdk release 20190822 shichun-fsc.
+
 2019-08-22 Version: 1.60.116
 - Api getTopicList add a new return value.
 

+ 0 - 139
services/arms/arms_query_data_set.go

@@ -1,139 +0,0 @@
-package arms
-
-//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"
-)
-
-// ARMSQueryDataSet invokes the arms.ARMSQueryDataSet API synchronously
-// api document: https://help.aliyun.com/api/arms/armsquerydataset.html
-func (client *Client) ARMSQueryDataSet(request *ARMSQueryDataSetRequest) (response *ARMSQueryDataSetResponse, err error) {
-	response = CreateARMSQueryDataSetResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ARMSQueryDataSetWithChan invokes the arms.ARMSQueryDataSet API asynchronously
-// api document: https://help.aliyun.com/api/arms/armsquerydataset.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ARMSQueryDataSetWithChan(request *ARMSQueryDataSetRequest) (<-chan *ARMSQueryDataSetResponse, <-chan error) {
-	responseChan := make(chan *ARMSQueryDataSetResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ARMSQueryDataSet(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ARMSQueryDataSetWithCallback invokes the arms.ARMSQueryDataSet API asynchronously
-// api document: https://help.aliyun.com/api/arms/armsquerydataset.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ARMSQueryDataSetWithCallback(request *ARMSQueryDataSetRequest, callback func(response *ARMSQueryDataSetResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ARMSQueryDataSetResponse
-		var err error
-		defer close(result)
-		response, err = client.ARMSQueryDataSet(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ARMSQueryDataSetRequest is the request struct for api ARMSQueryDataSet
-type ARMSQueryDataSetRequest struct {
-	*requests.RpcRequest
-	DateStr       string                          `position:"Query" name:"DateStr"`
-	MinTime       requests.Integer                `position:"Query" name:"MinTime"`
-	ReduceTail    requests.Boolean                `position:"Query" name:"ReduceTail"`
-	MaxTime       requests.Integer                `position:"Query" name:"MaxTime"`
-	OptionalDims  *[]ARMSQueryDataSetOptionalDims `position:"Query" name:"OptionalDims"  type:"Repeated"`
-	Measures      *[]string                       `position:"Query" name:"Measures"  type:"Repeated"`
-	IntervalInSec requests.Integer                `position:"Query" name:"IntervalInSec"`
-	IsDrillDown   requests.Boolean                `position:"Query" name:"IsDrillDown"`
-	HungryMode    requests.Boolean                `position:"Query" name:"HungryMode"`
-	SecurityToken string                          `position:"Query" name:"SecurityToken"`
-	OrderByKey    string                          `position:"Query" name:"OrderByKey"`
-	Limit         requests.Integer                `position:"Query" name:"Limit"`
-	RequiredDims  *[]ARMSQueryDataSetRequiredDims `position:"Query" name:"RequiredDims"  type:"Repeated"`
-	DatasetId     requests.Integer                `position:"Query" name:"DatasetId"`
-	Dimensions    *[]ARMSQueryDataSetDimensions   `position:"Query" name:"Dimensions"  type:"Repeated"`
-}
-
-// ARMSQueryDataSetOptionalDims is a repeated param struct in ARMSQueryDataSetRequest
-type ARMSQueryDataSetOptionalDims struct {
-	Type  string `name:"Type"`
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// ARMSQueryDataSetRequiredDims is a repeated param struct in ARMSQueryDataSetRequest
-type ARMSQueryDataSetRequiredDims struct {
-	Type  string `name:"Type"`
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// ARMSQueryDataSetDimensions is a repeated param struct in ARMSQueryDataSetRequest
-type ARMSQueryDataSetDimensions struct {
-	Type  string `name:"Type"`
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// ARMSQueryDataSetResponse is the response struct for api ARMSQueryDataSet
-type ARMSQueryDataSetResponse struct {
-	*responses.BaseResponse
-	Data      string `json:"Data" xml:"Data"`
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateARMSQueryDataSetRequest creates a request to invoke ARMSQueryDataSet API
-func CreateARMSQueryDataSetRequest() (request *ARMSQueryDataSetRequest) {
-	request = &ARMSQueryDataSetRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "ARMSQueryDataSet", "", "")
-	return
-}
-
-// CreateARMSQueryDataSetResponse creates a response to parse from ARMSQueryDataSet response
-func CreateARMSQueryDataSetResponse() (response *ARMSQueryDataSetResponse) {
-	response = &ARMSQueryDataSetResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 106
services/arms/get_ip_or_hosts.go

@@ -1,106 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetIpOrHosts invokes the arms.GetIpOrHosts API synchronously
-// api document: https://help.aliyun.com/api/arms/getiporhosts.html
-func (client *Client) GetIpOrHosts(request *GetIpOrHostsRequest) (response *GetIpOrHostsResponse, err error) {
-	response = CreateGetIpOrHostsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetIpOrHostsWithChan invokes the arms.GetIpOrHosts API asynchronously
-// api document: https://help.aliyun.com/api/arms/getiporhosts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetIpOrHostsWithChan(request *GetIpOrHostsRequest) (<-chan *GetIpOrHostsResponse, <-chan error) {
-	responseChan := make(chan *GetIpOrHostsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetIpOrHosts(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetIpOrHostsWithCallback invokes the arms.GetIpOrHosts API asynchronously
-// api document: https://help.aliyun.com/api/arms/getiporhosts.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetIpOrHostsWithCallback(request *GetIpOrHostsRequest, callback func(response *GetIpOrHostsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetIpOrHostsResponse
-		var err error
-		defer close(result)
-		response, err = client.GetIpOrHosts(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetIpOrHostsRequest is the request struct for api GetIpOrHosts
-type GetIpOrHostsRequest struct {
-	*requests.RpcRequest
-	EndTime     requests.Integer `position:"Query" name:"EndTime"`
-	ServiceName string           `position:"Query" name:"ServiceName"`
-	StartTime   requests.Integer `position:"Query" name:"StartTime"`
-}
-
-// GetIpOrHostsResponse is the response struct for api GetIpOrHosts
-type GetIpOrHostsResponse struct {
-	*responses.BaseResponse
-	RequestId string             `json:"RequestId" xml:"RequestId"`
-	Data      DataInGetIpOrHosts `json:"Data" xml:"Data"`
-}
-
-// CreateGetIpOrHostsRequest creates a request to invoke GetIpOrHosts API
-func CreateGetIpOrHostsRequest() (request *GetIpOrHostsRequest) {
-	request = &GetIpOrHostsRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetIpOrHosts", "", "")
-	return
-}
-
-// CreateGetIpOrHostsResponse creates a response to parse from GetIpOrHosts response
-func CreateGetIpOrHostsResponse() (response *GetIpOrHostsResponse) {
-	response = &GetIpOrHostsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/arms/get_services.go

@@ -1,104 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetServices invokes the arms.GetServices API synchronously
-// api document: https://help.aliyun.com/api/arms/getservices.html
-func (client *Client) GetServices(request *GetServicesRequest) (response *GetServicesResponse, err error) {
-	response = CreateGetServicesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetServicesWithChan invokes the arms.GetServices API asynchronously
-// api document: https://help.aliyun.com/api/arms/getservices.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetServicesWithChan(request *GetServicesRequest) (<-chan *GetServicesResponse, <-chan error) {
-	responseChan := make(chan *GetServicesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetServices(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetServicesWithCallback invokes the arms.GetServices API asynchronously
-// api document: https://help.aliyun.com/api/arms/getservices.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetServicesWithCallback(request *GetServicesRequest, callback func(response *GetServicesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetServicesResponse
-		var err error
-		defer close(result)
-		response, err = client.GetServices(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetServicesRequest is the request struct for api GetServices
-type GetServicesRequest struct {
-	*requests.RpcRequest
-	AppType string `position:"Query" name:"AppType"`
-}
-
-// GetServicesResponse is the response struct for api GetServices
-type GetServicesResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      Data   `json:"Data" xml:"Data"`
-}
-
-// CreateGetServicesRequest creates a request to invoke GetServices API
-func CreateGetServicesRequest() (request *GetServicesRequest) {
-	request = &GetServicesRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetServices", "", "")
-	return
-}
-
-// CreateGetServicesResponse creates a response to parse from GetServices response
-func CreateGetServicesResponse() (response *GetServicesResponse) {
-	response = &GetServicesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 106
services/arms/get_span_names.go

@@ -1,106 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetSpanNames invokes the arms.GetSpanNames API synchronously
-// api document: https://help.aliyun.com/api/arms/getspannames.html
-func (client *Client) GetSpanNames(request *GetSpanNamesRequest) (response *GetSpanNamesResponse, err error) {
-	response = CreateGetSpanNamesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetSpanNamesWithChan invokes the arms.GetSpanNames API asynchronously
-// api document: https://help.aliyun.com/api/arms/getspannames.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetSpanNamesWithChan(request *GetSpanNamesRequest) (<-chan *GetSpanNamesResponse, <-chan error) {
-	responseChan := make(chan *GetSpanNamesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetSpanNames(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetSpanNamesWithCallback invokes the arms.GetSpanNames API asynchronously
-// api document: https://help.aliyun.com/api/arms/getspannames.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetSpanNamesWithCallback(request *GetSpanNamesRequest, callback func(response *GetSpanNamesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetSpanNamesResponse
-		var err error
-		defer close(result)
-		response, err = client.GetSpanNames(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetSpanNamesRequest is the request struct for api GetSpanNames
-type GetSpanNamesRequest struct {
-	*requests.RpcRequest
-	EndTime     requests.Integer `position:"Query" name:"EndTime"`
-	ServiceName string           `position:"Query" name:"ServiceName"`
-	StartTime   requests.Integer `position:"Query" name:"StartTime"`
-}
-
-// GetSpanNamesResponse is the response struct for api GetSpanNames
-type GetSpanNamesResponse struct {
-	*responses.BaseResponse
-	RequestId string             `json:"RequestId" xml:"RequestId"`
-	Data      DataInGetSpanNames `json:"Data" xml:"Data"`
-}
-
-// CreateGetSpanNamesRequest creates a request to invoke GetSpanNames API
-func CreateGetSpanNamesRequest() (request *GetSpanNamesRequest) {
-	request = &GetSpanNamesRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetSpanNames", "", "")
-	return
-}
-
-// CreateGetSpanNamesResponse creates a response to parse from GetSpanNames response
-func CreateGetSpanNamesResponse() (response *GetSpanNamesResponse) {
-	response = &GetSpanNamesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 107
services/arms/get_tag_key.go

@@ -1,107 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetTagKey invokes the arms.GetTagKey API synchronously
-// api document: https://help.aliyun.com/api/arms/gettagkey.html
-func (client *Client) GetTagKey(request *GetTagKeyRequest) (response *GetTagKeyResponse, err error) {
-	response = CreateGetTagKeyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTagKeyWithChan invokes the arms.GetTagKey API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettagkey.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTagKeyWithChan(request *GetTagKeyRequest) (<-chan *GetTagKeyResponse, <-chan error) {
-	responseChan := make(chan *GetTagKeyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetTagKey(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTagKeyWithCallback invokes the arms.GetTagKey API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettagkey.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTagKeyWithCallback(request *GetTagKeyRequest, callback func(response *GetTagKeyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTagKeyResponse
-		var err error
-		defer close(result)
-		response, err = client.GetTagKey(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTagKeyRequest is the request struct for api GetTagKey
-type GetTagKeyRequest struct {
-	*requests.RpcRequest
-	EndTime     requests.Integer `position:"Query" name:"EndTime"`
-	ServiceName string           `position:"Query" name:"ServiceName"`
-	StartTime   requests.Integer `position:"Query" name:"StartTime"`
-	SpanName    string           `position:"Query" name:"SpanName"`
-}
-
-// GetTagKeyResponse is the response struct for api GetTagKey
-type GetTagKeyResponse struct {
-	*responses.BaseResponse
-	RequestId string          `json:"RequestId" xml:"RequestId"`
-	Data      DataInGetTagKey `json:"Data" xml:"Data"`
-}
-
-// CreateGetTagKeyRequest creates a request to invoke GetTagKey API
-func CreateGetTagKeyRequest() (request *GetTagKeyRequest) {
-	request = &GetTagKeyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetTagKey", "", "")
-	return
-}
-
-// CreateGetTagKeyResponse creates a response to parse from GetTagKey response
-func CreateGetTagKeyResponse() (response *GetTagKeyResponse) {
-	response = &GetTagKeyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 108
services/arms/get_tag_val.go

@@ -1,108 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetTagVal invokes the arms.GetTagVal API synchronously
-// api document: https://help.aliyun.com/api/arms/gettagval.html
-func (client *Client) GetTagVal(request *GetTagValRequest) (response *GetTagValResponse, err error) {
-	response = CreateGetTagValResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTagValWithChan invokes the arms.GetTagVal API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettagval.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTagValWithChan(request *GetTagValRequest) (<-chan *GetTagValResponse, <-chan error) {
-	responseChan := make(chan *GetTagValResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetTagVal(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTagValWithCallback invokes the arms.GetTagVal API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettagval.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTagValWithCallback(request *GetTagValRequest, callback func(response *GetTagValResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTagValResponse
-		var err error
-		defer close(result)
-		response, err = client.GetTagVal(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTagValRequest is the request struct for api GetTagVal
-type GetTagValRequest struct {
-	*requests.RpcRequest
-	EndTime     requests.Integer `position:"Query" name:"EndTime"`
-	ServiceName string           `position:"Query" name:"ServiceName"`
-	StartTime   requests.Integer `position:"Query" name:"StartTime"`
-	TagKey      string           `position:"Query" name:"TagKey"`
-	SpanName    string           `position:"Query" name:"SpanName"`
-}
-
-// GetTagValResponse is the response struct for api GetTagVal
-type GetTagValResponse struct {
-	*responses.BaseResponse
-	RequestId string          `json:"RequestId" xml:"RequestId"`
-	Data      DataInGetTagVal `json:"Data" xml:"Data"`
-}
-
-// CreateGetTagValRequest creates a request to invoke GetTagVal API
-func CreateGetTagValRequest() (request *GetTagValRequest) {
-	request = &GetTagValRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetTagVal", "", "")
-	return
-}
-
-// CreateGetTagValResponse creates a response to parse from GetTagVal response
-func CreateGetTagValResponse() (response *GetTagValResponse) {
-	response = &GetTagValResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 104
services/arms/get_token.go

@@ -1,104 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetToken invokes the arms.GetToken API synchronously
-// api document: https://help.aliyun.com/api/arms/gettoken.html
-func (client *Client) GetToken(request *GetTokenRequest) (response *GetTokenResponse, err error) {
-	response = CreateGetTokenResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTokenWithChan invokes the arms.GetToken API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettoken.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTokenWithChan(request *GetTokenRequest) (<-chan *GetTokenResponse, <-chan error) {
-	responseChan := make(chan *GetTokenResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetToken(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTokenWithCallback invokes the arms.GetToken API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettoken.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTokenWithCallback(request *GetTokenRequest, callback func(response *GetTokenResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTokenResponse
-		var err error
-		defer close(result)
-		response, err = client.GetToken(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTokenRequest is the request struct for api GetToken
-type GetTokenRequest struct {
-	*requests.RpcRequest
-	AppType string `position:"Query" name:"AppType"`
-}
-
-// GetTokenResponse is the response struct for api GetToken
-type GetTokenResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      Data   `json:"Data" xml:"Data"`
-}
-
-// CreateGetTokenRequest creates a request to invoke GetToken API
-func CreateGetTokenRequest() (request *GetTokenRequest) {
-	request = &GetTokenRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetToken", "", "")
-	return
-}
-
-// CreateGetTokenResponse creates a response to parse from GetToken response
-func CreateGetTokenResponse() (response *GetTokenResponse) {
-	response = &GetTokenResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 105
services/arms/get_trace.go

@@ -1,105 +0,0 @@
-package arms
-
-//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"
-)
-
-// GetTrace invokes the arms.GetTrace API synchronously
-// api document: https://help.aliyun.com/api/arms/gettrace.html
-func (client *Client) GetTrace(request *GetTraceRequest) (response *GetTraceResponse, err error) {
-	response = CreateGetTraceResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTraceWithChan invokes the arms.GetTrace API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettrace.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTraceWithChan(request *GetTraceRequest) (<-chan *GetTraceResponse, <-chan error) {
-	responseChan := make(chan *GetTraceResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetTrace(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTraceWithCallback invokes the arms.GetTrace API asynchronously
-// api document: https://help.aliyun.com/api/arms/gettrace.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTraceWithCallback(request *GetTraceRequest, callback func(response *GetTraceResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTraceResponse
-		var err error
-		defer close(result)
-		response, err = client.GetTrace(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTraceRequest is the request struct for api GetTrace
-type GetTraceRequest struct {
-	*requests.RpcRequest
-	TraceID string `position:"Query" name:"TraceID"`
-	AppType string `position:"Query" name:"AppType"`
-}
-
-// GetTraceResponse is the response struct for api GetTrace
-type GetTraceResponse struct {
-	*responses.BaseResponse
-	RequestId string         `json:"RequestId" xml:"RequestId"`
-	Data      DataInGetTrace `json:"Data" xml:"Data"`
-}
-
-// CreateGetTraceRequest creates a request to invoke GetTrace API
-func CreateGetTraceRequest() (request *GetTraceRequest) {
-	request = &GetTraceRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "GetTrace", "", "")
-	return
-}
-
-// CreateGetTraceResponse creates a response to parse from GetTrace response
-func CreateGetTraceResponse() (response *GetTraceResponse) {
-	response = &GetTraceResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 5 - 4
services/arms/import_app_alert_rules.go

@@ -76,10 +76,11 @@ func (client *Client) ImportAppAlertRulesWithCallback(request *ImportAppAlertRul
 // ImportAppAlertRulesRequest is the request struct for api ImportAppAlertRules
 type ImportAppAlertRulesRequest struct {
 	*requests.RpcRequest
-	IsAutoStart     requests.Boolean `position:"Query" name:"IsAutoStart"`
-	ContactGroupIds string           `position:"Query" name:"ContactGroupIds"`
-	Pids            string           `position:"Query" name:"Pids"`
-	TemplateAlertId string           `position:"Query" name:"TemplateAlertId"`
+	IsAutoStart         requests.Boolean `position:"Query" name:"IsAutoStart"`
+	ContactGroupIds     string           `position:"Query" name:"ContactGroupIds"`
+	Pids                string           `position:"Query" name:"Pids"`
+	TemplageAlertConfig string           `position:"Query" name:"TemplageAlertConfig"`
+	TemplateAlertId     string           `position:"Query" name:"TemplateAlertId"`
 }
 
 // ImportAppAlertRulesResponse is the response struct for api ImportAppAlertRules

+ 0 - 120
services/arms/metric_query.go

@@ -1,120 +0,0 @@
-package arms
-
-//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"
-)
-
-// MetricQuery invokes the arms.MetricQuery API synchronously
-// api document: https://help.aliyun.com/api/arms/metricquery.html
-func (client *Client) MetricQuery(request *MetricQueryRequest) (response *MetricQueryResponse, err error) {
-	response = CreateMetricQueryResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// MetricQueryWithChan invokes the arms.MetricQuery API asynchronously
-// api document: https://help.aliyun.com/api/arms/metricquery.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) MetricQueryWithChan(request *MetricQueryRequest) (<-chan *MetricQueryResponse, <-chan error) {
-	responseChan := make(chan *MetricQueryResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.MetricQuery(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// MetricQueryWithCallback invokes the arms.MetricQuery API asynchronously
-// api document: https://help.aliyun.com/api/arms/metricquery.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) MetricQueryWithCallback(request *MetricQueryRequest, callback func(response *MetricQueryResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *MetricQueryResponse
-		var err error
-		defer close(result)
-		response, err = client.MetricQuery(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// MetricQueryRequest is the request struct for api MetricQuery
-type MetricQueryRequest struct {
-	*requests.RpcRequest
-	EndTime        requests.Integer      `position:"Query" name:"EndTime"`
-	OrderBy        string                `position:"Query" name:"OrderBy"`
-	Filters        *[]MetricQueryFilters `position:"Query" name:"Filters"  type:"Repeated"`
-	StartTime      requests.Integer      `position:"Query" name:"StartTime"`
-	IintervalInSec requests.Integer      `position:"Query" name:"IintervalInSec"`
-	Measures       *[]string             `position:"Query" name:"Measures"  type:"Repeated"`
-	Metric         string                `position:"Query" name:"Metric"`
-	SecurityToken  string                `position:"Query" name:"SecurityToken"`
-	Limit          requests.Integer      `position:"Query" name:"Limit"`
-	Dimensions     *[]string             `position:"Query" name:"Dimensions"  type:"Repeated"`
-	Order          string                `position:"Query" name:"Order"`
-}
-
-// MetricQueryFilters is a repeated param struct in MetricQueryRequest
-type MetricQueryFilters struct {
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// MetricQueryResponse is the response struct for api MetricQuery
-type MetricQueryResponse struct {
-	*responses.BaseResponse
-	Data      string `json:"Data" xml:"Data"`
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateMetricQueryRequest creates a request to invoke MetricQuery API
-func CreateMetricQueryRequest() (request *MetricQueryRequest) {
-	request = &MetricQueryRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "MetricQuery", "", "")
-	return
-}
-
-// CreateMetricQueryResponse creates a response to parse from MetricQuery response
-func CreateMetricQueryResponse() (response *MetricQueryResponse) {
-	response = &MetricQueryResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 117
services/arms/search_trace_count.go

@@ -1,117 +0,0 @@
-package arms
-
-//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"
-)
-
-// SearchTraceCount invokes the arms.SearchTraceCount API synchronously
-// api document: https://help.aliyun.com/api/arms/searchtracecount.html
-func (client *Client) SearchTraceCount(request *SearchTraceCountRequest) (response *SearchTraceCountResponse, err error) {
-	response = CreateSearchTraceCountResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SearchTraceCountWithChan invokes the arms.SearchTraceCount API asynchronously
-// api document: https://help.aliyun.com/api/arms/searchtracecount.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SearchTraceCountWithChan(request *SearchTraceCountRequest) (<-chan *SearchTraceCountResponse, <-chan error) {
-	responseChan := make(chan *SearchTraceCountResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SearchTraceCount(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SearchTraceCountWithCallback invokes the arms.SearchTraceCount API asynchronously
-// api document: https://help.aliyun.com/api/arms/searchtracecount.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SearchTraceCountWithCallback(request *SearchTraceCountRequest, callback func(response *SearchTraceCountResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SearchTraceCountResponse
-		var err error
-		defer close(result)
-		response, err = client.SearchTraceCount(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SearchTraceCountRequest is the request struct for api SearchTraceCount
-type SearchTraceCountRequest struct {
-	*requests.RpcRequest
-	ServiceIp     string                 `position:"Query" name:"ServiceIp"`
-	OperationName string                 `position:"Query" name:"OperationName"`
-	AppType       string                 `position:"Query" name:"AppType"`
-	EndTime       requests.Integer       `position:"Query" name:"EndTime"`
-	ServiceName   string                 `position:"Query" name:"ServiceName"`
-	StartTime     requests.Integer       `position:"Query" name:"StartTime"`
-	Tag           *[]SearchTraceCountTag `position:"Query" name:"Tag"  type:"Repeated"`
-	MinDuration   requests.Integer       `position:"Query" name:"MinDuration"`
-}
-
-// SearchTraceCountTag is a repeated param struct in SearchTraceCountRequest
-type SearchTraceCountTag struct {
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// SearchTraceCountResponse is the response struct for api SearchTraceCount
-type SearchTraceCountResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      Data   `json:"Data" xml:"Data"`
-}
-
-// CreateSearchTraceCountRequest creates a request to invoke SearchTraceCount API
-func CreateSearchTraceCountRequest() (request *SearchTraceCountRequest) {
-	request = &SearchTraceCountRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "SearchTraceCount", "", "")
-	return
-}
-
-// CreateSearchTraceCountResponse creates a response to parse from SearchTraceCount response
-func CreateSearchTraceCountResponse() (response *SearchTraceCountResponse) {
-	response = &SearchTraceCountResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 120
services/arms/search_traces.go

@@ -1,120 +0,0 @@
-package arms
-
-//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"
-)
-
-// SearchTraces invokes the arms.SearchTraces API synchronously
-// api document: https://help.aliyun.com/api/arms/searchtraces.html
-func (client *Client) SearchTraces(request *SearchTracesRequest) (response *SearchTracesResponse, err error) {
-	response = CreateSearchTracesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// SearchTracesWithChan invokes the arms.SearchTraces API asynchronously
-// api document: https://help.aliyun.com/api/arms/searchtraces.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SearchTracesWithChan(request *SearchTracesRequest) (<-chan *SearchTracesResponse, <-chan error) {
-	responseChan := make(chan *SearchTracesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.SearchTraces(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// SearchTracesWithCallback invokes the arms.SearchTraces API asynchronously
-// api document: https://help.aliyun.com/api/arms/searchtraces.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) SearchTracesWithCallback(request *SearchTracesRequest, callback func(response *SearchTracesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *SearchTracesResponse
-		var err error
-		defer close(result)
-		response, err = client.SearchTraces(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// SearchTracesRequest is the request struct for api SearchTraces
-type SearchTracesRequest struct {
-	*requests.RpcRequest
-	ServiceIp     string             `position:"Query" name:"ServiceIp"`
-	OperationName string             `position:"Query" name:"OperationName"`
-	AppType       string             `position:"Query" name:"AppType"`
-	PageSize      requests.Integer   `position:"Query" name:"PageSize"`
-	EndTime       requests.Integer   `position:"Query" name:"EndTime"`
-	ServiceName   string             `position:"Query" name:"ServiceName"`
-	PageIndex     requests.Integer   `position:"Query" name:"PageIndex"`
-	StartTime     requests.Integer   `position:"Query" name:"StartTime"`
-	Tag           *[]SearchTracesTag `position:"Query" name:"Tag"  type:"Repeated"`
-	Reverse       requests.Boolean   `position:"Query" name:"Reverse"`
-	MinDuration   requests.Integer   `position:"Query" name:"MinDuration"`
-}
-
-// SearchTracesTag is a repeated param struct in SearchTracesRequest
-type SearchTracesTag struct {
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// SearchTracesResponse is the response struct for api SearchTraces
-type SearchTracesResponse struct {
-	*responses.BaseResponse
-	RequestId string             `json:"RequestId" xml:"RequestId"`
-	Data      DataInSearchTraces `json:"Data" xml:"Data"`
-}
-
-// CreateSearchTracesRequest creates a request to invoke SearchTraces API
-func CreateSearchTracesRequest() (request *SearchTracesRequest) {
-	request = &SearchTracesRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("ARMS", "2019-02-19", "SearchTraces", "", "")
-	return
-}
-
-// CreateSearchTracesResponse creates a response to parse from SearchTraces response
-func CreateSearchTracesResponse() (response *SearchTracesResponse) {
-	response = &SearchTracesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 31
services/arms/struct_call_chain_info.go

@@ -1,31 +0,0 @@
-package arms
-
-//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.
-
-// CallChainInfo is a nested struct in arms response
-type CallChainInfo struct {
-	TraceID       string                 `json:"TraceID" xml:"TraceID"`
-	OperationName string                 `json:"OperationName" xml:"OperationName"`
-	Duration      int64                  `json:"Duration" xml:"Duration"`
-	ServiceName   string                 `json:"ServiceName" xml:"ServiceName"`
-	ServiceIp     string                 `json:"ServiceIp" xml:"ServiceIp"`
-	Timestamp     int64                  `json:"Timestamp" xml:"Timestamp"`
-	RpcId         string                 `json:"RpcId" xml:"RpcId"`
-	ResultCode    string                 `json:"ResultCode" xml:"ResultCode"`
-	HaveStack     bool                   `json:"HaveStack" xml:"HaveStack"`
-	TagEntryList  TagEntryListInGetTrace `json:"TagEntryList" xml:"TagEntryList"`
-	LogEventList  LogEventList           `json:"LogEventList" xml:"LogEventList"`
-}

+ 0 - 27
services/arms/struct_data.go

@@ -1,27 +0,0 @@
-package arms
-
-//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.
-
-// Data is a nested struct in arms response
-type Data struct {
-	Domain         string   `json:"Domain" xml:"Domain"`
-	LicenseKey     string   `json:"LicenseKey" xml:"LicenseKey"`
-	InternalDomain string   `json:"InternalDomain" xml:"InternalDomain"`
-	Pid            string   `json:"Pid" xml:"Pid"`
-	Count          int64    `json:"Count" xml:"Count"`
-	Services       Services `json:"Services" xml:"Services"`
-	Details        Details  `json:"Details" xml:"Details"`
-}

+ 0 - 21
services/arms/struct_data_in_get_ip_or_hosts.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// DataInGetIpOrHosts is a nested struct in arms response
-type DataInGetIpOrHosts struct {
-	Data []string `json:"Data" xml:"Data"`
-}

+ 0 - 21
services/arms/struct_data_in_get_span_names.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// DataInGetSpanNames is a nested struct in arms response
-type DataInGetSpanNames struct {
-	Data []string `json:"Data" xml:"Data"`
-}

+ 0 - 21
services/arms/struct_data_in_get_tag_key.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// DataInGetTagKey is a nested struct in arms response
-type DataInGetTagKey struct {
-	Data []string `json:"Data" xml:"Data"`
-}

+ 0 - 21
services/arms/struct_data_in_get_tag_val.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// DataInGetTagVal is a nested struct in arms response
-type DataInGetTagVal struct {
-	Data []string `json:"Data" xml:"Data"`
-}

+ 0 - 21
services/arms/struct_data_in_get_trace.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// DataInGetTrace is a nested struct in arms response
-type DataInGetTrace struct {
-	CallChainInfo []CallChainInfo `json:"CallChainInfo" xml:"CallChainInfo"`
-}

+ 0 - 21
services/arms/struct_data_in_search_traces.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// DataInSearchTraces is a nested struct in arms response
-type DataInSearchTraces struct {
-	TraceInfo []TraceInfo `json:"TraceInfo" xml:"TraceInfo"`
-}

+ 0 - 21
services/arms/struct_details.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// Details is a nested struct in arms response
-type Details struct {
-	DetailsItem []DetailsItem `json:"DetailsItem" xml:"DetailsItem"`
-}

+ 0 - 23
services/arms/struct_details_item.go

@@ -1,23 +0,0 @@
-package arms
-
-//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.
-
-// DetailsItem is a nested struct in arms response
-type DetailsItem struct {
-	ServiceName string `json:"ServiceName" xml:"ServiceName"`
-	Pid         string `json:"Pid" xml:"Pid"`
-	RegionId    string `json:"RegionId" xml:"RegionId"`
-}

+ 0 - 22
services/arms/struct_log_event.go

@@ -1,22 +0,0 @@
-package arms
-
-//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.
-
-// LogEvent is a nested struct in arms response
-type LogEvent struct {
-	Timestamp    int64                  `json:"Timestamp" xml:"Timestamp"`
-	TagEntryList TagEntryListInGetTrace `json:"TagEntryList" xml:"TagEntryList"`
-}

+ 0 - 21
services/arms/struct_log_event_list.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// LogEventList is a nested struct in arms response
-type LogEventList struct {
-	LogEvent []LogEvent `json:"LogEvent" xml:"LogEvent"`
-}

+ 0 - 21
services/arms/struct_services.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// Services is a nested struct in arms response
-type Services struct {
-	Services []string `json:"Services" xml:"Services"`
-}

+ 0 - 22
services/arms/struct_tag_entry.go

@@ -1,22 +0,0 @@
-package arms
-
-//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.
-
-// TagEntry is a nested struct in arms response
-type TagEntry struct {
-	Key   string `json:"Key" xml:"Key"`
-	Value string `json:"Value" xml:"Value"`
-}

+ 0 - 21
services/arms/struct_tag_entry_list_in_get_trace.go

@@ -1,21 +0,0 @@
-package arms
-
-//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.
-
-// TagEntryListInGetTrace is a nested struct in arms response
-type TagEntryListInGetTrace struct {
-	TagEntry []TagEntry `json:"TagEntry" xml:"TagEntry"`
-}

+ 0 - 26
services/arms/struct_trace_info.go

@@ -1,26 +0,0 @@
-package arms
-
-//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.
-
-// TraceInfo is a nested struct in arms response
-type TraceInfo struct {
-	TraceID       string `json:"TraceID" xml:"TraceID"`
-	OperationName string `json:"OperationName" xml:"OperationName"`
-	Duration      int    `json:"Duration" xml:"Duration"`
-	ServiceName   string `json:"ServiceName" xml:"ServiceName"`
-	ServiceIp     string `json:"ServiceIp" xml:"ServiceIp"`
-	Timestamp     int64  `json:"Timestamp" xml:"Timestamp"`
-}