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 GenReqDefForCreateResourceGroup() *def.HttpRequestDef
- func GenReqDefForDeleteAlarm() *def.HttpRequestDef
- func GenReqDefForDeleteAlarmTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteResourceGroup() *def.HttpRequestDef
- func GenReqDefForListAlarmHistories() *def.HttpRequestDef
- func GenReqDefForListAlarmTemplates() *def.HttpRequestDef
- func GenReqDefForListAlarms() *def.HttpRequestDef
- func GenReqDefForListEventDetail() *def.HttpRequestDef
- func GenReqDefForListEvents() *def.HttpRequestDef
- func GenReqDefForListMetrics() *def.HttpRequestDef
- func GenReqDefForListResourceGroup() *def.HttpRequestDef
- func GenReqDefForShowAlarm() *def.HttpRequestDef
- func GenReqDefForShowEventData() *def.HttpRequestDef
- func GenReqDefForShowMetricData() *def.HttpRequestDef
- func GenReqDefForShowQuotas() *def.HttpRequestDef
- func GenReqDefForShowResourceGroup() *def.HttpRequestDef
- func GenReqDefForUpdateAlarm() *def.HttpRequestDef
- func GenReqDefForUpdateAlarmAction() *def.HttpRequestDef
- func GenReqDefForUpdateAlarmTemplate() *def.HttpRequestDef
- func GenReqDefForUpdateResourceGroup() *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) CreateResourceGroup(request *model.CreateResourceGroupRequest) (*model.CreateResourceGroupResponse, error)
- func (c *CesClient) DeleteAlarm(request *model.DeleteAlarmRequest) (*model.DeleteAlarmResponse, error)
- func (c *CesClient) DeleteAlarmTemplate(request *model.DeleteAlarmTemplateRequest) (*model.DeleteAlarmTemplateResponse, error)
- func (c *CesClient) DeleteResourceGroup(request *model.DeleteResourceGroupRequest) (*model.DeleteResourceGroupResponse, 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) ListEventDetail(request *model.ListEventDetailRequest) (*model.ListEventDetailResponse, error)
- func (c *CesClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)
- func (c *CesClient) ListMetrics(request *model.ListMetricsRequest) (*model.ListMetricsResponse, error)
- func (c *CesClient) ListResourceGroup(request *model.ListResourceGroupRequest) (*model.ListResourceGroupResponse, 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) UpdateAlarm(request *model.UpdateAlarmRequest) (*model.UpdateAlarmResponse, error)
- func (c *CesClient) UpdateAlarmAction(request *model.UpdateAlarmActionRequest) (*model.UpdateAlarmActionResponse, error)
- func (c *CesClient) UpdateAlarmTemplate(request *model.UpdateAlarmTemplateRequest) (*model.UpdateAlarmTemplateResponse, error)
- func (c *CesClient) UpdateResourceGroup(request *model.UpdateResourceGroupRequest) (*model.UpdateResourceGroupResponse, 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 GenReqDefForCreateResourceGroup ¶
func GenReqDefForCreateResourceGroup() *def.HttpRequestDef
func GenReqDefForDeleteAlarm ¶
func GenReqDefForDeleteAlarm() *def.HttpRequestDef
func GenReqDefForDeleteAlarmTemplate ¶
func GenReqDefForDeleteAlarmTemplate() *def.HttpRequestDef
func GenReqDefForDeleteResourceGroup ¶
func GenReqDefForDeleteResourceGroup() *def.HttpRequestDef
func GenReqDefForListAlarmHistories ¶
func GenReqDefForListAlarmHistories() *def.HttpRequestDef
func GenReqDefForListAlarmTemplates ¶
func GenReqDefForListAlarmTemplates() *def.HttpRequestDef
func GenReqDefForListAlarms ¶
func GenReqDefForListAlarms() *def.HttpRequestDef
func GenReqDefForListEventDetail ¶
func GenReqDefForListEventDetail() *def.HttpRequestDef
func GenReqDefForListEvents ¶
func GenReqDefForListEvents() *def.HttpRequestDef
func GenReqDefForListMetrics ¶
func GenReqDefForListMetrics() *def.HttpRequestDef
func GenReqDefForListResourceGroup ¶
func GenReqDefForListResourceGroup() *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 GenReqDefForUpdateAlarm ¶
func GenReqDefForUpdateAlarm() *def.HttpRequestDef
func GenReqDefForUpdateAlarmAction ¶
func GenReqDefForUpdateAlarmAction() *def.HttpRequestDef
func GenReqDefForUpdateAlarmTemplate ¶
func GenReqDefForUpdateAlarmTemplate() *def.HttpRequestDef
func GenReqDefForUpdateResourceGroup ¶
func GenReqDefForUpdateResourceGroup() *def.HttpRequestDef
Types ¶
type CesClient ¶
type CesClient struct {
HcClient *http_client.HcHttpClient
}
func NewCesClient ¶
func NewCesClient(hcClient *http_client.HcHttpClient) *CesClient
func (*CesClient) BatchListMetricData ¶
func (c *CesClient) BatchListMetricData(request *model.BatchListMetricDataRequest) (*model.BatchListMetricDataResponse, error)
批量查询指定时间范围内指定指标的指定粒度的监控数据,目前最多支持500指标的批量查询。 对于不同的period取值和查询的指标数量,默认的最大查询区间(to-from)不同。 规则为\"指标数量*(to-from)/监控周期<=3000\",若超出阈值,会自动调整from以满足规则。
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) CreateResourceGroup ¶
func (c *CesClient) CreateResourceGroup(request *model.CreateResourceGroupRequest) (*model.CreateResourceGroupResponse, 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) DeleteResourceGroup ¶
func (c *CesClient) DeleteResourceGroup(request *model.DeleteResourceGroupRequest) (*model.DeleteResourceGroupResponse, error)
删除一条资源分组。
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) ListEventDetail ¶
func (c *CesClient) ListEventDetail(request *model.ListEventDetailRequest) (*model.ListEventDetailResponse, error)
根据事件监控名称,查询该事件发生的详细信息。
func (*CesClient) ListEvents ¶
func (c *CesClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error)
查询事件监控列表,包括系统事件和自定义事件。
func (*CesClient) ListMetrics ¶
func (c *CesClient) ListMetrics(request *model.ListMetricsRequest) (*model.ListMetricsResponse, error)
查询系统当前可监控指标列表,可以指定指标命名空间、指标名称、维度、排序方式,起始记录和最大记录条数过滤查询结果。
func (*CesClient) ListResourceGroup ¶
func (c *CesClient) ListResourceGroup(request *model.ListResourceGroupRequest) (*model.ListResourceGroupResponse, 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) UpdateAlarm ¶
func (c *CesClient) UpdateAlarm(request *model.UpdateAlarmRequest) (*model.UpdateAlarmResponse, error)
修改告警规则。
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)
更新自定义告警模板。
func (*CesClient) UpdateResourceGroup ¶
func (c *CesClient) UpdateResourceGroup(request *model.UpdateResourceGroupRequest) (*model.UpdateResourceGroupResponse, error)
更新资源分组,资源分组支持将各类资源按照业务集中进行分组管理,可以从分组角度查看监控与告警信息,以提升运维效率。