Documentation ¶
Index ¶
- func CesClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForBatchListMetricData() *def.HttpRequestDef
- func GenReqDefForCreateAlarm() *def.HttpRequestDef
- func GenReqDefForCreateAlarmTemplate() *def.HttpRequestDef
- func GenReqDefForCreateEvents() *def.HttpRequestDef
- func GenReqDefForCreateMetricData() *def.HttpRequestDef
- func GenReqDefForDeleteAlarm() *def.HttpRequestDef
- func GenReqDefForDeleteAlarmTemplate() *def.HttpRequestDef
- func GenReqDefForListAlarmHistories() *def.HttpRequestDef
- func GenReqDefForListAlarmTemplates() *def.HttpRequestDef
- func GenReqDefForListAlarms() *def.HttpRequestDef
- func GenReqDefForListMetrics() *def.HttpRequestDef
- func GenReqDefForShowAlarm() *def.HttpRequestDef
- func GenReqDefForShowEventData() *def.HttpRequestDef
- func GenReqDefForShowMetricData() *def.HttpRequestDef
- func GenReqDefForShowQuotas() *def.HttpRequestDef
- func GenReqDefForShowResourceGroup() *def.HttpRequestDef
- func GenReqDefForUpdateAlarmAction() *def.HttpRequestDef
- func GenReqDefForUpdateAlarmTemplate() *def.HttpRequestDef
- type CesClient
- func (c *CesClient) BatchListMetricData(request *model.BatchListMetricDataRequest) (*model.BatchListMetricDataResponse, error)
- func (c *CesClient) CreateAlarm(request *model.CreateAlarmRequest) (*model.CreateAlarmResponse, error)
- func (c *CesClient) CreateAlarmTemplate(request *model.CreateAlarmTemplateRequest) (*model.CreateAlarmTemplateResponse, error)
- func (c *CesClient) CreateEvents(request *model.CreateEventsRequest) (*model.CreateEventsResponse, error)
- func (c *CesClient) CreateMetricData(request *model.CreateMetricDataRequest) (*model.CreateMetricDataResponse, error)
- func (c *CesClient) DeleteAlarm(request *model.DeleteAlarmRequest) (*model.DeleteAlarmResponse, error)
- func (c *CesClient) DeleteAlarmTemplate(request *model.DeleteAlarmTemplateRequest) (*model.DeleteAlarmTemplateResponse, error)
- func (c *CesClient) ListAlarmHistories(request *model.ListAlarmHistoriesRequest) (*model.ListAlarmHistoriesResponse, error)
- func (c *CesClient) ListAlarmTemplates(request *model.ListAlarmTemplatesRequest) (*model.ListAlarmTemplatesResponse, error)
- func (c *CesClient) ListAlarms(request *model.ListAlarmsRequest) (*model.ListAlarmsResponse, error)
- func (c *CesClient) ListMetrics(request *model.ListMetricsRequest) (*model.ListMetricsResponse, error)
- func (c *CesClient) ShowAlarm(request *model.ShowAlarmRequest) (*model.ShowAlarmResponse, error)
- func (c *CesClient) ShowEventData(request *model.ShowEventDataRequest) (*model.ShowEventDataResponse, error)
- func (c *CesClient) ShowMetricData(request *model.ShowMetricDataRequest) (*model.ShowMetricDataResponse, error)
- func (c *CesClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error)
- func (c *CesClient) ShowResourceGroup(request *model.ShowResourceGroupRequest) (*model.ShowResourceGroupResponse, error)
- func (c *CesClient) UpdateAlarmAction(request *model.UpdateAlarmActionRequest) (*model.UpdateAlarmActionResponse, error)
- func (c *CesClient) UpdateAlarmTemplate(request *model.UpdateAlarmTemplateRequest) (*model.UpdateAlarmTemplateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CesClientBuilder ¶
func CesClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForBatchListMetricData ¶
func GenReqDefForBatchListMetricData() *def.HttpRequestDef
func GenReqDefForCreateAlarm ¶
func GenReqDefForCreateAlarm() *def.HttpRequestDef
func GenReqDefForCreateAlarmTemplate ¶
func GenReqDefForCreateAlarmTemplate() *def.HttpRequestDef
func GenReqDefForCreateEvents ¶
func GenReqDefForCreateEvents() *def.HttpRequestDef
func GenReqDefForCreateMetricData ¶
func GenReqDefForCreateMetricData() *def.HttpRequestDef
func GenReqDefForDeleteAlarm ¶
func GenReqDefForDeleteAlarm() *def.HttpRequestDef
func GenReqDefForDeleteAlarmTemplate ¶
func GenReqDefForDeleteAlarmTemplate() *def.HttpRequestDef
func GenReqDefForListAlarmHistories ¶
func GenReqDefForListAlarmHistories() *def.HttpRequestDef
func GenReqDefForListAlarmTemplates ¶
func GenReqDefForListAlarmTemplates() *def.HttpRequestDef
func GenReqDefForListAlarms ¶
func GenReqDefForListAlarms() *def.HttpRequestDef
func GenReqDefForListMetrics ¶
func GenReqDefForListMetrics() *def.HttpRequestDef
func GenReqDefForShowAlarm ¶
func GenReqDefForShowAlarm() *def.HttpRequestDef
func GenReqDefForShowEventData ¶
func GenReqDefForShowEventData() *def.HttpRequestDef
func GenReqDefForShowMetricData ¶
func GenReqDefForShowMetricData() *def.HttpRequestDef
func GenReqDefForShowQuotas ¶
func GenReqDefForShowQuotas() *def.HttpRequestDef
func GenReqDefForShowResourceGroup ¶
func GenReqDefForShowResourceGroup() *def.HttpRequestDef
func GenReqDefForUpdateAlarmAction ¶
func GenReqDefForUpdateAlarmAction() *def.HttpRequestDef
func GenReqDefForUpdateAlarmTemplate ¶
func GenReqDefForUpdateAlarmTemplate() *def.HttpRequestDef
Types ¶
type CesClient ¶
type CesClient struct {
// contains filtered or unexported fields
}
func NewCesClient ¶
func NewCesClient(hcClient *http_client.HcHttpClient) *CesClient
func (*CesClient) BatchListMetricData ¶
func (c *CesClient) BatchListMetricData(request *model.BatchListMetricDataRequest) (*model.BatchListMetricDataResponse, error)
批量查询指定时间范围内指定指标的指定粒度的监控数据,目前最多支持10指标的批量查询。
func (*CesClient) CreateAlarm ¶
func (c *CesClient) CreateAlarm(request *model.CreateAlarmRequest) (*model.CreateAlarmResponse, error)
创建一条告警规则。
func (*CesClient) CreateAlarmTemplate ¶
func (c *CesClient) CreateAlarmTemplate(request *model.CreateAlarmTemplateRequest) (*model.CreateAlarmTemplateResponse, 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) DeleteAlarmTemplate ¶
func (c *CesClient) DeleteAlarmTemplate(request *model.DeleteAlarmTemplateRequest) (*model.DeleteAlarmTemplateResponse, error)
根据ID删除自定义告警模板。
func (*CesClient) ListAlarmHistories ¶
func (c *CesClient) ListAlarmHistories(request *model.ListAlarmHistoriesRequest) (*model.ListAlarmHistoriesResponse, error)
查询告警历史列表。
func (*CesClient) ListAlarmTemplates ¶
func (c *CesClient) ListAlarmTemplates(request *model.ListAlarmTemplatesRequest) (*model.ListAlarmTemplatesResponse, 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) ShowResourceGroup ¶
func (c *CesClient) ShowResourceGroup(request *model.ShowResourceGroupRequest) (*model.ShowResourceGroupResponse, error)
根据资源分组ID查询资源分组下的资源。
func (*CesClient) UpdateAlarmAction ¶
func (c *CesClient) UpdateAlarmAction(request *model.UpdateAlarmActionRequest) (*model.UpdateAlarmActionResponse, error)
启动或停止一条告警规则。
func (*CesClient) UpdateAlarmTemplate ¶
func (c *CesClient) UpdateAlarmTemplate(request *model.UpdateAlarmTemplateRequest) (*model.UpdateAlarmTemplateResponse, error)
更新自定义告警模板。
Click to show internal directories.
Click to hide internal directories.