client

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 4 modules, 4 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 MonitorClient

type MonitorClient struct {
	core.JDCloudClient
}

func NewMonitorClient

func NewMonitorClient(credential *core.Credential) *MonitorClient

func (*MonitorClient) CreateAlarm

创建报警规则,可以为某一个实例创建报警规则,也可以为多个实例同时创建报警规则。

func (*MonitorClient) DeleteAlarms

删除规则

func (*MonitorClient) DeleteAlarmsCm added in v1.2.1

删除自定义监控规则

func (*MonitorClient) DescribeAlarmContacts added in v1.1.1

查询规则的报警联系人

func (*MonitorClient) DescribeAlarmHistory

查询报警历史

检索条件组合优先级从高到低为 1:alarmIds不为空 2:alarmId不为空 3:serviceCode不为空 3.1:serviceCode + resourceId 3.2: serviceCode + resourceIds 3.3: serviceCode + ruleName 4:serviceCodes不为空 4.1:serviceCode + resourceId 4.2: serviceCode + resourceIds 4.3: serviceCode + ruleName 5: 所有规则

func (*MonitorClient) DescribeAlarmHistoryAllRegion added in v1.2.1

查询报警历史

检索条件组合优先级从高到低为 1:alarmIds不为空 2:alarmId不为空 3:serviceCode不为空 3.1:serviceCode + resourceId 3.2: serviceCode + resourceIds 3.3: serviceCode + ruleName 4:serviceCodes不为空 4.1:serviceCode + resourceId 4.2: serviceCode + resourceIds 4.3: serviceCode + ruleName 5: 所有规则

func (*MonitorClient) DescribeAlarms

查询规则, 查询参数组合及优先级从高到低为:

1:alarmIds不为空 2:alarmId不为空 3:serviceCode不为空 3.1:serviceCode + resourceId 3.2: serviceCode + resourceIds 3.3: serviceCode + ruleName 4:serviceCodes不为空 4.1:serviceCode + resourceId 4.2: serviceCode + resourceIds 4.3: serviceCode + ruleName 5: 所有规则

func (*MonitorClient) DescribeAlarmsByID

查询规则详情

func (*MonitorClient) DescribeMetricData

查看某资源多个监控项数据,metric介绍1:<a href="https://docs.jdcloud.com/cn/monitoring/metrics">Metrics</a>

func (*MonitorClient) DescribeMetrics

根据产品线查询可用监控项列表,metric介绍:<a href="https://docs.jdcloud.com/cn/monitoring/metrics">Metrics</a>

func (*MonitorClient) DescribeMetricsForCreateAlarm

查询可用创建监控规则的指标列表,metric介绍:<a href="https://docs.jdcloud.com/cn/monitoring/metrics">Metrics</a>

func (*MonitorClient) DescribeServices added in v1.11.0

概览页产品线信息接口

func (*MonitorClient) DisableAlarm

禁用报警规则。报警规则禁用后,将停止探测实例的监控项数据。

func (*MonitorClient) EnableAlarm

启用报警规则,当客户的报警规则处于停止状态时,可以使用此接口启用报警规则。

func (*MonitorClient) LastDownsample added in v1.1.1

查看某资源的最后一个点,metric介绍:<a href="https://docs.jdcloud.com/cn/monitoring/metrics">Metrics</a>

func (*MonitorClient) PutMetricData added in v1.0.7

该接口为自定义监控数据上报的接口,方便您将自己采集的时序数据上报到云监控。不同region域名上报不同region的数据,参考:<a href="https://docs.jdcloud.com/cn/monitoring/reporting-monitoring-data">调用说明</a>可上报原始数据和已聚合的统计数据。支持批量上报方式。单次请求最多包含 50 个数据点;数据大小不超过 256k。

func (*MonitorClient) SetConfig

func (c *MonitorClient) SetConfig(config *core.Config)

func (*MonitorClient) SetLogger

func (c *MonitorClient) SetLogger(logger core.Logger)

func (*MonitorClient) UpdateAlarm

修改已创建的报警规则

Jump to

Keyboard shortcuts

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