Documentation ¶
Index ¶
- func CocClientBuilder() *httpclient.HcHttpClientBuilder
- func GenReqDefForCreateCocIncident() *def.HttpRequestDef
- func GenReqDefForCreateCocIssues() *def.HttpRequestDef
- func GenReqDefForCreateReportCustomEvent() *def.HttpRequestDef
- func GenReqDefForCreateReportPrometheusEvent() *def.HttpRequestDef
- func GenReqDefForCreateScript() *def.HttpRequestDef
- func GenReqDefForCreateWarRoom() *def.HttpRequestDef
- func GenReqDefForDeleteScript() *def.HttpRequestDef
- func GenReqDefForExecutePublicScript() *def.HttpRequestDef
- func GenReqDefForExecuteScript() *def.HttpRequestDef
- func GenReqDefForGetPublicScript() *def.HttpRequestDef
- func GenReqDefForGetScript() *def.HttpRequestDef
- func GenReqDefForGetScriptJobBatch() *def.HttpRequestDef
- func GenReqDefForGetScriptJobInfo() *def.HttpRequestDef
- func GenReqDefForGetScriptJobStatistics() *def.HttpRequestDef
- func GenReqDefForHandleCocIncident() *def.HttpRequestDef
- func GenReqDefForListApplications() *def.HttpRequestDef
- func GenReqDefForListAuthorizableTicketsExternal() *def.HttpRequestDef
- func GenReqDefForListCocTicketOperationHistories() *def.HttpRequestDef
- func GenReqDefForListInstanceCompliant() *def.HttpRequestDef
- func GenReqDefForListPublicScripts() *def.HttpRequestDef
- func GenReqDefForListResource() *def.HttpRequestDef
- func GenReqDefForListScriptJobBatches() *def.HttpRequestDef
- func GenReqDefForListScriptJobs() *def.HttpRequestDef
- func GenReqDefForListScripts() *def.HttpRequestDef
- func GenReqDefForListWarRooms() *def.HttpRequestDef
- func GenReqDefForOperateScriptJob() *def.HttpRequestDef
- func GenReqDefForShowCocIncidentDetail() *def.HttpRequestDef
- func GenReqDefForShowCocIssuesDetail() *def.HttpRequestDef
- func GenReqDefForShowInstancePatchItems() *def.HttpRequestDef
- func GenReqDefForSyncResource() *def.HttpRequestDef
- func GenReqDefForUpdateScript() *def.HttpRequestDef
- type CocClient
- func (c *CocClient) CreateCocIncident(request *model.CreateCocIncidentRequest) (*model.CreateCocIncidentResponse, error)
- func (c *CocClient) CreateCocIncidentInvoker(request *model.CreateCocIncidentRequest) *CreateCocIncidentInvoker
- func (c *CocClient) CreateCocIssues(request *model.CreateCocIssuesRequest) (*model.CreateCocIssuesResponse, error)
- func (c *CocClient) CreateCocIssuesInvoker(request *model.CreateCocIssuesRequest) *CreateCocIssuesInvoker
- func (c *CocClient) CreateReportCustomEvent(request *model.CreateReportCustomEventRequest) (*model.CreateReportCustomEventResponse, error)
- func (c *CocClient) CreateReportCustomEventInvoker(request *model.CreateReportCustomEventRequest) *CreateReportCustomEventInvoker
- func (c *CocClient) CreateReportPrometheusEvent(request *model.CreateReportPrometheusEventRequest) (*model.CreateReportPrometheusEventResponse, error)
- func (c *CocClient) CreateReportPrometheusEventInvoker(request *model.CreateReportPrometheusEventRequest) *CreateReportPrometheusEventInvoker
- func (c *CocClient) CreateScript(request *model.CreateScriptRequest) (*model.CreateScriptResponse, error)
- func (c *CocClient) CreateScriptInvoker(request *model.CreateScriptRequest) *CreateScriptInvoker
- func (c *CocClient) CreateWarRoom(request *model.CreateWarRoomRequest) (*model.CreateWarRoomResponse, error)
- func (c *CocClient) CreateWarRoomInvoker(request *model.CreateWarRoomRequest) *CreateWarRoomInvoker
- func (c *CocClient) DeleteScript(request *model.DeleteScriptRequest) (*model.DeleteScriptResponse, error)
- func (c *CocClient) DeleteScriptInvoker(request *model.DeleteScriptRequest) *DeleteScriptInvoker
- func (c *CocClient) ExecutePublicScript(request *model.ExecutePublicScriptRequest) (*model.ExecutePublicScriptResponse, error)
- func (c *CocClient) ExecutePublicScriptInvoker(request *model.ExecutePublicScriptRequest) *ExecutePublicScriptInvoker
- func (c *CocClient) ExecuteScript(request *model.ExecuteScriptRequest) (*model.ExecuteScriptResponse, error)
- func (c *CocClient) ExecuteScriptInvoker(request *model.ExecuteScriptRequest) *ExecuteScriptInvoker
- func (c *CocClient) GetPublicScript(request *model.GetPublicScriptRequest) (*model.GetPublicScriptResponse, error)
- func (c *CocClient) GetPublicScriptInvoker(request *model.GetPublicScriptRequest) *GetPublicScriptInvoker
- func (c *CocClient) GetScript(request *model.GetScriptRequest) (*model.GetScriptResponse, error)
- func (c *CocClient) GetScriptInvoker(request *model.GetScriptRequest) *GetScriptInvoker
- func (c *CocClient) GetScriptJobBatch(request *model.GetScriptJobBatchRequest) (*model.GetScriptJobBatchResponse, error)
- func (c *CocClient) GetScriptJobBatchInvoker(request *model.GetScriptJobBatchRequest) *GetScriptJobBatchInvoker
- func (c *CocClient) GetScriptJobInfo(request *model.GetScriptJobInfoRequest) (*model.GetScriptJobInfoResponse, error)
- func (c *CocClient) GetScriptJobInfoInvoker(request *model.GetScriptJobInfoRequest) *GetScriptJobInfoInvoker
- func (c *CocClient) GetScriptJobStatistics(request *model.GetScriptJobStatisticsRequest) (*model.GetScriptJobStatisticsResponse, error)
- func (c *CocClient) GetScriptJobStatisticsInvoker(request *model.GetScriptJobStatisticsRequest) *GetScriptJobStatisticsInvoker
- func (c *CocClient) HandleCocIncident(request *model.HandleCocIncidentRequest) (*model.HandleCocIncidentResponse, error)
- func (c *CocClient) HandleCocIncidentInvoker(request *model.HandleCocIncidentRequest) *HandleCocIncidentInvoker
- func (c *CocClient) ListApplications(request *model.ListApplicationsRequest) (*model.ListApplicationsResponse, error)
- func (c *CocClient) ListApplicationsInvoker(request *model.ListApplicationsRequest) *ListApplicationsInvoker
- func (c *CocClient) ListAuthorizableTicketsExternal(request *model.ListAuthorizableTicketsExternalRequest) (*model.ListAuthorizableTicketsExternalResponse, error)
- func (c *CocClient) ListAuthorizableTicketsExternalInvoker(request *model.ListAuthorizableTicketsExternalRequest) *ListAuthorizableTicketsExternalInvoker
- func (c *CocClient) ListCocTicketOperationHistories(request *model.ListCocTicketOperationHistoriesRequest) (*model.ListCocTicketOperationHistoriesResponse, error)
- func (c *CocClient) ListCocTicketOperationHistoriesInvoker(request *model.ListCocTicketOperationHistoriesRequest) *ListCocTicketOperationHistoriesInvoker
- func (c *CocClient) ListInstanceCompliant(request *model.ListInstanceCompliantRequest) (*model.ListInstanceCompliantResponse, error)
- func (c *CocClient) ListInstanceCompliantInvoker(request *model.ListInstanceCompliantRequest) *ListInstanceCompliantInvoker
- func (c *CocClient) ListPublicScripts(request *model.ListPublicScriptsRequest) (*model.ListPublicScriptsResponse, error)
- func (c *CocClient) ListPublicScriptsInvoker(request *model.ListPublicScriptsRequest) *ListPublicScriptsInvoker
- func (c *CocClient) ListResource(request *model.ListResourceRequest) (*model.ListResourceResponse, error)
- func (c *CocClient) ListResourceInvoker(request *model.ListResourceRequest) *ListResourceInvoker
- func (c *CocClient) ListScriptJobBatches(request *model.ListScriptJobBatchesRequest) (*model.ListScriptJobBatchesResponse, error)
- func (c *CocClient) ListScriptJobBatchesInvoker(request *model.ListScriptJobBatchesRequest) *ListScriptJobBatchesInvoker
- func (c *CocClient) ListScriptJobs(request *model.ListScriptJobsRequest) (*model.ListScriptJobsResponse, error)
- func (c *CocClient) ListScriptJobsInvoker(request *model.ListScriptJobsRequest) *ListScriptJobsInvoker
- func (c *CocClient) ListScripts(request *model.ListScriptsRequest) (*model.ListScriptsResponse, error)
- func (c *CocClient) ListScriptsInvoker(request *model.ListScriptsRequest) *ListScriptsInvoker
- func (c *CocClient) ListWarRooms(request *model.ListWarRoomsRequest) (*model.ListWarRoomsResponse, error)
- func (c *CocClient) ListWarRoomsInvoker(request *model.ListWarRoomsRequest) *ListWarRoomsInvoker
- func (c *CocClient) OperateScriptJob(request *model.OperateScriptJobRequest) (*model.OperateScriptJobResponse, error)
- func (c *CocClient) OperateScriptJobInvoker(request *model.OperateScriptJobRequest) *OperateScriptJobInvoker
- func (c *CocClient) ShowCocIncidentDetail(request *model.ShowCocIncidentDetailRequest) (*model.ShowCocIncidentDetailResponse, error)
- func (c *CocClient) ShowCocIncidentDetailInvoker(request *model.ShowCocIncidentDetailRequest) *ShowCocIncidentDetailInvoker
- func (c *CocClient) ShowCocIssuesDetail(request *model.ShowCocIssuesDetailRequest) (*model.ShowCocIssuesDetailResponse, error)
- func (c *CocClient) ShowCocIssuesDetailInvoker(request *model.ShowCocIssuesDetailRequest) *ShowCocIssuesDetailInvoker
- func (c *CocClient) ShowInstancePatchItems(request *model.ShowInstancePatchItemsRequest) (*model.ShowInstancePatchItemsResponse, error)
- func (c *CocClient) ShowInstancePatchItemsInvoker(request *model.ShowInstancePatchItemsRequest) *ShowInstancePatchItemsInvoker
- func (c *CocClient) SyncResource(request *model.SyncResourceRequest) (*model.SyncResourceResponse, error)
- func (c *CocClient) SyncResourceInvoker(request *model.SyncResourceRequest) *SyncResourceInvoker
- func (c *CocClient) UpdateScript(request *model.UpdateScriptRequest) (*model.UpdateScriptResponse, error)
- func (c *CocClient) UpdateScriptInvoker(request *model.UpdateScriptRequest) *UpdateScriptInvoker
- type CreateCocIncidentInvoker
- type CreateCocIssuesInvoker
- type CreateReportCustomEventInvoker
- type CreateReportPrometheusEventInvoker
- type CreateScriptInvoker
- type CreateWarRoomInvoker
- type DeleteScriptInvoker
- type ExecutePublicScriptInvoker
- type ExecuteScriptInvoker
- type GetPublicScriptInvoker
- type GetScriptInvoker
- type GetScriptJobBatchInvoker
- type GetScriptJobInfoInvoker
- type GetScriptJobStatisticsInvoker
- type HandleCocIncidentInvoker
- type ListApplicationsInvoker
- type ListAuthorizableTicketsExternalInvoker
- type ListCocTicketOperationHistoriesInvoker
- type ListInstanceCompliantInvoker
- type ListPublicScriptsInvoker
- type ListResourceInvoker
- type ListScriptJobBatchesInvoker
- type ListScriptJobsInvoker
- type ListScriptsInvoker
- type ListWarRoomsInvoker
- type OperateScriptJobInvoker
- type ShowCocIncidentDetailInvoker
- type ShowCocIssuesDetailInvoker
- type ShowInstancePatchItemsInvoker
- type SyncResourceInvoker
- type UpdateScriptInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CocClientBuilder ¶
func CocClientBuilder() *httpclient.HcHttpClientBuilder
func GenReqDefForCreateCocIncident ¶
func GenReqDefForCreateCocIncident() *def.HttpRequestDef
func GenReqDefForCreateCocIssues ¶
func GenReqDefForCreateCocIssues() *def.HttpRequestDef
func GenReqDefForCreateReportCustomEvent ¶
func GenReqDefForCreateReportCustomEvent() *def.HttpRequestDef
func GenReqDefForCreateReportPrometheusEvent ¶
func GenReqDefForCreateReportPrometheusEvent() *def.HttpRequestDef
func GenReqDefForCreateScript ¶
func GenReqDefForCreateScript() *def.HttpRequestDef
func GenReqDefForCreateWarRoom ¶
func GenReqDefForCreateWarRoom() *def.HttpRequestDef
func GenReqDefForDeleteScript ¶
func GenReqDefForDeleteScript() *def.HttpRequestDef
func GenReqDefForExecutePublicScript ¶
func GenReqDefForExecutePublicScript() *def.HttpRequestDef
func GenReqDefForExecuteScript ¶
func GenReqDefForExecuteScript() *def.HttpRequestDef
func GenReqDefForGetPublicScript ¶
func GenReqDefForGetPublicScript() *def.HttpRequestDef
func GenReqDefForGetScript ¶
func GenReqDefForGetScript() *def.HttpRequestDef
func GenReqDefForGetScriptJobBatch ¶
func GenReqDefForGetScriptJobBatch() *def.HttpRequestDef
func GenReqDefForGetScriptJobInfo ¶
func GenReqDefForGetScriptJobInfo() *def.HttpRequestDef
func GenReqDefForGetScriptJobStatistics ¶
func GenReqDefForGetScriptJobStatistics() *def.HttpRequestDef
func GenReqDefForHandleCocIncident ¶
func GenReqDefForHandleCocIncident() *def.HttpRequestDef
func GenReqDefForListApplications ¶
func GenReqDefForListApplications() *def.HttpRequestDef
func GenReqDefForListAuthorizableTicketsExternal ¶
func GenReqDefForListAuthorizableTicketsExternal() *def.HttpRequestDef
func GenReqDefForListCocTicketOperationHistories ¶
func GenReqDefForListCocTicketOperationHistories() *def.HttpRequestDef
func GenReqDefForListInstanceCompliant ¶
func GenReqDefForListInstanceCompliant() *def.HttpRequestDef
func GenReqDefForListPublicScripts ¶
func GenReqDefForListPublicScripts() *def.HttpRequestDef
func GenReqDefForListResource ¶
func GenReqDefForListResource() *def.HttpRequestDef
func GenReqDefForListScriptJobBatches ¶
func GenReqDefForListScriptJobBatches() *def.HttpRequestDef
func GenReqDefForListScriptJobs ¶
func GenReqDefForListScriptJobs() *def.HttpRequestDef
func GenReqDefForListScripts ¶
func GenReqDefForListScripts() *def.HttpRequestDef
func GenReqDefForListWarRooms ¶
func GenReqDefForListWarRooms() *def.HttpRequestDef
func GenReqDefForOperateScriptJob ¶
func GenReqDefForOperateScriptJob() *def.HttpRequestDef
func GenReqDefForShowCocIncidentDetail ¶
func GenReqDefForShowCocIncidentDetail() *def.HttpRequestDef
func GenReqDefForShowCocIssuesDetail ¶
func GenReqDefForShowCocIssuesDetail() *def.HttpRequestDef
func GenReqDefForShowInstancePatchItems ¶
func GenReqDefForShowInstancePatchItems() *def.HttpRequestDef
func GenReqDefForSyncResource ¶
func GenReqDefForSyncResource() *def.HttpRequestDef
func GenReqDefForUpdateScript ¶
func GenReqDefForUpdateScript() *def.HttpRequestDef
Types ¶
type CocClient ¶
type CocClient struct {
HcClient *httpclient.HcHttpClient
}
func NewCocClient ¶
func NewCocClient(hcClient *httpclient.HcHttpClient) *CocClient
func (*CocClient) CreateCocIncident ¶
func (c *CocClient) CreateCocIncident(request *model.CreateCocIncidentRequest) (*model.CreateCocIncidentResponse, error)
CreateCocIncident CreateExternalIncident 创建事件单
CreateExternalIncident 创建事件单 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) CreateCocIncidentInvoker ¶
func (c *CocClient) CreateCocIncidentInvoker(request *model.CreateCocIncidentRequest) *CreateCocIncidentInvoker
CreateCocIncidentInvoker CreateExternalIncident 创建事件单
func (*CocClient) CreateCocIssues ¶
func (c *CocClient) CreateCocIssues(request *model.CreateCocIssuesRequest) (*model.CreateCocIssuesResponse, error)
CreateCocIssues CreateExternalIssues 创建问题单
CreateExternalIssues 创建问题单 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) CreateCocIssuesInvoker ¶
func (c *CocClient) CreateCocIssuesInvoker(request *model.CreateCocIssuesRequest) *CreateCocIssuesInvoker
CreateCocIssuesInvoker CreateExternalIssues 创建问题单
func (*CocClient) CreateReportCustomEvent ¶
func (c *CocClient) CreateReportCustomEvent(request *model.CreateReportCustomEventRequest) (*model.CreateReportCustomEventResponse, error)
CreateReportCustomEvent 支持用户自主接入告警数据
支持租户将自开发的监控系统按照标准化集成至COC,集成后告警会按照标准格式上报至COC告警中心
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) CreateReportCustomEventInvoker ¶
func (c *CocClient) CreateReportCustomEventInvoker(request *model.CreateReportCustomEventRequest) *CreateReportCustomEventInvoker
CreateReportCustomEventInvoker 支持用户自主接入告警数据
func (*CocClient) CreateReportPrometheusEvent ¶
func (c *CocClient) CreateReportPrometheusEvent(request *model.CreateReportPrometheusEventRequest) (*model.CreateReportPrometheusEventResponse, error)
CreateReportPrometheusEvent Prometheus事件接入
Prometheus事件接入 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) CreateReportPrometheusEventInvoker ¶
func (c *CocClient) CreateReportPrometheusEventInvoker(request *model.CreateReportPrometheusEventRequest) *CreateReportPrometheusEventInvoker
CreateReportPrometheusEventInvoker Prometheus事件接入
func (*CocClient) CreateScript ¶
func (c *CocClient) CreateScript(request *model.CreateScriptRequest) (*model.CreateScriptResponse, error)
CreateScript 创建脚本
创建作业脚本:自定义脚本 - 脚本有标签属性,表示是高危脚本。创建时候不需要对脚本进行是否是高危的二次校验。 - 进行租户隔离;北向接口创建的脚本,审批人字段不填写,默认不需要审批 - 约束条件: - 脚本名称:同一租户下,脚本名称不能重复,最大字符64个字符,支持中文+字母+数字+下划线。 - 脚本内容最大100kb。 - 脚本参数个数最多20个。 - 脚本描述:最大256个字符。 - 单个参数的参数名称 64个字符,只支持字母+数字+下划线。 - 单个参数的值最大1024个字符,正则表达式如下:^((?!\\.{2,})[a-zA-Z0-9_\\-/\\.\\*\\x20\\?:\",=+@\\\\\\[\\{\\]\\}])*$。 - 审批人最多支持5人。 - 脚本输出的日志总量只支持1MB。
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) CreateScriptInvoker ¶
func (c *CocClient) CreateScriptInvoker(request *model.CreateScriptRequest) *CreateScriptInvoker
CreateScriptInvoker 创建脚本
func (*CocClient) CreateWarRoom ¶
func (c *CocClient) CreateWarRoom(request *model.CreateWarRoomRequest) (*model.CreateWarRoomResponse, error)
CreateWarRoom 创建租户区WarRoom
创建租户区WarRoom
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) CreateWarRoomInvoker ¶
func (c *CocClient) CreateWarRoomInvoker(request *model.CreateWarRoomRequest) *CreateWarRoomInvoker
CreateWarRoomInvoker 创建租户区WarRoom
func (*CocClient) DeleteScript ¶
func (c *CocClient) DeleteScript(request *model.DeleteScriptRequest) (*model.DeleteScriptResponse, error)
DeleteScript 删除自定义脚本
删除作业脚本:自定义脚本。
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) DeleteScriptInvoker ¶
func (c *CocClient) DeleteScriptInvoker(request *model.DeleteScriptRequest) *DeleteScriptInvoker
DeleteScriptInvoker 删除自定义脚本
func (*CocClient) ExecutePublicScript ¶
func (c *CocClient) ExecutePublicScript(request *model.ExecutePublicScriptRequest) (*model.ExecutePublicScriptResponse, error)
ExecutePublicScript 执行公共脚本
执行公共脚本 脚本入参、超时时间、执行用户、资源受限 脚本入参支持20个。 单次下发的机器支持200个。 单次批次内机器数量最大10个。 最大批次数量为20批。
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ExecutePublicScriptInvoker ¶
func (c *CocClient) ExecutePublicScriptInvoker(request *model.ExecutePublicScriptRequest) *ExecutePublicScriptInvoker
ExecutePublicScriptInvoker 执行公共脚本
func (*CocClient) ExecuteScript ¶
func (c *CocClient) ExecuteScript(request *model.ExecuteScriptRequest) (*model.ExecuteScriptResponse, error)
ExecuteScript 执行自定义脚本
执行脚本
脚本入参、超时时间、执行用户、资源受限 脚本入参支持20个。 单次下发的机器支持200个。 单次批次内机器数量最大10个。 最大批次数量为20批。 脚本输出的日志总量只支持1MB。
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ExecuteScriptInvoker ¶
func (c *CocClient) ExecuteScriptInvoker(request *model.ExecuteScriptRequest) *ExecuteScriptInvoker
ExecuteScriptInvoker 执行自定义脚本
func (*CocClient) GetPublicScript ¶
func (c *CocClient) GetPublicScript(request *model.GetPublicScriptRequest) (*model.GetPublicScriptResponse, error)
GetPublicScript 展示公共脚本详情
展示公共脚本详情
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) GetPublicScriptInvoker ¶
func (c *CocClient) GetPublicScriptInvoker(request *model.GetPublicScriptRequest) *GetPublicScriptInvoker
GetPublicScriptInvoker 展示公共脚本详情
func (*CocClient) GetScript ¶
func (c *CocClient) GetScript(request *model.GetScriptRequest) (*model.GetScriptResponse, error)
GetScript 获取自定义脚本详情
获取脚本详情 约束条件: 只能查询自定义脚本详情
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) GetScriptInvoker ¶
func (c *CocClient) GetScriptInvoker(request *model.GetScriptRequest) *GetScriptInvoker
GetScriptInvoker 获取自定义脚本详情
func (*CocClient) GetScriptJobBatch ¶
func (c *CocClient) GetScriptJobBatch(request *model.GetScriptJobBatchRequest) (*model.GetScriptJobBatchResponse, error)
GetScriptJobBatch 展示批次详情
查询:批次详情,分页获取批次中的实例列表。 过滤条件:分页参数
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) GetScriptJobBatchInvoker ¶
func (c *CocClient) GetScriptJobBatchInvoker(request *model.GetScriptJobBatchRequest) *GetScriptJobBatchInvoker
GetScriptJobBatchInvoker 展示批次详情
func (*CocClient) GetScriptJobInfo ¶
func (c *CocClient) GetScriptJobInfo(request *model.GetScriptJobInfoRequest) (*model.GetScriptJobInfoResponse, error)
GetScriptJobInfo 展示脚本工单基本信息
查询执行:基本信息 执行类型、执行名称、创建人、创建时间、结束时间、执行状态、标签(脚本id,脚本名,执行脚本参数,执行用户,超时时长、成功率阈值)
不同的任务类型消费标签中的不同key
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) GetScriptJobInfoInvoker ¶
func (c *CocClient) GetScriptJobInfoInvoker(request *model.GetScriptJobInfoRequest) *GetScriptJobInfoInvoker
GetScriptJobInfoInvoker 展示脚本工单基本信息
func (*CocClient) GetScriptJobStatistics ¶
func (c *CocClient) GetScriptJobStatistics(request *model.GetScriptJobStatisticsRequest) (*model.GetScriptJobStatisticsResponse, error)
GetScriptJobStatistics 展示实例状态统计信息
查询:实例状态统计信息。
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) GetScriptJobStatisticsInvoker ¶
func (c *CocClient) GetScriptJobStatisticsInvoker(request *model.GetScriptJobStatisticsRequest) *GetScriptJobStatisticsInvoker
GetScriptJobStatisticsInvoker 展示实例状态统计信息
func (*CocClient) HandleCocIncident ¶
func (c *CocClient) HandleCocIncident(request *model.HandleCocIncidentRequest) (*model.HandleCocIncidentResponse, error)
HandleCocIncident HandleCocIncident处理事件单
HandleCocIncident 处理事件单 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) HandleCocIncidentInvoker ¶
func (c *CocClient) HandleCocIncidentInvoker(request *model.HandleCocIncidentRequest) *HandleCocIncidentInvoker
HandleCocIncidentInvoker HandleCocIncident处理事件单
func (*CocClient) ListApplications ¶
func (c *CocClient) ListApplications(request *model.ListApplicationsRequest) (*model.ListApplicationsResponse, error)
ListApplications 查询应用
查询应用
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListApplicationsInvoker ¶
func (c *CocClient) ListApplicationsInvoker(request *model.ListApplicationsRequest) *ListApplicationsInvoker
ListApplicationsInvoker 查询应用
func (*CocClient) ListAuthorizableTicketsExternal ¶
func (c *CocClient) ListAuthorizableTicketsExternal(request *model.ListAuthorizableTicketsExternalRequest) (*model.ListAuthorizableTicketsExternalResponse, error)
ListAuthorizableTicketsExternal 查询COC可授权单列表
查询COC可授权单列表(变更单号、事件单号、warroom和告警)
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListAuthorizableTicketsExternalInvoker ¶
func (c *CocClient) ListAuthorizableTicketsExternalInvoker(request *model.ListAuthorizableTicketsExternalRequest) *ListAuthorizableTicketsExternalInvoker
ListAuthorizableTicketsExternalInvoker 查询COC可授权单列表
func (*CocClient) ListCocTicketOperationHistories ¶
func (c *CocClient) ListCocTicketOperationHistories(request *model.ListCocTicketOperationHistoriesRequest) (*model.ListCocTicketOperationHistoriesResponse, error)
ListCocTicketOperationHistories GetCocTicketOperationHistories 获取事件单历史
ListCocTicketOperationHistories 获取事件单历史 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListCocTicketOperationHistoriesInvoker ¶
func (c *CocClient) ListCocTicketOperationHistoriesInvoker(request *model.ListCocTicketOperationHistoriesRequest) *ListCocTicketOperationHistoriesInvoker
ListCocTicketOperationHistoriesInvoker GetCocTicketOperationHistories 获取事件单历史
func (*CocClient) ListInstanceCompliant ¶
func (c *CocClient) ListInstanceCompliant(request *model.ListInstanceCompliantRequest) (*model.ListInstanceCompliantResponse, error)
ListInstanceCompliant 获取节点合规性报告
分页获取节点合规性报告
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListInstanceCompliantInvoker ¶
func (c *CocClient) ListInstanceCompliantInvoker(request *model.ListInstanceCompliantRequest) *ListInstanceCompliantInvoker
ListInstanceCompliantInvoker 获取节点合规性报告
func (*CocClient) ListPublicScripts ¶
func (c *CocClient) ListPublicScripts(request *model.ListPublicScriptsRequest) (*model.ListPublicScriptsResponse, error)
ListPublicScripts 获取公共脚本列表
获取公共脚本列表,分页逻辑:采用limit+marker方式,提高分页效率。用自增id作为marker参数
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListPublicScriptsInvoker ¶
func (c *CocClient) ListPublicScriptsInvoker(request *model.ListPublicScriptsRequest) *ListPublicScriptsInvoker
ListPublicScriptsInvoker 获取公共脚本列表
func (*CocClient) ListResource ¶
func (c *CocClient) ListResource(request *model.ListResourceRequest) (*model.ListResourceResponse, error)
ListResource 查询用户所有资源
查询用户所有资源
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListResourceInvoker ¶
func (c *CocClient) ListResourceInvoker(request *model.ListResourceRequest) *ListResourceInvoker
ListResourceInvoker 查询用户所有资源
func (*CocClient) ListScriptJobBatches ¶
func (c *CocClient) ListScriptJobBatches(request *model.ListScriptJobBatchesRequest) (*model.ListScriptJobBatchesResponse, error)
ListScriptJobBatches 展示批次列表
查询:批次列表 返回:批次index、批次标签
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListScriptJobBatchesInvoker ¶
func (c *CocClient) ListScriptJobBatchesInvoker(request *model.ListScriptJobBatchesRequest) *ListScriptJobBatchesInvoker
ListScriptJobBatchesInvoker 展示批次列表
func (*CocClient) ListScriptJobs ¶
func (c *CocClient) ListScriptJobs(request *model.ListScriptJobsRequest) (*model.ListScriptJobsResponse, error)
ListScriptJobs 展示工单列表
查询作业工单列表,分页查询 过滤:创建时间开始,创建时间结束、创建人 返回:id、脚本名称、区域、创建人、创建时间、结束时间、总耗时、状态
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListScriptJobsInvoker ¶
func (c *CocClient) ListScriptJobsInvoker(request *model.ListScriptJobsRequest) *ListScriptJobsInvoker
ListScriptJobsInvoker 展示工单列表
func (*CocClient) ListScripts ¶
func (c *CocClient) ListScripts(request *model.ListScriptsRequest) (*model.ListScriptsResponse, error)
ListScripts 查询脚本列表
作业脚本列表:自定义脚本
limit最大为100
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListScriptsInvoker ¶
func (c *CocClient) ListScriptsInvoker(request *model.ListScriptsRequest) *ListScriptsInvoker
ListScriptsInvoker 查询脚本列表
func (*CocClient) ListWarRooms ¶
func (c *CocClient) ListWarRooms(request *model.ListWarRoomsRequest) (*model.ListWarRoomsResponse, error)
ListWarRooms 查询租户区WarRoom信息列表
查询租户区WarRoom信息列表
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ListWarRoomsInvoker ¶
func (c *CocClient) ListWarRoomsInvoker(request *model.ListWarRoomsRequest) *ListWarRoomsInvoker
ListWarRoomsInvoker 查询租户区WarRoom信息列表
func (*CocClient) OperateScriptJob ¶
func (c *CocClient) OperateScriptJob(request *model.OperateScriptJobRequest) (*model.OperateScriptJobResponse, error)
OperateScriptJob 操作脚本工单
操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) OperateScriptJobInvoker ¶
func (c *CocClient) OperateScriptJobInvoker(request *model.OperateScriptJobRequest) *OperateScriptJobInvoker
OperateScriptJobInvoker 操作脚本工单
func (*CocClient) ShowCocIncidentDetail ¶
func (c *CocClient) ShowCocIncidentDetail(request *model.ShowCocIncidentDetailRequest) (*model.ShowCocIncidentDetailResponse, error)
ShowCocIncidentDetail GetCocIncidentDetail 获取事件单详细
ShowCocIncidentDetail 获取事件单详细 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ShowCocIncidentDetailInvoker ¶
func (c *CocClient) ShowCocIncidentDetailInvoker(request *model.ShowCocIncidentDetailRequest) *ShowCocIncidentDetailInvoker
ShowCocIncidentDetailInvoker GetCocIncidentDetail 获取事件单详细
func (*CocClient) ShowCocIssuesDetail ¶
func (c *CocClient) ShowCocIssuesDetail(request *model.ShowCocIssuesDetailRequest) (*model.ShowCocIssuesDetailResponse, error)
ShowCocIssuesDetail GetCocIssuesDetail 获取事件单详细
ShowCocIssuesDetail 获取事件单详细 ¶
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ShowCocIssuesDetailInvoker ¶
func (c *CocClient) ShowCocIssuesDetailInvoker(request *model.ShowCocIssuesDetailRequest) *ShowCocIssuesDetailInvoker
ShowCocIssuesDetailInvoker GetCocIssuesDetail 获取事件单详细
func (*CocClient) ShowInstancePatchItems ¶
func (c *CocClient) ShowInstancePatchItems(request *model.ShowInstancePatchItemsRequest) (*model.ShowInstancePatchItemsResponse, error)
ShowInstancePatchItems 分页获取节点补丁详情
分页获取节点补丁详情
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) ShowInstancePatchItemsInvoker ¶
func (c *CocClient) ShowInstancePatchItemsInvoker(request *model.ShowInstancePatchItemsRequest) *ShowInstancePatchItemsInvoker
ShowInstancePatchItemsInvoker 分页获取节点补丁详情
func (*CocClient) SyncResource ¶
func (c *CocClient) SyncResource(request *model.SyncResourceRequest) (*model.SyncResourceResponse, error)
SyncResource 从RMS同步用户所有资源
从RMS同步用户所有资源
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) SyncResourceInvoker ¶
func (c *CocClient) SyncResourceInvoker(request *model.SyncResourceRequest) *SyncResourceInvoker
SyncResourceInvoker 从RMS同步用户所有资源
func (*CocClient) UpdateScript ¶
func (c *CocClient) UpdateScript(request *model.UpdateScriptRequest) (*model.UpdateScriptResponse, error)
UpdateScript 修改脚本
修改作业脚本:自定义脚本 约束条件: 脚本名称:同一租户下,脚本名称不能重复,最大字符64个字符,支持中文+字母+数字+下划线。 脚本内容最大4096个字符。 脚本参数个数最多20个。 脚本描述:最大256个字符。 单个参数的参数名称 64个字符,只支持字母+数字+下划线。 单个参数的值最大1024个字符,正则表达式如下:^((?!.{2,})[a-zA-Z0-9_-/.*\\x20?:\",=+@\\[{]}])*$。 修改的脚本如果有审批人,在修改之后,需要再次选择审批人,查询审批
Please refer to HUAWEI cloud API Explorer for details.
func (*CocClient) UpdateScriptInvoker ¶
func (c *CocClient) UpdateScriptInvoker(request *model.UpdateScriptRequest) *UpdateScriptInvoker
UpdateScriptInvoker 修改脚本
type CreateCocIncidentInvoker ¶
type CreateCocIncidentInvoker struct {
*invoker.BaseInvoker
}
func (*CreateCocIncidentInvoker) Invoke ¶
func (i *CreateCocIncidentInvoker) Invoke() (*model.CreateCocIncidentResponse, error)
type CreateCocIssuesInvoker ¶
type CreateCocIssuesInvoker struct {
*invoker.BaseInvoker
}
func (*CreateCocIssuesInvoker) Invoke ¶
func (i *CreateCocIssuesInvoker) Invoke() (*model.CreateCocIssuesResponse, error)
type CreateReportCustomEventInvoker ¶
type CreateReportCustomEventInvoker struct {
*invoker.BaseInvoker
}
func (*CreateReportCustomEventInvoker) Invoke ¶
func (i *CreateReportCustomEventInvoker) Invoke() (*model.CreateReportCustomEventResponse, error)
type CreateReportPrometheusEventInvoker ¶
type CreateReportPrometheusEventInvoker struct {
*invoker.BaseInvoker
}
func (*CreateReportPrometheusEventInvoker) Invoke ¶
func (i *CreateReportPrometheusEventInvoker) Invoke() (*model.CreateReportPrometheusEventResponse, error)
type CreateScriptInvoker ¶
type CreateScriptInvoker struct {
*invoker.BaseInvoker
}
func (*CreateScriptInvoker) Invoke ¶
func (i *CreateScriptInvoker) Invoke() (*model.CreateScriptResponse, error)
type CreateWarRoomInvoker ¶
type CreateWarRoomInvoker struct {
*invoker.BaseInvoker
}
func (*CreateWarRoomInvoker) Invoke ¶
func (i *CreateWarRoomInvoker) Invoke() (*model.CreateWarRoomResponse, error)
type DeleteScriptInvoker ¶
type DeleteScriptInvoker struct {
*invoker.BaseInvoker
}
func (*DeleteScriptInvoker) Invoke ¶
func (i *DeleteScriptInvoker) Invoke() (*model.DeleteScriptResponse, error)
type ExecutePublicScriptInvoker ¶
type ExecutePublicScriptInvoker struct {
*invoker.BaseInvoker
}
func (*ExecutePublicScriptInvoker) Invoke ¶
func (i *ExecutePublicScriptInvoker) Invoke() (*model.ExecutePublicScriptResponse, error)
type ExecuteScriptInvoker ¶
type ExecuteScriptInvoker struct {
*invoker.BaseInvoker
}
func (*ExecuteScriptInvoker) Invoke ¶
func (i *ExecuteScriptInvoker) Invoke() (*model.ExecuteScriptResponse, error)
type GetPublicScriptInvoker ¶
type GetPublicScriptInvoker struct {
*invoker.BaseInvoker
}
func (*GetPublicScriptInvoker) Invoke ¶
func (i *GetPublicScriptInvoker) Invoke() (*model.GetPublicScriptResponse, error)
type GetScriptInvoker ¶
type GetScriptInvoker struct {
*invoker.BaseInvoker
}
func (*GetScriptInvoker) Invoke ¶
func (i *GetScriptInvoker) Invoke() (*model.GetScriptResponse, error)
type GetScriptJobBatchInvoker ¶
type GetScriptJobBatchInvoker struct {
*invoker.BaseInvoker
}
func (*GetScriptJobBatchInvoker) Invoke ¶
func (i *GetScriptJobBatchInvoker) Invoke() (*model.GetScriptJobBatchResponse, error)
type GetScriptJobInfoInvoker ¶
type GetScriptJobInfoInvoker struct {
*invoker.BaseInvoker
}
func (*GetScriptJobInfoInvoker) Invoke ¶
func (i *GetScriptJobInfoInvoker) Invoke() (*model.GetScriptJobInfoResponse, error)
type GetScriptJobStatisticsInvoker ¶
type GetScriptJobStatisticsInvoker struct {
*invoker.BaseInvoker
}
func (*GetScriptJobStatisticsInvoker) Invoke ¶
func (i *GetScriptJobStatisticsInvoker) Invoke() (*model.GetScriptJobStatisticsResponse, error)
type HandleCocIncidentInvoker ¶
type HandleCocIncidentInvoker struct {
*invoker.BaseInvoker
}
func (*HandleCocIncidentInvoker) Invoke ¶
func (i *HandleCocIncidentInvoker) Invoke() (*model.HandleCocIncidentResponse, error)
type ListApplicationsInvoker ¶
type ListApplicationsInvoker struct {
*invoker.BaseInvoker
}
func (*ListApplicationsInvoker) Invoke ¶
func (i *ListApplicationsInvoker) Invoke() (*model.ListApplicationsResponse, error)
type ListAuthorizableTicketsExternalInvoker ¶
type ListAuthorizableTicketsExternalInvoker struct {
*invoker.BaseInvoker
}
func (*ListAuthorizableTicketsExternalInvoker) Invoke ¶
func (i *ListAuthorizableTicketsExternalInvoker) Invoke() (*model.ListAuthorizableTicketsExternalResponse, error)
type ListCocTicketOperationHistoriesInvoker ¶
type ListCocTicketOperationHistoriesInvoker struct {
*invoker.BaseInvoker
}
func (*ListCocTicketOperationHistoriesInvoker) Invoke ¶
func (i *ListCocTicketOperationHistoriesInvoker) Invoke() (*model.ListCocTicketOperationHistoriesResponse, error)
type ListInstanceCompliantInvoker ¶
type ListInstanceCompliantInvoker struct {
*invoker.BaseInvoker
}
func (*ListInstanceCompliantInvoker) Invoke ¶
func (i *ListInstanceCompliantInvoker) Invoke() (*model.ListInstanceCompliantResponse, error)
type ListPublicScriptsInvoker ¶
type ListPublicScriptsInvoker struct {
*invoker.BaseInvoker
}
func (*ListPublicScriptsInvoker) Invoke ¶
func (i *ListPublicScriptsInvoker) Invoke() (*model.ListPublicScriptsResponse, error)
type ListResourceInvoker ¶
type ListResourceInvoker struct {
*invoker.BaseInvoker
}
func (*ListResourceInvoker) Invoke ¶
func (i *ListResourceInvoker) Invoke() (*model.ListResourceResponse, error)
type ListScriptJobBatchesInvoker ¶
type ListScriptJobBatchesInvoker struct {
*invoker.BaseInvoker
}
func (*ListScriptJobBatchesInvoker) Invoke ¶
func (i *ListScriptJobBatchesInvoker) Invoke() (*model.ListScriptJobBatchesResponse, error)
type ListScriptJobsInvoker ¶
type ListScriptJobsInvoker struct {
*invoker.BaseInvoker
}
func (*ListScriptJobsInvoker) Invoke ¶
func (i *ListScriptJobsInvoker) Invoke() (*model.ListScriptJobsResponse, error)
type ListScriptsInvoker ¶
type ListScriptsInvoker struct {
*invoker.BaseInvoker
}
func (*ListScriptsInvoker) Invoke ¶
func (i *ListScriptsInvoker) Invoke() (*model.ListScriptsResponse, error)
type ListWarRoomsInvoker ¶
type ListWarRoomsInvoker struct {
*invoker.BaseInvoker
}
func (*ListWarRoomsInvoker) Invoke ¶
func (i *ListWarRoomsInvoker) Invoke() (*model.ListWarRoomsResponse, error)
type OperateScriptJobInvoker ¶
type OperateScriptJobInvoker struct {
*invoker.BaseInvoker
}
func (*OperateScriptJobInvoker) Invoke ¶
func (i *OperateScriptJobInvoker) Invoke() (*model.OperateScriptJobResponse, error)
type ShowCocIncidentDetailInvoker ¶
type ShowCocIncidentDetailInvoker struct {
*invoker.BaseInvoker
}
func (*ShowCocIncidentDetailInvoker) Invoke ¶
func (i *ShowCocIncidentDetailInvoker) Invoke() (*model.ShowCocIncidentDetailResponse, error)
type ShowCocIssuesDetailInvoker ¶
type ShowCocIssuesDetailInvoker struct {
*invoker.BaseInvoker
}
func (*ShowCocIssuesDetailInvoker) Invoke ¶
func (i *ShowCocIssuesDetailInvoker) Invoke() (*model.ShowCocIssuesDetailResponse, error)
type ShowInstancePatchItemsInvoker ¶
type ShowInstancePatchItemsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowInstancePatchItemsInvoker) Invoke ¶
func (i *ShowInstancePatchItemsInvoker) Invoke() (*model.ShowInstancePatchItemsResponse, error)
type SyncResourceInvoker ¶
type SyncResourceInvoker struct {
*invoker.BaseInvoker
}
func (*SyncResourceInvoker) Invoke ¶
func (i *SyncResourceInvoker) Invoke() (*model.SyncResourceResponse, error)
type UpdateScriptInvoker ¶
type UpdateScriptInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateScriptInvoker) Invoke ¶
func (i *UpdateScriptInvoker) Invoke() (*model.UpdateScriptResponse, error)