umon

package
v0.0.0-...-98cde96 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: LGPL-3.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 GetMetricOverviewRequest

type GetMetricOverviewRequest struct {
	request.CommonBase

	// 资源类型
	ResourceType *string `required:"true"`

	// 指标名称(不同ResourceType对应不同的MetricName)
	MetricName []string `required:"true"`

	// 分页显示起始偏移位置,列表操作则指定
	Offset *int `required:"true"`

	// 分页显示数量,列表操作则指定
	Limit *int `required:"true"`
}

type GetMetricOverviewResponse

type GetMetricOverviewResponse struct {
	response.CommonBase

	ResourceType string
	RefreshTime  int64
	TotalCount   int
	DataSet      []interface{}
}

type UMonClient

type UMonClient struct {
	*ucloud.Client
}

UMonClient is the client of UMon

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UMonClient

NewClient will return a instance of UMonClient

func (*UMonClient) GetMetricOverview

func (c *UMonClient) GetMetricOverview(req *GetMetricOverviewRequest) (*GetMetricOverviewResponse, error)

GetMetric - 获取监控数据

func (*UMonClient) NewGetMetricOverviewRequest

func (c *UMonClient) NewGetMetricOverviewRequest() *GetMetricOverviewRequest

Jump to

Keyboard shortcuts

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