zec

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	APIVersion = "2024-04-01"
	SERVICE    = "zec"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(config *common.Config, secretKeyId, secretKeyPassword string) (client *Client, err error)

func NewClientWithSecretKey

func NewClientWithSecretKey(secretKeyId, secretKeyPassword string) (client *Client, err error)

func (*Client) DescribeInstanceMonitorData

func (c *Client) DescribeInstanceMonitorData(request *DescribeInstanceMonitorDataRequest) (response *DescribeInstanceMonitorDataResponse, err error)

type DescribeInstanceMonitorDataRequest

type DescribeInstanceMonitorDataRequest struct {
	*common.BaseRequest

	//实例ID。
	InstanceId string `json:"instanceId,omitempty"`

	//指标类型。
	//INTERNET_INGRESS_BITS: 公网入向带宽,单位bps
	//INTERNET_EGRESS_BITS: 公网出向带宽,单位bps
	MetricType string `json:"metricType,omitempty"`

	//公网IP地址。
	//当存在多个IP时,需要指定对应网卡上的公网地址。该字段仅对下列指标有效。
	//INTERNET_INGRESS_BITS
	//INTERNET_EGRESS_BITS
	//INTERNET_INGRESS_PACKETS
	//INTERNET_EGRESS_PACKETS
	IpAddress string `json:"ipAddress,omitempty"`

	//查询开始时间。
	//按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
	StartTime string `json:"startTime,omitempty"`

	//查询结束时间。
	//按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
	EndTime string `json:"endTime,omitempty"`
}

func NewDescribeInstanceMonitorDataRequest

func NewDescribeInstanceMonitorDataRequest() (request *DescribeInstanceMonitorDataRequest)

type DescribeInstanceMonitorDataResponse

type DescribeInstanceMonitorDataResponse struct {
	*common.BaseResponse

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 requestId。
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeInstanceMonitorDataResponseParam `json:"response"`
}

func NewDescribeInstanceMonitorDataResponse

func NewDescribeInstanceMonitorDataResponse() (response *DescribeInstanceMonitorDataResponse)

type DescribeInstanceMonitorDataResponseParam

type DescribeInstanceMonitorDataResponseParam struct {
	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 requestId。
	RequestId string `json:"requestId,omitempty"`

	// 指标数据的最大值,单位取决于指标类型。
	MaxValue float64 `json:"maxValue,omitempty"`

	// 指标数据的平均值,单位取决于指标类型。
	AvgValue float64 `json:"avgValue,omitempty"`

	// 指标数据列表。
	DataList []*MetricValue `json:"dataList,omitempty"`
}

type MetricValue

type MetricValue struct {
	// 监控指标值
	Value float64 `json:"value,omitempty"`

	// 数据时间戳,单位秒
	TimeInSecond int `json:"timeInSecond,omitempty"`
}

Jump to

Keyboard shortcuts

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