arms

package
v0.0.0-...-66ec9f1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 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) CreateApp

func (client *Client) CreateApp(request *CreateAppRequest) (response *CreateAppResponse, err error)

CreateApp invokes the arms.CreateApp API synchronously api document: https://help.aliyun.com/api/arms/createapp.html

func (*Client) CreateAppWithCallback

func (client *Client) CreateAppWithCallback(request *CreateAppRequest, callback func(response *CreateAppResponse, err error)) <-chan int

CreateAppWithCallback invokes the arms.CreateApp API asynchronously api document: https://help.aliyun.com/api/arms/createapp.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateAppWithChan

func (client *Client) CreateAppWithChan(request *CreateAppRequest) (<-chan *CreateAppResponse, <-chan error)

CreateAppWithChan invokes the arms.CreateApp API asynchronously api document: https://help.aliyun.com/api/arms/createapp.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteApp

func (client *Client) DeleteApp(request *DeleteAppRequest) (response *DeleteAppResponse, err error)

DeleteApp invokes the arms.DeleteApp API synchronously api document: https://help.aliyun.com/api/arms/deleteapp.html

func (*Client) DeleteAppWithCallback

func (client *Client) DeleteAppWithCallback(request *DeleteAppRequest, callback func(response *DeleteAppResponse, err error)) <-chan int

DeleteAppWithCallback invokes the arms.DeleteApp API asynchronously api document: https://help.aliyun.com/api/arms/deleteapp.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DeleteAppWithChan

func (client *Client) DeleteAppWithChan(request *DeleteAppRequest) (<-chan *DeleteAppResponse, <-chan error)

DeleteAppWithChan invokes the arms.DeleteApp API asynchronously api document: https://help.aliyun.com/api/arms/deleteapp.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

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

type CreateAppRequest

type CreateAppRequest struct {
	*requests.RpcRequest
	AppName string `position:"Query" name:"AppName"`
	AppId   string `position:"Query" name:"AppId"`
	Source  string `position:"Query" name:"Source"`
	Type    string `position:"Query" name:"Type"`
	Config  string `position:"Query" name:"Config"`
}

CreateAppRequest is the request struct for api CreateApp

func CreateCreateAppRequest

func CreateCreateAppRequest() (request *CreateAppRequest)

CreateCreateAppRequest creates a request to invoke CreateApp API

type CreateAppResponse

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

CreateAppResponse is the response struct for api CreateApp

func CreateCreateAppResponse

func CreateCreateAppResponse() (response *CreateAppResponse)

CreateCreateAppResponse creates a response to parse from CreateApp response

type DeleteAppRequest

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

DeleteAppRequest is the request struct for api DeleteApp

func CreateDeleteAppRequest

func CreateDeleteAppRequest() (request *DeleteAppRequest)

CreateDeleteAppRequest creates a request to invoke DeleteApp API

type DeleteAppResponse

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

DeleteAppResponse is the response struct for api DeleteApp

func CreateDeleteAppResponse

func CreateDeleteAppResponse() (response *DeleteAppResponse)

CreateDeleteAppResponse creates a response to parse from DeleteApp 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
	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"`
}

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

Jump to

Keyboard shortcuts

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