arms

package
v0.0.0-...-dd20015 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARMSQueryDataSetDimensions

type ARMSQueryDataSetDimensions struct {
	Type  string `name:"Type"`
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

ARMSQueryDataSetDimensions is a repeated param struct in ARMSQueryDataSetRequest

type ARMSQueryDataSetOptionalDims

type ARMSQueryDataSetOptionalDims struct {
	Type  string `name:"Type"`
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

ARMSQueryDataSetOptionalDims is a repeated param struct in ARMSQueryDataSetRequest

type ARMSQueryDataSetRequest

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"`
}

ARMSQueryDataSetRequest is the request struct for api ARMSQueryDataSet

func CreateARMSQueryDataSetRequest

func CreateARMSQueryDataSetRequest() (request *ARMSQueryDataSetRequest)

CreateARMSQueryDataSetRequest creates a request to invoke ARMSQueryDataSet API

type ARMSQueryDataSetRequiredDims

type ARMSQueryDataSetRequiredDims struct {
	Type  string `name:"Type"`
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

ARMSQueryDataSetRequiredDims is a repeated param struct in ARMSQueryDataSetRequest

type ARMSQueryDataSetResponse

type ARMSQueryDataSetResponse struct {
	*responses.BaseResponse
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ARMSQueryDataSetResponse is the response struct for api ARMSQueryDataSet

func CreateARMSQueryDataSetResponse

func CreateARMSQueryDataSetResponse() (response *ARMSQueryDataSetResponse)

CreateARMSQueryDataSetResponse creates a response to parse from ARMSQueryDataSet response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) ARMSQueryDataSet

func (client *Client) ARMSQueryDataSet(request *ARMSQueryDataSetRequest) (response *ARMSQueryDataSetResponse, err error)

ARMSQueryDataSet invokes the arms.ARMSQueryDataSet API synchronously api document: https://help.aliyun.com/api/arms/armsquerydataset.html

func (*Client) ARMSQueryDataSetWithCallback

func (client *Client) ARMSQueryDataSetWithCallback(request *ARMSQueryDataSetRequest, callback func(response *ARMSQueryDataSetResponse, err error)) <-chan int

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) ARMSQueryDataSetWithChan

func (client *Client) ARMSQueryDataSetWithChan(request *ARMSQueryDataSetRequest) (<-chan *ARMSQueryDataSetResponse, <-chan error)

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) DeleteTraceApp

func (client *Client) DeleteTraceApp(request *DeleteTraceAppRequest) (response *DeleteTraceAppResponse, err error)

DeleteTraceApp invokes the arms.DeleteTraceApp API synchronously

func (*Client) DeleteTraceAppWithCallback

func (client *Client) DeleteTraceAppWithCallback(request *DeleteTraceAppRequest, callback func(response *DeleteTraceAppResponse, err error)) <-chan int

DeleteTraceAppWithCallback invokes the arms.DeleteTraceApp API asynchronously

func (*Client) DeleteTraceAppWithChan

func (client *Client) DeleteTraceAppWithChan(request *DeleteTraceAppRequest) (<-chan *DeleteTraceAppResponse, <-chan error)

DeleteTraceAppWithChan invokes the arms.DeleteTraceApp API asynchronously

func (*Client) DescribeTraceLicenseKey

func (client *Client) DescribeTraceLicenseKey(request *DescribeTraceLicenseKeyRequest) (response *DescribeTraceLicenseKeyResponse, err error)

DescribeTraceLicenseKey invokes the arms.DescribeTraceLicenseKey API synchronously

func (*Client) DescribeTraceLicenseKeyWithCallback

func (client *Client) DescribeTraceLicenseKeyWithCallback(request *DescribeTraceLicenseKeyRequest, callback func(response *DescribeTraceLicenseKeyResponse, err error)) <-chan int

DescribeTraceLicenseKeyWithCallback invokes the arms.DescribeTraceLicenseKey API asynchronously

func (*Client) DescribeTraceLicenseKeyWithChan

func (client *Client) DescribeTraceLicenseKeyWithChan(request *DescribeTraceLicenseKeyRequest) (<-chan *DescribeTraceLicenseKeyResponse, <-chan error)

DescribeTraceLicenseKeyWithChan invokes the arms.DescribeTraceLicenseKey API asynchronously

func (*Client) ListTraceApps

func (client *Client) ListTraceApps(request *ListTraceAppsRequest) (response *ListTraceAppsResponse, err error)

ListTraceApps invokes the arms.ListTraceApps API synchronously

func (*Client) ListTraceAppsWithCallback

func (client *Client) ListTraceAppsWithCallback(request *ListTraceAppsRequest, callback func(response *ListTraceAppsResponse, err error)) <-chan int

ListTraceAppsWithCallback invokes the arms.ListTraceApps API asynchronously

func (*Client) ListTraceAppsWithChan

func (client *Client) ListTraceAppsWithChan(request *ListTraceAppsRequest) (<-chan *ListTraceAppsResponse, <-chan error)

ListTraceAppsWithChan invokes the arms.ListTraceApps API asynchronously

func (*Client) MetricQuery

func (client *Client) MetricQuery(request *MetricQueryRequest) (response *MetricQueryResponse, err error)

MetricQuery invokes the arms.MetricQuery API synchronously api document: https://help.aliyun.com/api/arms/metricquery.html

func (*Client) MetricQueryWithCallback

func (client *Client) MetricQueryWithCallback(request *MetricQueryRequest, callback func(response *MetricQueryResponse, err error)) <-chan int

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) MetricQueryWithChan

func (client *Client) MetricQueryWithChan(request *MetricQueryRequest) (<-chan *MetricQueryResponse, <-chan error)

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) QueryMetric

func (client *Client) QueryMetric(request *QueryMetricRequest) (response *QueryMetricResponse, err error)

QueryMetric invokes the arms.QueryMetric API synchronously

func (*Client) QueryMetricByPage

func (client *Client) QueryMetricByPage(request *QueryMetricByPageRequest) (response *QueryMetricByPageResponse, err error)

QueryMetricByPage invokes the arms.QueryMetricByPage API synchronously

func (*Client) QueryMetricByPageWithCallback

func (client *Client) QueryMetricByPageWithCallback(request *QueryMetricByPageRequest, callback func(response *QueryMetricByPageResponse, err error)) <-chan int

QueryMetricByPageWithCallback invokes the arms.QueryMetricByPage API asynchronously

func (*Client) QueryMetricByPageWithChan

func (client *Client) QueryMetricByPageWithChan(request *QueryMetricByPageRequest) (<-chan *QueryMetricByPageResponse, <-chan error)

QueryMetricByPageWithChan invokes the arms.QueryMetricByPage API asynchronously

func (*Client) QueryMetricWithCallback

func (client *Client) QueryMetricWithCallback(request *QueryMetricRequest, callback func(response *QueryMetricResponse, err error)) <-chan int

QueryMetricWithCallback invokes the arms.QueryMetric API asynchronously

func (*Client) QueryMetricWithChan

func (client *Client) QueryMetricWithChan(request *QueryMetricRequest) (<-chan *QueryMetricResponse, <-chan error)

QueryMetricWithChan invokes the arms.QueryMetric API asynchronously

type DataInQueryMetricByPage

type DataInQueryMetricByPage struct {
	Total    int                      `json:"Total" xml:"Total"`
	Page     int                      `json:"Page" xml:"Page"`
	PageSize int                      `json:"PageSize" xml:"PageSize"`
	Items    []map[string]interface{} `json:"Items" xml:"Items"`
}

DataInQueryMetricByPage is a nested struct in arms response

type DeleteTraceAppRequest

type DeleteTraceAppRequest struct {
	*requests.RpcRequest
	AppId string `position:"Query" name:"AppId"`
	Pid   string `position:"Query" name:"Pid"`
	Type  string `position:"Query" name:"Type"`
}

DeleteTraceAppRequest is the request struct for api DeleteTraceApp

func CreateDeleteTraceAppRequest

func CreateDeleteTraceAppRequest() (request *DeleteTraceAppRequest)

CreateDeleteTraceAppRequest creates a request to invoke DeleteTraceApp API

type DeleteTraceAppResponse

type DeleteTraceAppResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      string `json:"Data" xml:"Data"`
}

DeleteTraceAppResponse is the response struct for api DeleteTraceApp

func CreateDeleteTraceAppResponse

func CreateDeleteTraceAppResponse() (response *DeleteTraceAppResponse)

CreateDeleteTraceAppResponse creates a response to parse from DeleteTraceApp response

type DescribeTraceLicenseKeyRequest

type DescribeTraceLicenseKeyRequest struct {
	*requests.RpcRequest
}

DescribeTraceLicenseKeyRequest is the request struct for api DescribeTraceLicenseKey

func CreateDescribeTraceLicenseKeyRequest

func CreateDescribeTraceLicenseKeyRequest() (request *DescribeTraceLicenseKeyRequest)

CreateDescribeTraceLicenseKeyRequest creates a request to invoke DescribeTraceLicenseKey API

type DescribeTraceLicenseKeyResponse

type DescribeTraceLicenseKeyResponse struct {
	*responses.BaseResponse
	RequestId  string `json:"RequestId" xml:"RequestId"`
	LicenseKey string `json:"LicenseKey" xml:"LicenseKey"`
}

DescribeTraceLicenseKeyResponse is the response struct for api DescribeTraceLicenseKey

func CreateDescribeTraceLicenseKeyResponse

func CreateDescribeTraceLicenseKeyResponse() (response *DescribeTraceLicenseKeyResponse)

CreateDescribeTraceLicenseKeyResponse creates a response to parse from DescribeTraceLicenseKey response

type ListTraceAppsRequest

type ListTraceAppsRequest struct {
	*requests.RpcRequest
}

ListTraceAppsRequest is the request struct for api ListTraceApps

func CreateListTraceAppsRequest

func CreateListTraceAppsRequest() (request *ListTraceAppsRequest)

CreateListTraceAppsRequest creates a request to invoke ListTraceApps API

type ListTraceAppsResponse

type ListTraceAppsResponse struct {
	*responses.BaseResponse
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Success   bool       `json:"Success" xml:"Success"`
	Code      int        `json:"Code" xml:"Code"`
	Message   string     `json:"Message" xml:"Message"`
	TraceApps []TraceApp `json:"TraceApps" xml:"TraceApps"`
}

ListTraceAppsResponse is the response struct for api ListTraceApps

func CreateListTraceAppsResponse

func CreateListTraceAppsResponse() (response *ListTraceAppsResponse)

CreateListTraceAppsResponse creates a response to parse from ListTraceApps response

type MetricQueryFilters

type MetricQueryFilters struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

MetricQueryFilters is a repeated param struct in MetricQueryRequest

type MetricQueryRequest

type MetricQueryRequest struct {
	*requests.RpcRequest
	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"`
	EndTime        requests.Integer      `position:"Query" name:"EndTime"`
	OrderBy        string                `position:"Query" name:"OrderBy"`
	StartTime      requests.Integer      `position:"Query" name:"StartTime"`
	Filters        *[]MetricQueryFilters `position:"Query" name:"Filters"  type:"Repeated"`
	Dimensions     *[]string             `position:"Query" name:"Dimensions"  type:"Repeated"`
	Order          string                `position:"Query" name:"Order"`
}

MetricQueryRequest is the request struct for api MetricQuery

func CreateMetricQueryRequest

func CreateMetricQueryRequest() (request *MetricQueryRequest)

CreateMetricQueryRequest creates a request to invoke MetricQuery API

type MetricQueryResponse

type MetricQueryResponse struct {
	*responses.BaseResponse
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

MetricQueryResponse is the response struct for api MetricQuery

func CreateMetricQueryResponse

func CreateMetricQueryResponse() (response *MetricQueryResponse)

CreateMetricQueryResponse creates a response to parse from MetricQuery response

type QueryMetricByPageFilters

type QueryMetricByPageFilters struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

QueryMetricByPageFilters is a repeated param struct in QueryMetricByPageRequest

type QueryMetricByPageRequest

type QueryMetricByPageRequest struct {
	*requests.RpcRequest
	ConsistencyQueryStrategy string                      `position:"Query" name:"ConsistencyQueryStrategy"`
	EndTime                  requests.Integer            `position:"Query" name:"EndTime"`
	OrderBy                  string                      `position:"Query" name:"OrderBy"`
	CurrentPage              requests.Integer            `position:"Query" name:"CurrentPage"`
	StartTime                requests.Integer            `position:"Query" name:"StartTime"`
	Filters                  *[]QueryMetricByPageFilters `position:"Query" name:"Filters"  type:"Repeated"`
	ConsistencyDataKey       string                      `position:"Query" name:"ConsistencyDataKey"`
	ProxyUserId              string                      `position:"Query" name:"ProxyUserId"`
	Measures                 *[]string                   `position:"Query" name:"Measures"  type:"Repeated"`
	IntervalInSec            requests.Integer            `position:"Query" name:"IntervalInSec"`
	Metric                   string                      `position:"Query" name:"Metric"`
	PageSize                 requests.Integer            `position:"Query" name:"PageSize"`
	Dimensions               *[]string                   `position:"Query" name:"Dimensions"  type:"Repeated"`
	Order                    string                      `position:"Query" name:"Order"`
}

QueryMetricByPageRequest is the request struct for api QueryMetricByPage

func CreateQueryMetricByPageRequest

func CreateQueryMetricByPageRequest() (request *QueryMetricByPageRequest)

CreateQueryMetricByPageRequest creates a request to invoke QueryMetricByPage API

type QueryMetricByPageResponse

type QueryMetricByPageResponse struct {
	*responses.BaseResponse
	RequestId string                  `json:"RequestId" xml:"RequestId"`
	Code      string                  `json:"Code" xml:"Code"`
	Success   bool                    `json:"Success" xml:"Success"`
	Message   string                  `json:"Message" xml:"Message"`
	Data      DataInQueryMetricByPage `json:"Data" xml:"Data"`
}

QueryMetricByPageResponse is the response struct for api QueryMetricByPage

func CreateQueryMetricByPageResponse

func CreateQueryMetricByPageResponse() (response *QueryMetricByPageResponse)

CreateQueryMetricByPageResponse creates a response to parse from QueryMetricByPage response

type QueryMetricFilters

type QueryMetricFilters struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

QueryMetricFilters is a repeated param struct in QueryMetricRequest

type QueryMetricRequest

type QueryMetricRequest struct {
	*requests.RpcRequest
	ConsistencyQueryStrategy string                `position:"Query" name:"ConsistencyQueryStrategy"`
	EndTime                  requests.Integer      `position:"Query" name:"EndTime"`
	OrderBy                  string                `position:"Query" name:"OrderBy"`
	StartTime                requests.Integer      `position:"Query" name:"StartTime"`
	Filters                  *[]QueryMetricFilters `position:"Query" name:"Filters"  type:"Repeated"`
	ConsistencyDataKey       string                `position:"Query" name:"ConsistencyDataKey"`
	ProxyUserId              string                `position:"Query" name:"ProxyUserId"`
	Measures                 *[]string             `position:"Query" name:"Measures"  type:"Repeated"`
	IntervalInSec            requests.Integer      `position:"Query" name:"IntervalInSec"`
	Metric                   string                `position:"Query" name:"Metric"`
	Limit                    requests.Integer      `position:"Query" name:"Limit"`
	Dimensions               *[]string             `position:"Query" name:"Dimensions"  type:"Repeated"`
	Order                    string                `position:"Query" name:"Order"`
}

QueryMetricRequest is the request struct for api QueryMetric

func CreateQueryMetricRequest

func CreateQueryMetricRequest() (request *QueryMetricRequest)

CreateQueryMetricRequest creates a request to invoke QueryMetric API

type QueryMetricResponse

type QueryMetricResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      string `json:"Data" xml:"Data"`
}

QueryMetricResponse is the response struct for api QueryMetric

func CreateQueryMetricResponse

func CreateQueryMetricResponse() (response *QueryMetricResponse)

CreateQueryMetricResponse creates a response to parse from QueryMetric response

type TraceApp

type TraceApp struct {
	AppId      int64    `json:"AppId" xml:"AppId"`
	Show       bool     `json:"Show" xml:"Show"`
	RegionId   string   `json:"RegionId" xml:"RegionId"`
	UpdateTime int64    `json:"UpdateTime" xml:"UpdateTime"`
	Pid        string   `json:"Pid" xml:"Pid"`
	UserId     string   `json:"UserId" xml:"UserId"`
	CreateTime int64    `json:"CreateTime" xml:"CreateTime"`
	AppName    string   `json:"AppName" xml:"AppName"`
	Type       string   `json:"Type" xml:"Type"`
	Labels     []string `json:"Labels" xml:"Labels"`
}

TraceApp is a nested struct in arms response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL