v1

package
v0.0.9-beta Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CesClientBuilder

func CesClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchListMetricData

func GenReqDefForBatchListMetricData(request *model.BatchListMetricDataRequest) *def.HttpRequestDef

func GenReqDefForCreateAlarm

func GenReqDefForCreateAlarm(request *model.CreateAlarmRequest) *def.HttpRequestDef

func GenReqDefForCreateEvents

func GenReqDefForCreateEvents(request *model.CreateEventsRequest) *def.HttpRequestDef

func GenReqDefForCreateMetricData

func GenReqDefForCreateMetricData(request *model.CreateMetricDataRequest) *def.HttpRequestDef

func GenReqDefForDeleteAlarm

func GenReqDefForDeleteAlarm(request *model.DeleteAlarmRequest) *def.HttpRequestDef

func GenReqDefForListAlarms

func GenReqDefForListAlarms(request *model.ListAlarmsRequest) *def.HttpRequestDef

func GenReqDefForListMetrics

func GenReqDefForListMetrics(request *model.ListMetricsRequest) *def.HttpRequestDef

func GenReqDefForShowAlarm

func GenReqDefForShowAlarm(request *model.ShowAlarmRequest) *def.HttpRequestDef

func GenReqDefForShowEventData

func GenReqDefForShowEventData(request *model.ShowEventDataRequest) *def.HttpRequestDef

func GenReqDefForShowMetricData

func GenReqDefForShowMetricData(request *model.ShowMetricDataRequest) *def.HttpRequestDef

func GenReqDefForShowQuotas

func GenReqDefForShowQuotas(request *model.ShowQuotasRequest) *def.HttpRequestDef

func GenReqDefForUpdateAlarmAction

func GenReqDefForUpdateAlarmAction(request *model.UpdateAlarmActionRequest) *def.HttpRequestDef

func GenRespForBatchListMetricData

func GenRespForBatchListMetricData() (*model.BatchListMetricDataResponse, *def.HttpResponseDef)

func GenRespForCreateAlarm

func GenRespForCreateAlarm() (*model.CreateAlarmResponse, *def.HttpResponseDef)

func GenRespForCreateEvents

func GenRespForCreateEvents() (*model.CreateEventsResponse, *def.HttpResponseDef)

func GenRespForCreateMetricData

func GenRespForCreateMetricData() (*model.CreateMetricDataResponse, *def.HttpResponseDef)

func GenRespForDeleteAlarm

func GenRespForDeleteAlarm() (*model.DeleteAlarmResponse, *def.HttpResponseDef)

func GenRespForListAlarms

func GenRespForListAlarms() (*model.ListAlarmsResponse, *def.HttpResponseDef)

func GenRespForListMetrics

func GenRespForListMetrics() (*model.ListMetricsResponse, *def.HttpResponseDef)

func GenRespForShowAlarm

func GenRespForShowAlarm() (*model.ShowAlarmResponse, *def.HttpResponseDef)

func GenRespForShowEventData

func GenRespForShowEventData() (*model.ShowEventDataResponse, *def.HttpResponseDef)

func GenRespForShowMetricData

func GenRespForShowMetricData() (*model.ShowMetricDataResponse, *def.HttpResponseDef)

func GenRespForShowQuotas

func GenRespForShowQuotas() (*model.ShowQuotasResponse, *def.HttpResponseDef)

func GenRespForUpdateAlarmAction

func GenRespForUpdateAlarmAction() (*model.UpdateAlarmActionResponse, *def.HttpResponseDef)

Types

type CesClient

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

func NewCesClient

func NewCesClient(hcClient *http_client.HcHttpClient) *CesClient

func (*CesClient) BatchListMetricData

批量查询指定时间范围内指定指标的指定粒度的监控数据,目前最多支持10指标的批量查询。

func (*CesClient) CreateAlarm

func (c *CesClient) CreateAlarm(request *model.CreateAlarmRequest) (*model.CreateAlarmResponse, error)

创建一条告警规则。

func (*CesClient) CreateEvents

func (c *CesClient) CreateEvents(request *model.CreateEventsRequest) (*model.CreateEventsResponse, error)

上报自定义事件。

func (*CesClient) CreateMetricData

func (c *CesClient) CreateMetricData(request *model.CreateMetricDataRequest) (*model.CreateMetricDataResponse, error)

添加一条或多条指标监控数据。

func (*CesClient) DeleteAlarm

func (c *CesClient) DeleteAlarm(request *model.DeleteAlarmRequest) (*model.DeleteAlarmResponse, error)

删除一条告警规则。

func (*CesClient) ListAlarms

func (c *CesClient) ListAlarms(request *model.ListAlarmsRequest) (*model.ListAlarmsResponse, error)

查询告警规则列表,可以指定分页条件限制结果数量,可以指定排序规则。

func (*CesClient) ListMetrics

func (c *CesClient) ListMetrics(request *model.ListMetricsRequest) (*model.ListMetricsResponse, error)

查询系统当前可监控指标列表,可以指定指标命名空间、指标名称、维度、排序方式,起始记录和最大记录条数过滤查询结果。

func (*CesClient) ShowAlarm

func (c *CesClient) ShowAlarm(request *model.ShowAlarmRequest) (*model.ShowAlarmResponse, error)

根据告警ID查询告警规则信息。

func (*CesClient) ShowEventData

func (c *CesClient) ShowEventData(request *model.ShowEventDataRequest) (*model.ShowEventDataResponse, error)

查询指定时间范围指定事件类型的主机配置数据,可以通过参数指定需要查询的数据维度。注意:该接口提供给HANA场景下SAP Monitor查询主机配置数据,其他场景下查不到主机配置数据。

func (*CesClient) ShowMetricData

func (c *CesClient) ShowMetricData(request *model.ShowMetricDataRequest) (*model.ShowMetricDataResponse, error)

查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。

func (*CesClient) ShowQuotas

func (c *CesClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error)

查询用户可以创建的资源配额总数及当前使用量,当前仅有告警规则一种资源类型。

func (*CesClient) UpdateAlarmAction

func (c *CesClient) UpdateAlarmAction(request *model.UpdateAlarmActionRequest) (*model.UpdateAlarmActionResponse, error)

启动或停止一条告警规则。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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