cms

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 8 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransferOne

func TransferOne(ins *Datapoint) *provider.Datapoint

func TransferToDatapointSet

func TransferToDatapointSet(items []*Datapoint) *provider.DatapointSet

Types

type CmsOperator

type CmsOperator struct {
	// contains filtered or unexported fields
}

func NewCmsOperator

func NewCmsOperator(client *cms.Client) *CmsOperator

func (*CmsOperator) DescribeMetricLast

查询指定监控项的最新监控数据 参考: https://next.api.aliyun.com/api/Cms/2019-01-01/DescribeMetricLast

type Datapoint

type Datapoint struct {
	Timestamp  int64   `json:"timestamp"`
	InstanceId string  `json:"instanceId"`
	Minimum    float64 `json:"Minimum"`
	Maximum    float64 `json:"Maximum"`
	Average    float64 `json:"Average"`
}

Jump to

Keyboard shortcuts

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