umon

package
v0.22.151 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribeResourceMetricRequest

type DescribeResourceMetricRequest struct {
	request.CommonBase

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

DescribeResourceMetricRequest is request schema for DescribeResourceMetric action

type DescribeResourceMetricResponse

type DescribeResourceMetricResponse struct {
	response.CommonBase

	// 指标信息集合
	DataSet []MetricInfo
}

DescribeResourceMetricResponse is response schema for DescribeResourceMetric action

type GetMetricRequest

type GetMetricRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

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

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

	// 资源Id(目前除sharebandwidth可以不传入ResourceId外,其他资源必须传入,sharebandwidth不传入会默认使用获取到的第一个资源Id)
	ResourceId *string `required:"false"`

	// 拉取最近多少秒的监控数据,默认1小时,即3600;最大1个月
	TimeRange *int `required:"false"`

	// 起始时间unixtimestamp,若传入TimeRange,此项忽略
	BeginTime *int `required:"false"`

	// 结束时间unixtimestamp,若传入TimeRange,此项忽略;若只传入BeginTime,此项默认为当前时间
	EndTime *int `required:"false"`
}

GetMetricRequest is request schema for GetMetric action

type GetMetricResponse

type GetMetricResponse struct {
	response.CommonBase
}

GetMetricResponse is response schema for GetMetric action

type MetricInfo

type MetricInfo struct {

	// 指标名称
	MetricName string

	// 单位
	Unit string

	// 仅限内部使用
	ConversionFactor int

	// 数据类型
	Type string

	// 指标组名称,相同指标组前端可合并一张图显示
	MetricGroup string

	// 是否支持告警
	SupportAlarm string

	// 告警设置范围
	AlarmRange interface{} // Backend Bug: backend use dynamic type, object or string

	// 仅限内部使用
	Frequency int

	// 比较参数,可选GE,LE
	CompareOption []string
}

MetricInfo - GetMetricInfo-监控项信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

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

DescribeResourceMetric - 获取资源支持监控指标信息

func (*UMonClient) GetMetric

func (c *UMonClient) GetMetric(req *GetMetricRequest) (*GetMetricResponse, error)

GetMetric - 获取监控数据

func (*UMonClient) NewDescribeResourceMetricRequest

func (c *UMonClient) NewDescribeResourceMetricRequest() *DescribeResourceMetricRequest

NewDescribeResourceMetricRequest will create request of DescribeResourceMetric action.

func (*UMonClient) NewGetMetricRequest

func (c *UMonClient) NewGetMetricRequest() *GetMetricRequest

NewGetMetricRequest will create request of GetMetric action.

Jump to

Keyboard shortcuts

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