v1

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 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() *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 BatchListMetricDataInvoker added in v0.0.90

type BatchListMetricDataInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchListMetricDataInvoker) Invoke added in v0.0.90

type CesClient

type CesClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCesClient

func NewCesClient(hcClient *http_client.HcHttpClient) *CesClient

func (*CesClient) BatchListMetricData

BatchListMetricData 批量查询监控数据

批量查询指定时间范围内指定指标的指定粒度的监控数据,目前最多支持500指标的批量查询。 对于不同的period取值和查询的指标数量,默认的最大查询区间(to-from)不同。 规则为\"指标数量*(to-from)/监控周期<=3000\",若超出阈值,会自动调整from以满足规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) BatchListMetricDataInvoker added in v0.0.90

func (c *CesClient) BatchListMetricDataInvoker(request *model.BatchListMetricDataRequest) *BatchListMetricDataInvoker

BatchListMetricDataInvoker 批量查询监控数据

func (*CesClient) CreateAlarm

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

CreateAlarm 创建告警规则

创建一条告警规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) CreateAlarmInvoker added in v0.0.90

func (c *CesClient) CreateAlarmInvoker(request *model.CreateAlarmRequest) *CreateAlarmInvoker

CreateAlarmInvoker 创建告警规则

func (*CesClient) CreateAlarmTemplate

CreateAlarmTemplate 创建自定义告警模板

创建自定义告警模板。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) CreateAlarmTemplateInvoker added in v0.0.90

func (c *CesClient) CreateAlarmTemplateInvoker(request *model.CreateAlarmTemplateRequest) *CreateAlarmTemplateInvoker

CreateAlarmTemplateInvoker 创建自定义告警模板

func (*CesClient) CreateEvents

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

CreateEvents 上报事件

上报自定义事件。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) CreateEventsInvoker added in v0.0.90

func (c *CesClient) CreateEventsInvoker(request *model.CreateEventsRequest) *CreateEventsInvoker

CreateEventsInvoker 上报事件

func (*CesClient) CreateMetricData

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

CreateMetricData 添加监控数据

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) CreateMetricDataInvoker added in v0.0.90

func (c *CesClient) CreateMetricDataInvoker(request *model.CreateMetricDataRequest) *CreateMetricDataInvoker

CreateMetricDataInvoker 添加监控数据

func (*CesClient) CreateResourceGroup

CreateResourceGroup 创建资源分组

创建资源分组,资源分组支持将各类资源按照业务集中进行分组管理,可以从分组角度查看监控与告警信息,以提升运维效率。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) CreateResourceGroupInvoker added in v0.0.90

func (c *CesClient) CreateResourceGroupInvoker(request *model.CreateResourceGroupRequest) *CreateResourceGroupInvoker

CreateResourceGroupInvoker 创建资源分组

func (*CesClient) DeleteAlarm

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

DeleteAlarm 删除告警规则

删除一条告警规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) DeleteAlarmInvoker added in v0.0.90

func (c *CesClient) DeleteAlarmInvoker(request *model.DeleteAlarmRequest) *DeleteAlarmInvoker

DeleteAlarmInvoker 删除告警规则

func (*CesClient) DeleteAlarmTemplate

DeleteAlarmTemplate 删除自定义告警模板

根据ID删除自定义告警模板。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) DeleteAlarmTemplateInvoker added in v0.0.90

func (c *CesClient) DeleteAlarmTemplateInvoker(request *model.DeleteAlarmTemplateRequest) *DeleteAlarmTemplateInvoker

DeleteAlarmTemplateInvoker 删除自定义告警模板

func (*CesClient) DeleteResourceGroup

DeleteResourceGroup 删除资源分组

删除一条资源分组。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) DeleteResourceGroupInvoker added in v0.0.90

func (c *CesClient) DeleteResourceGroupInvoker(request *model.DeleteResourceGroupRequest) *DeleteResourceGroupInvoker

DeleteResourceGroupInvoker 删除资源分组

func (*CesClient) ListAlarmHistories

func (c *CesClient) ListAlarmHistories(request *model.ListAlarmHistoriesRequest) (*model.ListAlarmHistoriesResponse, error)

ListAlarmHistories 查询告警历史

查询告警历史列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListAlarmHistoriesInvoker added in v0.0.90

func (c *CesClient) ListAlarmHistoriesInvoker(request *model.ListAlarmHistoriesRequest) *ListAlarmHistoriesInvoker

ListAlarmHistoriesInvoker 查询告警历史

func (*CesClient) ListAlarmTemplates

func (c *CesClient) ListAlarmTemplates(request *model.ListAlarmTemplatesRequest) (*model.ListAlarmTemplatesResponse, error)

ListAlarmTemplates 查询自定义告警模板列表

查询自定义告警模板列表

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListAlarmTemplatesInvoker added in v0.0.90

func (c *CesClient) ListAlarmTemplatesInvoker(request *model.ListAlarmTemplatesRequest) *ListAlarmTemplatesInvoker

ListAlarmTemplatesInvoker 查询自定义告警模板列表

func (*CesClient) ListAlarms

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

ListAlarms 查询告警规则列表

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListAlarmsInvoker added in v0.0.90

func (c *CesClient) ListAlarmsInvoker(request *model.ListAlarmsRequest) *ListAlarmsInvoker

ListAlarmsInvoker 查询告警规则列表

func (*CesClient) ListEventDetail

func (c *CesClient) ListEventDetail(request *model.ListEventDetailRequest) (*model.ListEventDetailResponse, error)

ListEventDetail 查询某一事件监控详情

根据事件监控名称,查询该事件发生的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListEventDetailInvoker added in v0.0.90

func (c *CesClient) ListEventDetailInvoker(request *model.ListEventDetailRequest) *ListEventDetailInvoker

ListEventDetailInvoker 查询某一事件监控详情

func (*CesClient) ListEvents

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

ListEvents 查询事件监控列表

查询事件监控列表,包括系统事件和自定义事件。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListEventsInvoker added in v0.0.90

func (c *CesClient) ListEventsInvoker(request *model.ListEventsRequest) *ListEventsInvoker

ListEventsInvoker 查询事件监控列表

func (*CesClient) ListMetrics

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

ListMetrics 查询指标列表

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListMetricsInvoker added in v0.0.90

func (c *CesClient) ListMetricsInvoker(request *model.ListMetricsRequest) *ListMetricsInvoker

ListMetricsInvoker 查询指标列表

func (*CesClient) ListResourceGroup

func (c *CesClient) ListResourceGroup(request *model.ListResourceGroupRequest) (*model.ListResourceGroupResponse, error)

ListResourceGroup 查询所有资源分组

查询所创建的所有资源分组。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ListResourceGroupInvoker added in v0.0.90

func (c *CesClient) ListResourceGroupInvoker(request *model.ListResourceGroupRequest) *ListResourceGroupInvoker

ListResourceGroupInvoker 查询所有资源分组

func (*CesClient) ShowAlarm

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

ShowAlarm 查询单条告警规则信息

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ShowAlarmInvoker added in v0.0.90

func (c *CesClient) ShowAlarmInvoker(request *model.ShowAlarmRequest) *ShowAlarmInvoker

ShowAlarmInvoker 查询单条告警规则信息

func (*CesClient) ShowEventData

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

ShowEventData 查询主机配置数据

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ShowEventDataInvoker added in v0.0.90

func (c *CesClient) ShowEventDataInvoker(request *model.ShowEventDataRequest) *ShowEventDataInvoker

ShowEventDataInvoker 查询主机配置数据

func (*CesClient) ShowMetricData

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

ShowMetricData 查询监控数据

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ShowMetricDataInvoker added in v0.0.90

func (c *CesClient) ShowMetricDataInvoker(request *model.ShowMetricDataRequest) *ShowMetricDataInvoker

ShowMetricDataInvoker 查询监控数据

func (*CesClient) ShowQuotas

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

ShowQuotas 查询配额

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ShowQuotasInvoker added in v0.0.90

func (c *CesClient) ShowQuotasInvoker(request *model.ShowQuotasRequest) *ShowQuotasInvoker

ShowQuotasInvoker 查询配额

func (*CesClient) ShowResourceGroup

func (c *CesClient) ShowResourceGroup(request *model.ShowResourceGroupRequest) (*model.ShowResourceGroupResponse, error)

ShowResourceGroup 查询资源分组下的资源

根据资源分组ID查询资源分组下的资源。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) ShowResourceGroupInvoker added in v0.0.90

func (c *CesClient) ShowResourceGroupInvoker(request *model.ShowResourceGroupRequest) *ShowResourceGroupInvoker

ShowResourceGroupInvoker 查询资源分组下的资源

func (*CesClient) UpdateAlarm

func (c *CesClient) UpdateAlarm(request *model.UpdateAlarmRequest) (*model.UpdateAlarmResponse, error)

UpdateAlarm 修改告警规则

修改告警规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) UpdateAlarmAction

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

UpdateAlarmAction 启停告警规则

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) UpdateAlarmActionInvoker added in v0.0.90

func (c *CesClient) UpdateAlarmActionInvoker(request *model.UpdateAlarmActionRequest) *UpdateAlarmActionInvoker

UpdateAlarmActionInvoker 启停告警规则

func (*CesClient) UpdateAlarmInvoker added in v0.0.90

func (c *CesClient) UpdateAlarmInvoker(request *model.UpdateAlarmRequest) *UpdateAlarmInvoker

UpdateAlarmInvoker 修改告警规则

func (*CesClient) UpdateAlarmTemplate

UpdateAlarmTemplate 更新自定义告警模板

更新自定义告警模板。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) UpdateAlarmTemplateInvoker added in v0.0.90

func (c *CesClient) UpdateAlarmTemplateInvoker(request *model.UpdateAlarmTemplateRequest) *UpdateAlarmTemplateInvoker

UpdateAlarmTemplateInvoker 更新自定义告警模板

func (*CesClient) UpdateResourceGroup

UpdateResourceGroup 更新资源分组

更新资源分组,资源分组支持将各类资源按照业务集中进行分组管理,可以从分组角度查看监控与告警信息,以提升运维效率。

Please refer to HUAWEI cloud API Explorer for details.

func (*CesClient) UpdateResourceGroupInvoker added in v0.0.90

func (c *CesClient) UpdateResourceGroupInvoker(request *model.UpdateResourceGroupRequest) *UpdateResourceGroupInvoker

UpdateResourceGroupInvoker 更新资源分组

type CreateAlarmInvoker added in v0.0.90

type CreateAlarmInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAlarmInvoker) Invoke added in v0.0.90

type CreateAlarmTemplateInvoker added in v0.0.90

type CreateAlarmTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAlarmTemplateInvoker) Invoke added in v0.0.90

type CreateEventsInvoker added in v0.0.90

type CreateEventsInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateEventsInvoker) Invoke added in v0.0.90

type CreateMetricDataInvoker added in v0.0.90

type CreateMetricDataInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateMetricDataInvoker) Invoke added in v0.0.90

type CreateResourceGroupInvoker added in v0.0.90

type CreateResourceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateResourceGroupInvoker) Invoke added in v0.0.90

type DeleteAlarmInvoker added in v0.0.90

type DeleteAlarmInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteAlarmInvoker) Invoke added in v0.0.90

type DeleteAlarmTemplateInvoker added in v0.0.90

type DeleteAlarmTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteAlarmTemplateInvoker) Invoke added in v0.0.90

type DeleteResourceGroupInvoker added in v0.0.90

type DeleteResourceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteResourceGroupInvoker) Invoke added in v0.0.90

type ListAlarmHistoriesInvoker added in v0.0.90

type ListAlarmHistoriesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAlarmHistoriesInvoker) Invoke added in v0.0.90

type ListAlarmTemplatesInvoker added in v0.0.90

type ListAlarmTemplatesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAlarmTemplatesInvoker) Invoke added in v0.0.90

type ListAlarmsInvoker added in v0.0.90

type ListAlarmsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAlarmsInvoker) Invoke added in v0.0.90

type ListEventDetailInvoker added in v0.0.90

type ListEventDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ListEventDetailInvoker) Invoke added in v0.0.90

type ListEventsInvoker added in v0.0.90

type ListEventsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListEventsInvoker) Invoke added in v0.0.90

type ListMetricsInvoker added in v0.0.90

type ListMetricsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListMetricsInvoker) Invoke added in v0.0.90

type ListResourceGroupInvoker added in v0.0.90

type ListResourceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceGroupInvoker) Invoke added in v0.0.90

type ShowAlarmInvoker added in v0.0.90

type ShowAlarmInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAlarmInvoker) Invoke added in v0.0.90

type ShowEventDataInvoker added in v0.0.90

type ShowEventDataInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowEventDataInvoker) Invoke added in v0.0.90

type ShowMetricDataInvoker added in v0.0.90

type ShowMetricDataInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowMetricDataInvoker) Invoke added in v0.0.90

type ShowQuotasInvoker added in v0.0.90

type ShowQuotasInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowQuotasInvoker) Invoke added in v0.0.90

type ShowResourceGroupInvoker added in v0.0.90

type ShowResourceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowResourceGroupInvoker) Invoke added in v0.0.90

type UpdateAlarmActionInvoker added in v0.0.90

type UpdateAlarmActionInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAlarmActionInvoker) Invoke added in v0.0.90

type UpdateAlarmInvoker added in v0.0.90

type UpdateAlarmInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAlarmInvoker) Invoke added in v0.0.90

type UpdateAlarmTemplateInvoker added in v0.0.90

type UpdateAlarmTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAlarmTemplateInvoker) Invoke added in v0.0.90

type UpdateResourceGroupInvoker added in v0.0.90

type UpdateResourceGroupInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateResourceGroupInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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