v2

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AomClientBuilder

func AomClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForAddAlarmRule

func GenReqDefForAddAlarmRule() *def.HttpRequestDef

func GenReqDefForAddMetricData

func GenReqDefForAddMetricData() *def.HttpRequestDef

func GenReqDefForAddOrUpdateServiceDiscoveryRules

func GenReqDefForAddOrUpdateServiceDiscoveryRules() *def.HttpRequestDef

func GenReqDefForCountEvents

func GenReqDefForCountEvents() *def.HttpRequestDef

func GenReqDefForDeleteAlarmRule

func GenReqDefForDeleteAlarmRule() *def.HttpRequestDef

func GenReqDefForDeleteAlarmRules

func GenReqDefForDeleteAlarmRules() *def.HttpRequestDef

func GenReqDefForDeleteserviceDiscoveryRules

func GenReqDefForDeleteserviceDiscoveryRules() *def.HttpRequestDef

func GenReqDefForListAlarmRule

func GenReqDefForListAlarmRule() *def.HttpRequestDef

func GenReqDefForListEvents

func GenReqDefForListEvents() *def.HttpRequestDef

func GenReqDefForListInstantQueryAomPromGet

func GenReqDefForListInstantQueryAomPromGet() *def.HttpRequestDef

func GenReqDefForListInstantQueryAomPromPost

func GenReqDefForListInstantQueryAomPromPost() *def.HttpRequestDef

func GenReqDefForListLabelValuesAomPromGet

func GenReqDefForListLabelValuesAomPromGet() *def.HttpRequestDef

func GenReqDefForListLabelsAomPromGet

func GenReqDefForListLabelsAomPromGet() *def.HttpRequestDef

func GenReqDefForListLabelsAomPromPost

func GenReqDefForListLabelsAomPromPost() *def.HttpRequestDef

func GenReqDefForListLogItems

func GenReqDefForListLogItems() *def.HttpRequestDef

func GenReqDefForListMetadataAomPromGet

func GenReqDefForListMetadataAomPromGet() *def.HttpRequestDef

func GenReqDefForListMetricItems

func GenReqDefForListMetricItems() *def.HttpRequestDef

func GenReqDefForListRangeQueryAomPromGet

func GenReqDefForListRangeQueryAomPromGet() *def.HttpRequestDef

func GenReqDefForListRangeQueryAomPromPost

func GenReqDefForListRangeQueryAomPromPost() *def.HttpRequestDef

func GenReqDefForListSample

func GenReqDefForListSample() *def.HttpRequestDef

func GenReqDefForListSeries

func GenReqDefForListSeries() *def.HttpRequestDef

func GenReqDefForListServiceDiscoveryRules

func GenReqDefForListServiceDiscoveryRules() *def.HttpRequestDef

func GenReqDefForPushEvents

func GenReqDefForPushEvents() *def.HttpRequestDef

func GenReqDefForShowAlarmRule

func GenReqDefForShowAlarmRule() *def.HttpRequestDef

func GenReqDefForShowMetricsData

func GenReqDefForShowMetricsData() *def.HttpRequestDef

func GenReqDefForUpdateAlarmRule

func GenReqDefForUpdateAlarmRule() *def.HttpRequestDef

Types

type AomClient

type AomClient struct {
	HcClient *http_client.HcHttpClient
}

func NewAomClient

func NewAomClient(hcClient *http_client.HcHttpClient) *AomClient

func (*AomClient) AddAlarmRule

func (c *AomClient) AddAlarmRule(request *model.AddAlarmRuleRequest) (*model.AddAlarmRuleResponse, error)

该接口用于添加一条阈值规则。

func (*AomClient) AddMetricData

func (c *AomClient) AddMetricData(request *model.AddMetricDataRequest) (*model.AddMetricDataResponse, error)

该接口用于向服务端添加一条或多条监控数据。

func (*AomClient) AddOrUpdateServiceDiscoveryRules

该接口用于添加或修改一条或多条服务发现规则。同一projectid下可添加的规则上限为100条。

func (*AomClient) CountEvents

func (c *AomClient) CountEvents(request *model.CountEventsRequest) (*model.CountEventsResponse, error)

该接口用于分段统计指定条件下的事件、告警。

func (*AomClient) DeleteAlarmRule

func (c *AomClient) DeleteAlarmRule(request *model.DeleteAlarmRuleRequest) (*model.DeleteAlarmRuleResponse, error)

该接口用于删除阈值规则。

func (*AomClient) DeleteAlarmRules

func (c *AomClient) DeleteAlarmRules(request *model.DeleteAlarmRulesRequest) (*model.DeleteAlarmRulesResponse, error)

批量删除阈值规则

func (*AomClient) DeleteserviceDiscoveryRules

该接口用于删除服务发现规则。

func (*AomClient) ListAlarmRule

func (c *AomClient) ListAlarmRule(request *model.ListAlarmRuleRequest) (*model.ListAlarmRuleResponse, error)

该接口用于查询阈值规则列表。

func (*AomClient) ListEvents

func (c *AomClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)

该接口用于查询对应用户的事件、告警

func (*AomClient) ListInstantQueryAomPromGet

该接口用于查询PromQL(Prometheus Query Language) 在特定时间点下的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListInstantQueryAomPromPost

该接口用于查询PromQL(Prometheus Query Language) 在特定时间点下的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListLabelValuesAomPromGet

该接口用于查询带有指定标签的时间序列列表。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListLabelsAomPromGet

该接口用于获取标签名列表。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListLabelsAomPromPost

该接口用于获取标签名列表。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListLogItems

func (c *AomClient) ListLogItems(request *model.ListLogItemsRequest) (*model.ListLogItemsResponse, error)

该接口用于查询不同维度(例如集群、IP、应用等)下的日志内容,支持分页查询。

func (*AomClient) ListMetadataAomPromGet

该接口用于查询序列及序列标签的元数据。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListMetricItems

func (c *AomClient) ListMetricItems(request *model.ListMetricItemsRequest) (*model.ListMetricItemsResponse, error)

该接口用于查询系统当前可监控的指标列表,可以指定指标命名空间、指标名称、维度、所属资源的编号(格式为:resType_resId),分页查询的起始位置和返回的最大记录条数。

func (*AomClient) ListRangeQueryAomPromGet

该接口用于查询PromQL(Prometheus Query Language)在一段时间返回内的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListRangeQueryAomPromPost

该接口用于查询PromQL(Prometheus Query Language)在一段时间返回内的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)

func (*AomClient) ListSample

func (c *AomClient) ListSample(request *model.ListSampleRequest) (*model.ListSampleResponse, error)

该接口用于查询指定时间范围内的监控时序数据,可以通过参数指定需要查询的数据维度,数据周期等。

func (*AomClient) ListSeries

func (c *AomClient) ListSeries(request *model.ListSeriesRequest) (*model.ListSeriesResponse, error)

该接口用于查询系统当前可监控的时间序列列表,可以指定时间序列命名空间、名称、维度、所属资源的编号(格式为:resType_resId),分页查询的起始位置和返回的最大记录条数。

func (*AomClient) ListServiceDiscoveryRules

该接口用于查询系统当前已存在的服务发现规则。

func (*AomClient) PushEvents

func (c *AomClient) PushEvents(request *model.PushEventsRequest) (*model.PushEventsResponse, error)

该接口用于上报对应用户的事件、告警。

func (*AomClient) ShowAlarmRule

func (c *AomClient) ShowAlarmRule(request *model.ShowAlarmRuleRequest) (*model.ShowAlarmRuleResponse, error)

该接口用于查询单条阈值规则。

func (*AomClient) ShowMetricsData

func (c *AomClient) ShowMetricsData(request *model.ShowMetricsDataRequest) (*model.ShowMetricsDataResponse, error)

该接口用于查询指定时间范围内指标的监控数据,可以通过参数指定需要查询的数据维度,数据周期等。

func (*AomClient) UpdateAlarmRule

func (c *AomClient) UpdateAlarmRule(request *model.UpdateAlarmRuleRequest) (*model.UpdateAlarmRuleResponse, error)

该接口用于修改一条阈值规则。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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