Documentation ¶
Index ¶
- func AomClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAddAlarmRule() *def.HttpRequestDef
- func GenReqDefForAddMetricData() *def.HttpRequestDef
- func GenReqDefForAddOrUpdateServiceDiscoveryRules() *def.HttpRequestDef
- func GenReqDefForCountEvents() *def.HttpRequestDef
- func GenReqDefForDeleteAlarmRule() *def.HttpRequestDef
- func GenReqDefForDeleteAlarmRules() *def.HttpRequestDef
- func GenReqDefForDeleteserviceDiscoveryRules() *def.HttpRequestDef
- func GenReqDefForListAlarmRule() *def.HttpRequestDef
- func GenReqDefForListEvents() *def.HttpRequestDef
- func GenReqDefForListInstantQueryAomPromGet() *def.HttpRequestDef
- func GenReqDefForListInstantQueryAomPromPost() *def.HttpRequestDef
- func GenReqDefForListLabelValuesAomPromGet() *def.HttpRequestDef
- func GenReqDefForListLabelsAomPromGet() *def.HttpRequestDef
- func GenReqDefForListLabelsAomPromPost() *def.HttpRequestDef
- func GenReqDefForListLogItems() *def.HttpRequestDef
- func GenReqDefForListMetadataAomPromGet() *def.HttpRequestDef
- func GenReqDefForListMetricItems() *def.HttpRequestDef
- func GenReqDefForListRangeQueryAomPromGet() *def.HttpRequestDef
- func GenReqDefForListRangeQueryAomPromPost() *def.HttpRequestDef
- func GenReqDefForListSample() *def.HttpRequestDef
- func GenReqDefForListSeries() *def.HttpRequestDef
- func GenReqDefForListServiceDiscoveryRules() *def.HttpRequestDef
- func GenReqDefForPushEvents() *def.HttpRequestDef
- func GenReqDefForShowAlarmRule() *def.HttpRequestDef
- func GenReqDefForShowMetricsData() *def.HttpRequestDef
- func GenReqDefForUpdateAlarmRule() *def.HttpRequestDef
- type AomClient
- func (c *AomClient) AddAlarmRule(request *model.AddAlarmRuleRequest) (*model.AddAlarmRuleResponse, error)
- func (c *AomClient) AddMetricData(request *model.AddMetricDataRequest) (*model.AddMetricDataResponse, error)
- func (c *AomClient) AddOrUpdateServiceDiscoveryRules(request *model.AddOrUpdateServiceDiscoveryRulesRequest) (*model.AddOrUpdateServiceDiscoveryRulesResponse, error)
- func (c *AomClient) CountEvents(request *model.CountEventsRequest) (*model.CountEventsResponse, error)
- func (c *AomClient) DeleteAlarmRule(request *model.DeleteAlarmRuleRequest) (*model.DeleteAlarmRuleResponse, error)
- func (c *AomClient) DeleteAlarmRules(request *model.DeleteAlarmRulesRequest) (*model.DeleteAlarmRulesResponse, error)
- func (c *AomClient) DeleteserviceDiscoveryRules(request *model.DeleteserviceDiscoveryRulesRequest) (*model.DeleteserviceDiscoveryRulesResponse, error)
- func (c *AomClient) ListAlarmRule(request *model.ListAlarmRuleRequest) (*model.ListAlarmRuleResponse, error)
- func (c *AomClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)
- func (c *AomClient) ListInstantQueryAomPromGet(request *model.ListInstantQueryAomPromGetRequest) (*model.ListInstantQueryAomPromGetResponse, error)
- func (c *AomClient) ListInstantQueryAomPromPost(request *model.ListInstantQueryAomPromPostRequest) (*model.ListInstantQueryAomPromPostResponse, error)
- func (c *AomClient) ListLabelValuesAomPromGet(request *model.ListLabelValuesAomPromGetRequest) (*model.ListLabelValuesAomPromGetResponse, error)
- func (c *AomClient) ListLabelsAomPromGet(request *model.ListLabelsAomPromGetRequest) (*model.ListLabelsAomPromGetResponse, error)
- func (c *AomClient) ListLabelsAomPromPost(request *model.ListLabelsAomPromPostRequest) (*model.ListLabelsAomPromPostResponse, error)
- func (c *AomClient) ListLogItems(request *model.ListLogItemsRequest) (*model.ListLogItemsResponse, error)
- func (c *AomClient) ListMetadataAomPromGet(request *model.ListMetadataAomPromGetRequest) (*model.ListMetadataAomPromGetResponse, error)
- func (c *AomClient) ListMetricItems(request *model.ListMetricItemsRequest) (*model.ListMetricItemsResponse, error)
- func (c *AomClient) ListRangeQueryAomPromGet(request *model.ListRangeQueryAomPromGetRequest) (*model.ListRangeQueryAomPromGetResponse, error)
- func (c *AomClient) ListRangeQueryAomPromPost(request *model.ListRangeQueryAomPromPostRequest) (*model.ListRangeQueryAomPromPostResponse, error)
- func (c *AomClient) ListSample(request *model.ListSampleRequest) (*model.ListSampleResponse, error)
- func (c *AomClient) ListSeries(request *model.ListSeriesRequest) (*model.ListSeriesResponse, error)
- func (c *AomClient) ListServiceDiscoveryRules(request *model.ListServiceDiscoveryRulesRequest) (*model.ListServiceDiscoveryRulesResponse, error)
- func (c *AomClient) PushEvents(request *model.PushEventsRequest) (*model.PushEventsResponse, error)
- func (c *AomClient) ShowAlarmRule(request *model.ShowAlarmRuleRequest) (*model.ShowAlarmRuleResponse, error)
- func (c *AomClient) ShowMetricsData(request *model.ShowMetricsDataRequest) (*model.ShowMetricsDataResponse, error)
- func (c *AomClient) UpdateAlarmRule(request *model.UpdateAlarmRuleRequest) (*model.UpdateAlarmRuleResponse, error)
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 ¶
func (c *AomClient) AddOrUpdateServiceDiscoveryRules(request *model.AddOrUpdateServiceDiscoveryRulesRequest) (*model.AddOrUpdateServiceDiscoveryRulesResponse, error)
该接口用于添加或修改一条或多条服务发现规则。同一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 (c *AomClient) DeleteserviceDiscoveryRules(request *model.DeleteserviceDiscoveryRulesRequest) (*model.DeleteserviceDiscoveryRulesResponse, error)
该接口用于删除服务发现规则。
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 ¶
func (c *AomClient) ListInstantQueryAomPromGet(request *model.ListInstantQueryAomPromGetRequest) (*model.ListInstantQueryAomPromGetResponse, error)
该接口用于查询PromQL(Prometheus Query Language) 在特定时间点下的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListInstantQueryAomPromPost ¶
func (c *AomClient) ListInstantQueryAomPromPost(request *model.ListInstantQueryAomPromPostRequest) (*model.ListInstantQueryAomPromPostResponse, error)
该接口用于查询PromQL(Prometheus Query Language) 在特定时间点下的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListLabelValuesAomPromGet ¶
func (c *AomClient) ListLabelValuesAomPromGet(request *model.ListLabelValuesAomPromGetRequest) (*model.ListLabelValuesAomPromGetResponse, error)
该接口用于查询带有指定标签的时间序列列表。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListLabelsAomPromGet ¶
func (c *AomClient) ListLabelsAomPromGet(request *model.ListLabelsAomPromGetRequest) (*model.ListLabelsAomPromGetResponse, error)
该接口用于获取标签名列表。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListLabelsAomPromPost ¶
func (c *AomClient) ListLabelsAomPromPost(request *model.ListLabelsAomPromPostRequest) (*model.ListLabelsAomPromPostResponse, error)
该接口用于获取标签名列表。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListLogItems ¶
func (c *AomClient) ListLogItems(request *model.ListLogItemsRequest) (*model.ListLogItemsResponse, error)
该接口用于查询不同维度(例如集群、IP、应用等)下的日志内容,支持分页查询。
func (*AomClient) ListMetadataAomPromGet ¶
func (c *AomClient) ListMetadataAomPromGet(request *model.ListMetadataAomPromGetRequest) (*model.ListMetadataAomPromGetResponse, error)
该接口用于查询序列及序列标签的元数据。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListMetricItems ¶
func (c *AomClient) ListMetricItems(request *model.ListMetricItemsRequest) (*model.ListMetricItemsResponse, error)
该接口用于查询系统当前可监控的指标列表,可以指定指标命名空间、指标名称、维度、所属资源的编号(格式为:resType_resId),分页查询的起始位置和返回的最大记录条数。
func (*AomClient) ListRangeQueryAomPromGet ¶
func (c *AomClient) ListRangeQueryAomPromGet(request *model.ListRangeQueryAomPromGetRequest) (*model.ListRangeQueryAomPromGetResponse, error)
该接口用于查询PromQL(Prometheus Query Language)在一段时间返回内的计算结果。(注:接口目前开放的region为:北京四、上海一和广州)
func (*AomClient) ListRangeQueryAomPromPost ¶
func (c *AomClient) ListRangeQueryAomPromPost(request *model.ListRangeQueryAomPromPostRequest) (*model.ListRangeQueryAomPromPostResponse, error)
该接口用于查询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 (c *AomClient) ListServiceDiscoveryRules(request *model.ListServiceDiscoveryRulesRequest) (*model.ListServiceDiscoveryRulesResponse, error)
该接口用于查询系统当前已存在的服务发现规则。
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)
该接口用于修改一条阈值规则。