Documentation ¶
Index ¶
- type AddScriptModel
- type AddScriptModelType
- type AddScriptModelTypeEnum
- type ApplicationQueryResponseData
- type AuthorizableTicketBody
- type AuthorizeTicketCommonInfo
- type AuthorizeTicketCommonInfoStatus
- type AuthorizeTicketCommonInfoStatusEnum
- type AuthorizeTicketCommonInfoTicketType
- type AuthorizeTicketCommonInfoTicketTypeEnum
- type AuthorizeTicketInfo
- type AuthorizeTicketInfoStatus
- type AuthorizeTicketInfoStatusEnum
- type AuthorizeTicketInfoTicketType
- type AuthorizeTicketInfoTicketTypeEnum
- type BaseResponse
- type BatchListResourceResponseData
- type CocIssuesTicketDetailInfoResponseData
- type ComplianceItem
- type CompliantSummary
- type CreateCocIncidentRequest
- type CreateCocIncidentResponse
- type CreateCocIssuesRequest
- type CreateCocIssuesResponse
- type CreateExternalIncidentRequest
- type CreateExternalIncidentResponseData
- type CreateExternalIssuesRequest
- type CreateExternalIssuesRequestLevel
- type CreateExternalIssuesRequestLevelEnum
- type CreateExternalIssuesRequestReproduceProbability
- type CreateExternalIssuesRequestReproduceProbabilityEnum
- type CreateExternalIssuesRequestTicketType
- type CreateExternalIssuesRequestTicketTypeEnum
- type CreateExternalIssuesRequestVirtualScheduleType
- type CreateExternalIssuesRequestVirtualScheduleTypeEnum
- type CreateExternalIssuesResponseData
- type CreateReportCustomEventRequest
- type CreateReportCustomEventResponse
- type CreateReportPrometheusEventRequest
- type CreateReportPrometheusEventResponse
- type CreateScriptRequest
- type CreateScriptResponse
- type CreateWarRoomRequest
- type CreateWarRoomRequestBody
- type CreateWarRoomResponse
- type Customttribute
- type DeleteScriptRequest
- type DeleteScriptResponse
- type EditScriptModel
- type EnumDataInfo
- type ExectionInstanceModel
- type ExectionInstanceModelStatus
- type ExectionInstanceModelStatusEnum
- type ExectuionStatistic
- type ExecuteInstancesBatchInfo
- type ExecuteInstancesBatchInfoRotationStrategy
- type ExecuteInstancesBatchInfoRotationStrategyEnum
- type ExecutePublicScriptRequest
- type ExecutePublicScriptResponse
- type ExecuteResourceInstance
- type ExecuteResourceInstanceType
- type ExecuteResourceInstanceTypeEnum
- type ExecuteScriptRequest
- type ExecuteScriptResponse
- type ExecutionSummary
- type ExtraFieldInfo
- type GetPublicScriptRequest
- type GetPublicScriptResponse
- type GetScriptJobBatchRequest
- type GetScriptJobBatchRequestStatus
- type GetScriptJobBatchRequestStatusEnum
- type GetScriptJobBatchResponse
- type GetScriptJobInfoRequest
- type GetScriptJobInfoResponse
- type GetScriptJobStatisticsRequest
- type GetScriptJobStatisticsResponse
- type GetScriptRequest
- type GetScriptResponse
- type HandleCocIncidentRequest
- type HandleCocIncidentResponse
- type HandleExternalIncidentRequest
- type HandleExternalIncidentResponseData
- type IncidentTicketInfoResponseData
- type InstanceCompliant
- type JobScriptBatchDetailModel
- type JobScriptBatchListModel
- type JobScriptBatchListModelRotationStrategy
- type JobScriptBatchListModelRotationStrategyEnum
- type JobScriptOrderInfoModel
- type JobScriptOrderInfoModelStatus
- type JobScriptOrderInfoModelStatusEnum
- type JobScriptOrderInfoProp
- type JobScriptOrderListModel
- type JobScriptOrderListModelStatus
- type JobScriptOrderListModelStatusEnum
- type JobScriptOrderListPage
- type JobScriptOrderListProp
- type JobScriptOrderOperationBody
- type JobScriptOrderOperationBodyOperationType
- type JobScriptOrderOperationBodyOperationTypeEnum
- type JobScriptOrderStatisticsModel
- type ListApplicationsRequest
- type ListApplicationsResponse
- type ListAuthorizableTicketsExternalRequest
- type ListAuthorizableTicketsExternalResponse
- type ListAuthorizableTicketsReq
- type ListBaseRequest
- type ListBaseResponse
- type ListCocTicketOperationHistoriesRequest
- type ListCocTicketOperationHistoriesRequestTicketType
- type ListCocTicketOperationHistoriesRequestTicketTypeEnum
- type ListCocTicketOperationHistoriesResponse
- type ListInstanceCompliantRequest
- type ListInstanceCompliantResponse
- type ListPublicScriptsRequest
- type ListPublicScriptsRequestRiskLevel
- type ListPublicScriptsRequestRiskLevelEnum
- type ListPublicScriptsRequestType
- type ListPublicScriptsRequestTypeEnum
- type ListPublicScriptsResponse
- type ListResourceRequest
- type ListResourceResponse
- type ListScriptJobBatchesRequest
- type ListScriptJobBatchesResponse
- type ListScriptJobsRequest
- type ListScriptJobsRequestStatus
- type ListScriptJobsRequestStatusEnum
- type ListScriptJobsResponse
- type ListScriptsRequest
- type ListScriptsRequestRiskLevel
- type ListScriptsRequestRiskLevelEnum
- type ListScriptsRequestType
- type ListScriptsRequestTypeEnum
- type ListScriptsResponse
- type ListTenantWarRoomRequestBody
- type ListTicketParams
- type ListWarRoomsRequest
- type ListWarRoomsResponse
- type NonCompliantSummary
- type ObjectFilter
- type OperateScriptJobRequest
- type OperateScriptJobResponse
- type PatchDetail
- type PublicScriptDetailModel
- type PublicScriptDetailModelType
- type PublicScriptDetailModelTypeEnum
- type PublicScriptListModel
- type PublicScriptListModelType
- type PublicScriptListModelTypeEnum
- type PublicScriptListPage
- type PublicScriptPropertiesModel
- type PublicScriptPropertiesModelRiskLevel
- type PublicScriptPropertiesModelRiskLevelEnum
- type ReportCustomEventRequestBody
- type ReportCustomEventRequestBodyAlarmLevel
- type ReportCustomEventRequestBodyAlarmLevelEnum
- type ReportCustomEventRequestBodyAlarmStatus
- type ReportCustomEventRequestBodyAlarmStatusEnum
- type ResourceInstance
- type ResourceInstanceProp
- type ResourceInstanceType
- type ResourceInstanceTypeEnum
- type ReviewerInfo
- type ScheduleGroupInfo
- type ScriptDetailModel
- type ScriptDetailModelStatus
- type ScriptDetailModelStatusEnum
- type ScriptDetailModelType
- type ScriptDetailModelTypeEnum
- type ScriptExecuteInputParam
- type ScriptExecuteInputParamParamValue
- type ScriptExecuteInputParamParamValueEnum
- type ScriptExecuteModel
- type ScriptExecuteParam
- type ScriptExecuteParamReference
- type ScriptExecuteParamReferenceParamId
- type ScriptExecuteParamReferenceParamIdEnum
- type ScriptListModel
- type ScriptListModelStatus
- type ScriptListModelStatusEnum
- type ScriptListModelType
- type ScriptListModelTypeEnum
- type ScriptListPage
- type ScriptParamDefine
- type ScriptPropertiesModel
- type ScriptPropertiesModelProtocol
- type ScriptPropertiesModelProtocolEnum
- type ScriptPropertiesModelRiskLevel
- type ScriptPropertiesModelRiskLevelEnum
- type SeveritySummary
- type ShowCocIncidentDetailRequest
- type ShowCocIncidentDetailResponse
- type ShowCocIssuesDetailRequest
- type ShowCocIssuesDetailResponse
- type ShowInstancePatchItemsRequest
- type ShowInstancePatchItemsResponse
- type SyncResourceReq
- type SyncResourceRequest
- type SyncResourceResponse
- type Tag
- type TicketHistoryInfo
- type TicketInfoEnumData
- type UpdateScriptRequest
- type UpdateScriptResponse
- type UpdateTicketHistoryInfo
- type WarRoomEnumeration
- type WarRoomIncident
- type WarRoomTenantInfo
- type WarRoomTenantInfoImpactedApplication
- type WarRoomTenantInfoRegions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddScriptModel ¶
type AddScriptModel struct { // 脚本名称:只能包含中文、英文、数字、下划线 Name string `json:"name"` Properties *ScriptPropertiesModel `json:"properties"` // 脚本描述 Description string `json:"description"` // 脚本类型: 对于脚本后缀: SHELL:.sh PYTHON:.py BAT:.bat Type AddScriptModelType `json:"type"` // 脚本内容 Content string `json:"content"` // 企业项目ID,默认为:0 EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 脚本入参 ScriptParams *[]ScriptParamDefine `json:"script_params,omitempty"` }
AddScriptModel **约束:** - 1. 同poject_id下不允许同名脚本 - 2. 修改脚本时,不允许修改:脚本名称、project_id - 3. 字段长度和范围限制 - 脚本内容长度,创建时为做校验
func (AddScriptModel) String ¶
func (o AddScriptModel) String() string
type AddScriptModelType ¶
type AddScriptModelType struct {
// contains filtered or unexported fields
}
func (AddScriptModelType) MarshalJSON ¶
func (c AddScriptModelType) MarshalJSON() ([]byte, error)
func (*AddScriptModelType) UnmarshalJSON ¶
func (c *AddScriptModelType) UnmarshalJSON(b []byte) error
func (AddScriptModelType) Value ¶
func (c AddScriptModelType) Value() string
type AddScriptModelTypeEnum ¶
type AddScriptModelTypeEnum struct { SHELL AddScriptModelType PYTHON AddScriptModelType BAT AddScriptModelType }
func GetAddScriptModelTypeEnum ¶
func GetAddScriptModelTypeEnum() AddScriptModelTypeEnum
type ApplicationQueryResponseData ¶
type ApplicationQueryResponseData struct { // 应用id Id *string `json:"id,omitempty"` // 应用名称 Name *string `json:"name,omitempty"` // 应用code Code *string `json:"code,omitempty"` // 租户id DomainId *string `json:"domain_id,omitempty"` // 父节点id ParentId *string `json:"parent_id,omitempty"` // 描述信息 Description *string `json:"description,omitempty"` // 应用path路径,由应用id用.拼接 Path *string `json:"path,omitempty"` }
func (ApplicationQueryResponseData) String ¶
func (o ApplicationQueryResponseData) String() string
type AuthorizableTicketBody ¶
type AuthorizableTicketBody struct { // 可授权单类型 Type *string `json:"type,omitempty"` // scope ID,一般为region id ScopeId *string `json:"scope_id,omitempty"` // 目标 ID,一般为应用id TargetId *string `json:"target_id,omitempty"` }
func (AuthorizableTicketBody) String ¶
func (o AuthorizableTicketBody) String() string
type AuthorizeTicketCommonInfo ¶
type AuthorizeTicketCommonInfo struct { // 关联单号 TicketId *string `json:"ticket_id,omitempty"` // 目标 ID,一般为应用id TargetId *string `json:"target_id,omitempty"` // scope ID,一般为region id ScopeId *string `json:"scope_id,omitempty"` // 工单名称 Title *string `json:"title,omitempty"` // 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM TicketType *AuthorizeTicketCommonInfoTicketType `json:"ticket_type,omitempty"` // 当前责任人 Owner *[]string `json:"owner,omitempty"` // 级别 Level *string `json:"level,omitempty"` // 状态,取值:open/close Status *AuthorizeTicketCommonInfoStatus `json:"status,omitempty"` // 起始时间 BeginTime *string `json:"begin_time,omitempty"` // 结束时间 EndTime *string `json:"end_time,omitempty"` }
func (AuthorizeTicketCommonInfo) String ¶
func (o AuthorizeTicketCommonInfo) String() string
type AuthorizeTicketCommonInfoStatus ¶
type AuthorizeTicketCommonInfoStatus struct {
// contains filtered or unexported fields
}
func (AuthorizeTicketCommonInfoStatus) MarshalJSON ¶
func (c AuthorizeTicketCommonInfoStatus) MarshalJSON() ([]byte, error)
func (*AuthorizeTicketCommonInfoStatus) UnmarshalJSON ¶
func (c *AuthorizeTicketCommonInfoStatus) UnmarshalJSON(b []byte) error
func (AuthorizeTicketCommonInfoStatus) Value ¶
func (c AuthorizeTicketCommonInfoStatus) Value() string
type AuthorizeTicketCommonInfoStatusEnum ¶
type AuthorizeTicketCommonInfoStatusEnum struct { OPEN AuthorizeTicketCommonInfoStatus CLOSE AuthorizeTicketCommonInfoStatus }
func GetAuthorizeTicketCommonInfoStatusEnum ¶
func GetAuthorizeTicketCommonInfoStatusEnum() AuthorizeTicketCommonInfoStatusEnum
type AuthorizeTicketCommonInfoTicketType ¶
type AuthorizeTicketCommonInfoTicketType struct {
// contains filtered or unexported fields
}
func (AuthorizeTicketCommonInfoTicketType) MarshalJSON ¶
func (c AuthorizeTicketCommonInfoTicketType) MarshalJSON() ([]byte, error)
func (*AuthorizeTicketCommonInfoTicketType) UnmarshalJSON ¶
func (c *AuthorizeTicketCommonInfoTicketType) UnmarshalJSON(b []byte) error
func (AuthorizeTicketCommonInfoTicketType) Value ¶
func (c AuthorizeTicketCommonInfoTicketType) Value() string
type AuthorizeTicketCommonInfoTicketTypeEnum ¶
type AuthorizeTicketCommonInfoTicketTypeEnum struct { CHANGE AuthorizeTicketCommonInfoTicketType INCIDENT AuthorizeTicketCommonInfoTicketType WAR_ROOM AuthorizeTicketCommonInfoTicketType ALARM AuthorizeTicketCommonInfoTicketType }
func GetAuthorizeTicketCommonInfoTicketTypeEnum ¶
func GetAuthorizeTicketCommonInfoTicketTypeEnum() AuthorizeTicketCommonInfoTicketTypeEnum
type AuthorizeTicketInfo ¶
type AuthorizeTicketInfo struct { // 关联单号 TicketId *string `json:"ticket_id,omitempty"` // 目标 ID,一般为应用id TargetId *string `json:"target_id,omitempty"` // scope ID,一般为region id ScopeId *string `json:"scope_id,omitempty"` // 工单名称 Title *string `json:"title,omitempty"` // 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM TicketType *AuthorizeTicketInfoTicketType `json:"ticket_type,omitempty"` // 当前责任人 Owner *[]string `json:"owner,omitempty"` // 级别 Level *string `json:"level,omitempty"` // 状态,取值:open/close Status *AuthorizeTicketInfoStatus `json:"status,omitempty"` // 起始时间 BeginTime *string `json:"begin_time,omitempty"` // 结束时间 EndTime *string `json:"end_time,omitempty"` }
func (AuthorizeTicketInfo) String ¶
func (o AuthorizeTicketInfo) String() string
type AuthorizeTicketInfoStatus ¶
type AuthorizeTicketInfoStatus struct {
// contains filtered or unexported fields
}
func (AuthorizeTicketInfoStatus) MarshalJSON ¶
func (c AuthorizeTicketInfoStatus) MarshalJSON() ([]byte, error)
func (*AuthorizeTicketInfoStatus) UnmarshalJSON ¶
func (c *AuthorizeTicketInfoStatus) UnmarshalJSON(b []byte) error
func (AuthorizeTicketInfoStatus) Value ¶
func (c AuthorizeTicketInfoStatus) Value() string
type AuthorizeTicketInfoStatusEnum ¶
type AuthorizeTicketInfoStatusEnum struct { OPEN AuthorizeTicketInfoStatus CLOSE AuthorizeTicketInfoStatus }
func GetAuthorizeTicketInfoStatusEnum ¶
func GetAuthorizeTicketInfoStatusEnum() AuthorizeTicketInfoStatusEnum
type AuthorizeTicketInfoTicketType ¶
type AuthorizeTicketInfoTicketType struct {
// contains filtered or unexported fields
}
func (AuthorizeTicketInfoTicketType) MarshalJSON ¶
func (c AuthorizeTicketInfoTicketType) MarshalJSON() ([]byte, error)
func (*AuthorizeTicketInfoTicketType) UnmarshalJSON ¶
func (c *AuthorizeTicketInfoTicketType) UnmarshalJSON(b []byte) error
func (AuthorizeTicketInfoTicketType) Value ¶
func (c AuthorizeTicketInfoTicketType) Value() string
type AuthorizeTicketInfoTicketTypeEnum ¶
type AuthorizeTicketInfoTicketTypeEnum struct { CHANGE AuthorizeTicketInfoTicketType INCIDENT AuthorizeTicketInfoTicketType WAR_ROOM AuthorizeTicketInfoTicketType ALARM AuthorizeTicketInfoTicketType }
func GetAuthorizeTicketInfoTicketTypeEnum ¶
func GetAuthorizeTicketInfoTicketTypeEnum() AuthorizeTicketInfoTicketTypeEnum
type BaseResponse ¶
type BaseResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` }
func (BaseResponse) String ¶
func (o BaseResponse) String() string
type BatchListResourceResponseData ¶
type BatchListResourceResponseData struct { // CMDB分配的资源ID Id *string `json:"id,omitempty"` // 云服务分配的资源ID ResourceId *string `json:"resource_id,omitempty"` // 资源名称 Name *string `json:"name,omitempty"` // 云服务名称 Provider *string `json:"provider,omitempty"` // 资源类型 Type *string `json:"type,omitempty"` // Openstack中的项目I ProjectId *string `json:"project_id,omitempty"` // region ID RegionId *string `json:"region_id,omitempty"` // 企业项目ID EpId *string `json:"ep_id,omitempty"` // 资源标签 Tags *[]Tag `json:"tags,omitempty"` // uniAgent唯一id AgentId *string `json:"agent_id,omitempty"` // uniAgent状态 AgentState *string `json:"agent_state,omitempty"` // 资源详细属性 Properties map[string]interface{} `json:"properties,omitempty"` // 采集属性 IngestProperties map[string]string `json:"ingest_properties,omitempty"` // 是否已托管 IsDelegated *bool `json:"is_delegated,omitempty"` }
func (BatchListResourceResponseData) String ¶
func (o BatchListResourceResponseData) String() string
type CocIssuesTicketDetailInfoResponseData ¶
type CocIssuesTicketDetailInfoResponseData struct { // 问题类型 TicketType *string `json:"ticket_type,omitempty"` // 问题等级 Level *string `json:"level,omitempty"` // 影响服务 ImpactedCloudServices *string `json:"impacted_cloud_services,omitempty"` // 责任服务 RootCauseCloudService *string `json:"root_cause_cloud_service,omitempty"` // 根因类型 RootCauseType *string `json:"root_cause_type,omitempty"` // 根因分析 RootCauseComment *string `json:"root_cause_comment,omitempty"` // 解决方案 Solution *string `json:"solution,omitempty"` // 问题接口人id IssueContactPerson *string `json:"issue_contact_person,omitempty"` // 重现概率 ReproduceProbability *string `json:"reproduce_probability,omitempty"` // 发现问题的版本号 IssueVersion *string `json:"issue_version,omitempty"` // 问题标题 Title *string `json:"title,omitempty"` // 排班类型 VirtualScheduleType *string `json:"virtual_schedule_type,omitempty"` // 区域 Regions *string `json:"regions,omitempty"` // 描述 Description *string `json:"description,omitempty"` // 发现时间 FountTime *int64 `json:"fount_time,omitempty"` // 是否共性问题 IsCommonIssue *bool `json:"is_common_issue,omitempty"` // 是否需要变更 IsNeedChange *bool `json:"is_need_change,omitempty"` // 创建人 Creator *string `json:"creator,omitempty"` // 操作人 Operator *string `json:"operator,omitempty"` // 问题单id TicketId *string `json:"ticket_id,omitempty"` // 责任人 Assignee *string `json:"assignee,omitempty"` // 问题单状态 WorkFlowStatus *string `json:"work_flow_status,omitempty"` // 阶段 Phase *string `json:"phase,omitempty"` // 更新时间 UpdateTime *int64 `json:"update_time,omitempty"` // 创建时间 CreateTime *int64 `json:"create_time,omitempty"` // 是否删除 IsDeleted *bool `json:"is_deleted,omitempty"` // 枚举列表 EnumDataList *[]TicketInfoEnumData `json:"enum_data_list,omitempty"` }
CocIssuesTicketDetailInfoResponseData CocIssuesTicketDetailInfoResponseData
func (CocIssuesTicketDetailInfoResponseData) String ¶
func (o CocIssuesTicketDetailInfoResponseData) String() string
type ComplianceItem ¶
type ComplianceItem struct { // 节点id InstanceId *string `json:"instance_id,omitempty"` // 补丁名称 Title *string `json:"title,omitempty"` // 分类 Classification *string `json:"classification,omitempty"` // 严重性级别 SeverityLevel *string `json:"severity_level,omitempty"` // 合规性级别 ComplianceLevel *string `json:"compliance_level,omitempty"` PatchDetail *PatchDetail `json:"patch_detail,omitempty"` }
func (ComplianceItem) String ¶
func (o ComplianceItem) String() string
type CompliantSummary ¶
type CompliantSummary struct { // 合规补丁数量 CompliantCount *int32 `json:"compliant_count,omitempty"` SeveritySummary *SeveritySummary `json:"severity_summary,omitempty"` }
func (CompliantSummary) String ¶
func (o CompliantSummary) String() string
type CreateCocIncidentRequest ¶
type CreateCocIncidentRequest struct {
Body *CreateExternalIncidentRequest `json:"body,omitempty"`
}
CreateCocIncidentRequest Request Object
func (CreateCocIncidentRequest) String ¶
func (o CreateCocIncidentRequest) String() string
type CreateCocIncidentResponse ¶
type CreateCocIncidentResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` Data *CreateExternalIncidentResponseData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
CreateCocIncidentResponse Response Object
func (CreateCocIncidentResponse) String ¶
func (o CreateCocIncidentResponse) String() string
type CreateCocIssuesRequest ¶
type CreateCocIssuesRequest struct {
Body *CreateExternalIssuesRequest `json:"body,omitempty"`
}
CreateCocIssuesRequest Request Object
func (CreateCocIssuesRequest) String ¶
func (o CreateCocIssuesRequest) String() string
type CreateCocIssuesResponse ¶
type CreateCocIssuesResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` Data *CreateExternalIssuesResponseData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
CreateCocIssuesResponse Response Object
func (CreateCocIssuesResponse) String ¶
func (o CreateCocIssuesResponse) String() string
type CreateExternalIncidentRequest ¶
type CreateExternalIncidentRequest struct { // 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 Region *[]string `json:"region,omitempty"` // 企业项目ID,现在只支持1个 EnterpriseProject *[]string `json:"enterprise_project,omitempty"` // 归属应用ID,现在只支持1个 CurrentCloudService *[]string `json:"current_cloud_service,omitempty"` // 事件级别 参考:枚举 事件级别incident_level IncidentLevel string `json:"incident_level"` // 业务是否中断,取值:true/false IsServiceInterrupt bool `json:"is_service_interrupt"` // 事件类别 参考:枚举 事件类别incident_type IncidentType string `json:"incident_type"` // 事件标题,最大长度:200 IncidentTitle string `json:"incident_title"` // 事件描述,最大长度:600 IncidentDescription *string `json:"incident_description,omitempty"` // 单据来源 参考:枚举 事件来源incident_source IncidentSource string `json:"incident_source"` // 责任人,排班场景和排班角色不能同时为空,现在只支持1个 IncidentAssignee *[]string `json:"incident_assignee,omitempty"` // 排班场景,责任人和排班角色不能同时为空 AssigneeScene *string `json:"assignee_scene,omitempty"` // 排班角色,排班场景和责任人不能同时为空 AssigneeRole *string `json:"assignee_role,omitempty"` // 创单人 Creator string `json:"creator"` }
CreateExternalIncidentRequest CreateExternalIncidentRequest 创单请求参数
func (CreateExternalIncidentRequest) String ¶
func (o CreateExternalIncidentRequest) String() string
type CreateExternalIncidentResponseData ¶
type CreateExternalIncidentResponseData struct { // 事件单号 IncidentNum string `json:"incident_num"` }
CreateExternalIncidentResponseData CreateExternalIncidentResponseData
func (CreateExternalIncidentResponseData) String ¶
func (o CreateExternalIncidentResponseData) String() string
type CreateExternalIssuesRequest ¶
type CreateExternalIssuesRequest struct { // 创建人id Creator *string `json:"creator,omitempty"` // 标题 Title string `json:"title"` // 描述 Description string `json:"description"` // 区域Code,最大100个 Regions *[]string `json:"regions,omitempty"` // 企业项目id EnterpriseProject *string `json:"enterprise_project,omitempty"` // 问题来源 issues_source_1000 事件 issues_source_2000 Warroom issues_source_3000 告警 Source *string `json:"source,omitempty"` // 问题来源id SourceId *string `json:"source_id,omitempty"` // 发现时间 FountTime *int64 `json:"fount_time,omitempty"` // 影响应用ID,最多10条 ImpactedCloudServices []string `json:"impacted_cloud_services"` // 问题级别 issues_level_1000 致命 issues_level_2000 严重 issues_level_3000 一般 Level CreateExternalIssuesRequestLevel `json:"level"` // 问题类型 issues_type_1000 功能性问题 issues_type_2000 性能问题 issues_type_3000 可靠性问题 issues_type_4000 兼容性问题 issues_type_5000 用户体验问题 issues_type_6000 可维护性问题 issues_type_7000 变更类问题 issues_type_8000 安全问题 issues_type_9000 工程实施类 issues_type_10000 交付部署问题 issues_type_11000 LLD规划问题 issues_type_12000 供用商问题 issues_type_13000 咨询类问题 issues_type_14000 需求类问题 issues_type_15000 其他问题 TicketType CreateExternalIssuesRequestTicketType `json:"ticket_type"` // 重现概率 issues_reproduce_probability_1000 有条件必现 issues_reproduce_probability_2000 有条件概率重现 issues_reproduce_probability_3000 无规律重现 issues_reproduce_probability_4000 很难重现 ReproduceProbability CreateExternalIssuesRequestReproduceProbability `json:"reproduce_probability"` // 责任应用ID,必填,限1条 RootCauseCloudService []string `json:"root_cause_cloud_service"` // 排班类型 参考:枚举 issues_mgmt_virtual_schedule_type_1000 排班,schedule_scenes排班场景,virtual_schedule_role排班角色必填,指定排班 issues_mgmt_virtual_schedule_type_2000 个人,issue_contact_person字段必填,指定责任人 VirtualScheduleType CreateExternalIssuesRequestVirtualScheduleType `json:"virtual_schedule_type"` // 排班场景id ScheduleScenes *string `json:"schedule_scenes,omitempty"` // 排班角色id VirtualScheduleRole *string `json:"virtual_schedule_role,omitempty"` // 问题责任人id IssueContactPerson *string `json:"issue_contact_person,omitempty"` }
CreateExternalIssuesRequest CreateExternalIssuesRequest 创单请求参数
func (CreateExternalIssuesRequest) String ¶
func (o CreateExternalIssuesRequest) String() string
type CreateExternalIssuesRequestLevel ¶
type CreateExternalIssuesRequestLevel struct {
// contains filtered or unexported fields
}
func (CreateExternalIssuesRequestLevel) MarshalJSON ¶
func (c CreateExternalIssuesRequestLevel) MarshalJSON() ([]byte, error)
func (*CreateExternalIssuesRequestLevel) UnmarshalJSON ¶
func (c *CreateExternalIssuesRequestLevel) UnmarshalJSON(b []byte) error
func (CreateExternalIssuesRequestLevel) Value ¶
func (c CreateExternalIssuesRequestLevel) Value() string
type CreateExternalIssuesRequestLevelEnum ¶
type CreateExternalIssuesRequestLevelEnum struct { ISSUES_LEVEL_1000 CreateExternalIssuesRequestLevel ISSUES_LEVEL_2000 CreateExternalIssuesRequestLevel ISSUES_LEVEL_3000 CreateExternalIssuesRequestLevel }
func GetCreateExternalIssuesRequestLevelEnum ¶
func GetCreateExternalIssuesRequestLevelEnum() CreateExternalIssuesRequestLevelEnum
type CreateExternalIssuesRequestReproduceProbability ¶
type CreateExternalIssuesRequestReproduceProbability struct {
// contains filtered or unexported fields
}
func (CreateExternalIssuesRequestReproduceProbability) MarshalJSON ¶
func (c CreateExternalIssuesRequestReproduceProbability) MarshalJSON() ([]byte, error)
func (*CreateExternalIssuesRequestReproduceProbability) UnmarshalJSON ¶
func (c *CreateExternalIssuesRequestReproduceProbability) UnmarshalJSON(b []byte) error
func (CreateExternalIssuesRequestReproduceProbability) Value ¶
func (c CreateExternalIssuesRequestReproduceProbability) Value() string
type CreateExternalIssuesRequestReproduceProbabilityEnum ¶
type CreateExternalIssuesRequestReproduceProbabilityEnum struct { ISSUES_REPRODUCE_PROBABILITY_1000 CreateExternalIssuesRequestReproduceProbability ISSUES_REPRODUCE_PROBABILITY_2000 CreateExternalIssuesRequestReproduceProbability ISSUES_REPRODUCE_PROBABILITY_3000 CreateExternalIssuesRequestReproduceProbability ISSUES_REPRODUCE_PROBABILITY_4000 CreateExternalIssuesRequestReproduceProbability }
func GetCreateExternalIssuesRequestReproduceProbabilityEnum ¶
func GetCreateExternalIssuesRequestReproduceProbabilityEnum() CreateExternalIssuesRequestReproduceProbabilityEnum
type CreateExternalIssuesRequestTicketType ¶
type CreateExternalIssuesRequestTicketType struct {
// contains filtered or unexported fields
}
func (CreateExternalIssuesRequestTicketType) MarshalJSON ¶
func (c CreateExternalIssuesRequestTicketType) MarshalJSON() ([]byte, error)
func (*CreateExternalIssuesRequestTicketType) UnmarshalJSON ¶
func (c *CreateExternalIssuesRequestTicketType) UnmarshalJSON(b []byte) error
func (CreateExternalIssuesRequestTicketType) Value ¶
func (c CreateExternalIssuesRequestTicketType) Value() string
type CreateExternalIssuesRequestTicketTypeEnum ¶
type CreateExternalIssuesRequestTicketTypeEnum struct { ISSUES_TYPE_1000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_2000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_3000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_4000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_5000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_6000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_7000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_8000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_9000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_10000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_11000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_12000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_13000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_14000 CreateExternalIssuesRequestTicketType ISSUES_TYPE_15000 CreateExternalIssuesRequestTicketType }
func GetCreateExternalIssuesRequestTicketTypeEnum ¶
func GetCreateExternalIssuesRequestTicketTypeEnum() CreateExternalIssuesRequestTicketTypeEnum
type CreateExternalIssuesRequestVirtualScheduleType ¶
type CreateExternalIssuesRequestVirtualScheduleType struct {
// contains filtered or unexported fields
}
func (CreateExternalIssuesRequestVirtualScheduleType) MarshalJSON ¶
func (c CreateExternalIssuesRequestVirtualScheduleType) MarshalJSON() ([]byte, error)
func (*CreateExternalIssuesRequestVirtualScheduleType) UnmarshalJSON ¶
func (c *CreateExternalIssuesRequestVirtualScheduleType) UnmarshalJSON(b []byte) error
func (CreateExternalIssuesRequestVirtualScheduleType) Value ¶
func (c CreateExternalIssuesRequestVirtualScheduleType) Value() string
type CreateExternalIssuesRequestVirtualScheduleTypeEnum ¶
type CreateExternalIssuesRequestVirtualScheduleTypeEnum struct { ISSUES_MGMT_VIRTUAL_SCHEDULE_TYPE_1000 CreateExternalIssuesRequestVirtualScheduleType ISSUES_MGMT_VIRTUAL_SCHEDULE_TYPE_2000 CreateExternalIssuesRequestVirtualScheduleType }
func GetCreateExternalIssuesRequestVirtualScheduleTypeEnum ¶
func GetCreateExternalIssuesRequestVirtualScheduleTypeEnum() CreateExternalIssuesRequestVirtualScheduleTypeEnum
type CreateExternalIssuesResponseData ¶
type CreateExternalIssuesResponseData struct { // 问题单号 TicketId string `json:"ticket_id"` }
CreateExternalIssuesResponseData CreateExternalIssuesResponseData
func (CreateExternalIssuesResponseData) String ¶
func (o CreateExternalIssuesResponseData) String() string
type CreateReportCustomEventRequest ¶
type CreateReportCustomEventRequest struct { // 集成ID IntegrationKey string `json:"integration_key"` Body *ReportCustomEventRequestBody `json:"body,omitempty"` }
CreateReportCustomEventRequest Request Object
func (CreateReportCustomEventRequest) String ¶
func (o CreateReportCustomEventRequest) String() string
type CreateReportCustomEventResponse ¶
type CreateReportCustomEventResponse struct { // 服务标识 ProviderCode *string `json:"provider_code,omitempty"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode *string `json:"error_code,omitempty"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
CreateReportCustomEventResponse Response Object
func (CreateReportCustomEventResponse) String ¶
func (o CreateReportCustomEventResponse) String() string
type CreateReportPrometheusEventRequest ¶
type CreateReportPrometheusEventRequest struct { // 集成ID IntegrationKey string `json:"integration_key"` Body map[string]interface{} `json:"body,omitempty"` }
CreateReportPrometheusEventRequest Request Object
func (CreateReportPrometheusEventRequest) String ¶
func (o CreateReportPrometheusEventRequest) String() string
type CreateReportPrometheusEventResponse ¶
type CreateReportPrometheusEventResponse struct { // 服务标识 ProviderCode *string `json:"provider_code,omitempty"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode *string `json:"error_code,omitempty"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` HttpStatusCode int `json:"-"` }
CreateReportPrometheusEventResponse Response Object
func (CreateReportPrometheusEventResponse) String ¶
func (o CreateReportPrometheusEventResponse) String() string
type CreateScriptRequest ¶
type CreateScriptRequest struct { // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` Body *AddScriptModel `json:"body,omitempty"` }
CreateScriptRequest Request Object
func (CreateScriptRequest) String ¶
func (o CreateScriptRequest) String() string
type CreateScriptResponse ¶
type CreateScriptResponse struct { // script_uuid Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
CreateScriptResponse Response Object
func (CreateScriptResponse) String ¶
func (o CreateScriptResponse) String() string
type CreateWarRoomRequest ¶
type CreateWarRoomRequest struct {
Body *CreateWarRoomRequestBody `json:"body,omitempty"`
}
CreateWarRoomRequest Request Object
func (CreateWarRoomRequest) String ¶
func (o CreateWarRoomRequest) String() string
type CreateWarRoomRequestBody ¶
type CreateWarRoomRequestBody struct { // WarRoom名称 WarRoomName string `json:"war_room_name"` // WarRoom描述 Description *string `json:"description,omitempty"` // 区域id RegionCodeList *[]string `json:"region_code_list,omitempty"` // 影响应用id ApplicationIdList []string `json:"application_id_list"` // 事件单号 IncidentNumber string `json:"incident_number"` // 排班分组 ScheduleGroup []ScheduleGroupInfo `json:"schedule_group"` // 参与者 Participant *[]string `json:"participant,omitempty"` // WarRoom管理员 WarRoomAdmin string `json:"war_room_admin"` // 应用名称列表 ApplicationNames *[]string `json:"application_names,omitempty"` // region名称列表 RegionNames *[]string `json:"region_names,omitempty"` // 企业项目id EnterpriseProjectId string `json:"enterprise_project_id"` // 创建群组方式 NotificationType *string `json:"notification_type,omitempty"` }
func (CreateWarRoomRequestBody) String ¶
func (o CreateWarRoomRequestBody) String() string
type CreateWarRoomResponse ¶
type CreateWarRoomResponse struct { // 服务标识 ProviderCode *string `json:"provider_code,omitempty"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode *string `json:"error_code,omitempty"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` // WarRoom id Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
CreateWarRoomResponse Response Object
func (CreateWarRoomResponse) String ¶
func (o CreateWarRoomResponse) String() string
type Customttribute ¶
type Customttribute struct { // 自定义属性key Key string `json:"key"` // 自定义属性的value Value string `json:"value"` }
Customttribute 当前执行脚本的自定义属性,仅用于表示本次执行的产生工单的信息
func (Customttribute) String ¶
func (o Customttribute) String() string
type DeleteScriptRequest ¶
type DeleteScriptRequest struct { // 脚本uuid ScriptUuid string `json:"script_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
DeleteScriptRequest Request Object
func (DeleteScriptRequest) String ¶
func (o DeleteScriptRequest) String() string
type DeleteScriptResponse ¶
type DeleteScriptResponse struct { // 被删除脚本的uuid Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
DeleteScriptResponse Response Object
func (DeleteScriptResponse) String ¶
func (o DeleteScriptResponse) String() string
type EditScriptModel ¶
type EditScriptModel struct { // 脚本描述 Description string `json:"description"` // 脚本内容 Content string `json:"content"` Properties *ScriptPropertiesModel `json:"properties,omitempty"` // 脚本入参 ScriptParams *[]ScriptParamDefine `json:"script_params,omitempty"` }
EditScriptModel 修改脚本
func (EditScriptModel) String ¶
func (o EditScriptModel) String() string
type EnumDataInfo ¶
type EnumDataInfo struct { // 扩展字段 CurrentCloudServiceId *string `json:"current_cloud_service_id,omitempty"` // 扩展字段 Description *string `json:"description,omitempty"` // 扩展字段 LevelId *string `json:"level_id,omitempty"` // 扩展字段 MtmRegion *string `json:"mtm_region,omitempty"` // 扩展字段 MtmType *string `json:"mtm_type,omitempty"` // 扩展字段 SourceId *string `json:"source_id,omitempty"` // 扩展字段 Title *string `json:"title,omitempty"` // 是否变更事件 IsChangeEvent *bool `json:"is_change_event,omitempty"` // 是否变更事件 IsServiceInterrupt *bool `json:"is_service_interrupt,omitempty"` // 是否删除 IsDeleted *bool `json:"is_deleted,omitempty"` // 匹配类型 MatchType *string `json:"match_type,omitempty"` // 所属单号 TicketId *string `json:"ticket_id,omitempty"` // 中文名 NameZh *string `json:"name_zh,omitempty"` // 英文名 NameEn *string `json:"name_en,omitempty"` // 工号 UserName *string `json:"user_name,omitempty"` // 中文名 FullNameZh *string `json:"full_name_zh,omitempty"` // 英文名 FullNameEn *string `json:"full_name_en,omitempty"` // 中文名路径 NameZhPath *string `json:"name_zh_path,omitempty"` // 中文名路径 NameEnPath *string `json:"name_en_path,omitempty"` // status Status *string `json:"status,omitempty"` // 唯一id BizId *string `json:"biz_id,omitempty"` // 字段id PropId *string `json:"prop_id,omitempty"` // 模型id ModelId *string `json:"model_id,omitempty"` // 枚举类型 EnumTypeId *string `json:"enum_type_id,omitempty"` }
EnumDataInfo 基础数据
func (EnumDataInfo) String ¶
func (o EnumDataInfo) String() string
type ExectionInstanceModel ¶
type ExectionInstanceModel struct { // 主键id Id *int64 `json:"id,omitempty"` TargetInstance *ResourceInstance `json:"target_instance,omitempty"` // 创建时间 GmtCreated *int64 `json:"gmt_created,omitempty"` // 完成时间 GmtFinished *int64 `json:"gmt_finished,omitempty"` // 耗时时间,单位:秒 ExecuteCosts *int64 `json:"execute_costs,omitempty"` // 实例执行状态 Status *ExectionInstanceModelStatus `json:"status,omitempty"` // 实例执行日志 Message *string `json:"message,omitempty"` }
ExectionInstanceModel 执行主机实例详情
func (ExectionInstanceModel) String ¶
func (o ExectionInstanceModel) String() string
type ExectionInstanceModelStatus ¶
type ExectionInstanceModelStatus struct {
// contains filtered or unexported fields
}
func (ExectionInstanceModelStatus) MarshalJSON ¶
func (c ExectionInstanceModelStatus) MarshalJSON() ([]byte, error)
func (*ExectionInstanceModelStatus) UnmarshalJSON ¶
func (c *ExectionInstanceModelStatus) UnmarshalJSON(b []byte) error
func (ExectionInstanceModelStatus) Value ¶
func (c ExectionInstanceModelStatus) Value() string
type ExectionInstanceModelStatusEnum ¶
type ExectionInstanceModelStatusEnum struct { READY ExectionInstanceModelStatus PROCESSING ExectionInstanceModelStatus ABNORMAL ExectionInstanceModelStatus CANCELED ExectionInstanceModelStatus FINISHED ExectionInstanceModelStatus ROLLBACKED ExectionInstanceModelStatus }
func GetExectionInstanceModelStatusEnum ¶
func GetExectionInstanceModelStatusEnum() ExectionInstanceModelStatusEnum
type ExectuionStatistic ¶
type ExectuionStatistic struct { // 执行实例状态 InstanceStatus string `json:"instance_status"` // 该状态下执行实例个数 InstanceCount int32 `json:"instance_count"` // 该状态下批次index列表 BatchIndexes []int32 `json:"batch_indexes"` }
ExectuionStatistic 执行实例状态和批次统计
func (ExectuionStatistic) String ¶
func (o ExectuionStatistic) String() string
type ExecuteInstancesBatchInfo ¶
type ExecuteInstancesBatchInfo struct { // 批次索引,从1开始,未校验:最大值 BatchIndex int32 `json:"batch_index"` // 目标节点列表 TargetInstances []ExecuteResourceInstance `json:"target_instances"` // 暂停继续策略 RotationStrategy ExecuteInstancesBatchInfoRotationStrategy `json:"rotation_strategy"` }
func (ExecuteInstancesBatchInfo) String ¶
func (o ExecuteInstancesBatchInfo) String() string
type ExecuteInstancesBatchInfoRotationStrategy ¶
type ExecuteInstancesBatchInfoRotationStrategy struct {
// contains filtered or unexported fields
}
func (ExecuteInstancesBatchInfoRotationStrategy) MarshalJSON ¶
func (c ExecuteInstancesBatchInfoRotationStrategy) MarshalJSON() ([]byte, error)
func (*ExecuteInstancesBatchInfoRotationStrategy) UnmarshalJSON ¶
func (c *ExecuteInstancesBatchInfoRotationStrategy) UnmarshalJSON(b []byte) error
func (ExecuteInstancesBatchInfoRotationStrategy) Value ¶
func (c ExecuteInstancesBatchInfoRotationStrategy) Value() string
type ExecuteInstancesBatchInfoRotationStrategyEnum ¶
type ExecuteInstancesBatchInfoRotationStrategyEnum struct { CONTINUE ExecuteInstancesBatchInfoRotationStrategy PAUSE ExecuteInstancesBatchInfoRotationStrategy }
func GetExecuteInstancesBatchInfoRotationStrategyEnum ¶
func GetExecuteInstancesBatchInfoRotationStrategyEnum() ExecuteInstancesBatchInfoRotationStrategyEnum
type ExecutePublicScriptRequest ¶
type ExecutePublicScriptRequest struct { // 公共脚本Uuid ScriptUuid string `json:"script_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` Body *ScriptExecuteModel `json:"body,omitempty"` }
ExecutePublicScriptRequest Request Object
func (ExecutePublicScriptRequest) String ¶
func (o ExecutePublicScriptRequest) String() string
type ExecutePublicScriptResponse ¶
type ExecutePublicScriptResponse struct { // 执行公共脚本返回体:execute_uuid Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ExecutePublicScriptResponse Response Object
func (ExecutePublicScriptResponse) String ¶
func (o ExecutePublicScriptResponse) String() string
type ExecuteResourceInstance ¶
type ExecuteResourceInstance struct { // ecs云服务器ID ResourceId string `json:"resource_id"` // 服务器所属region RegionId string `json:"region_id"` // 资源提供者:ECS,不传默认为:ECS。请保证一次执行, 每个实例的provider是一致的。后续扩展CCE等 Provider *string `json:"provider,omitempty"` // 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 约束: -不允许跨type支持 Type *ExecuteResourceInstanceType `json:"type,omitempty"` // 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为10 - value长度为20 - map长度最大为5 - 禁止填写敏感数据 CustomAttributes *[]Customttribute `json:"custom_attributes,omitempty"` // 该参数已废弃,传入该参数不会生效。 AgentSn *string `json:"agent_sn,omitempty"` // 该参数已废弃,传入该参数不会生效。 ProjectId *string `json:"project_id,omitempty"` }
ExecuteResourceInstance 执行脚本时需要传的机器信息
func (ExecuteResourceInstance) String ¶
func (o ExecuteResourceInstance) String() string
type ExecuteResourceInstanceType ¶
type ExecuteResourceInstanceType struct {
// contains filtered or unexported fields
}
func (ExecuteResourceInstanceType) MarshalJSON ¶
func (c ExecuteResourceInstanceType) MarshalJSON() ([]byte, error)
func (*ExecuteResourceInstanceType) UnmarshalJSON ¶
func (c *ExecuteResourceInstanceType) UnmarshalJSON(b []byte) error
func (ExecuteResourceInstanceType) Value ¶
func (c ExecuteResourceInstanceType) Value() string
type ExecuteResourceInstanceTypeEnum ¶
type ExecuteResourceInstanceTypeEnum struct {
CLOUDSERVER ExecuteResourceInstanceType
}
func GetExecuteResourceInstanceTypeEnum ¶
func GetExecuteResourceInstanceTypeEnum() ExecuteResourceInstanceTypeEnum
type ExecuteScriptRequest ¶
type ExecuteScriptRequest struct { // 脚本UUID ScriptUuid string `json:"script_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` Body *ScriptExecuteModel `json:"body,omitempty"` }
ExecuteScriptRequest Request Object
func (ExecuteScriptRequest) String ¶
func (o ExecuteScriptRequest) String() string
type ExecuteScriptResponse ¶
type ExecuteScriptResponse struct { // execute_uuid Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ExecuteScriptResponse Response Object
func (ExecuteScriptResponse) String ¶
func (o ExecuteScriptResponse) String() string
type ExecutionSummary ¶
type ExecutionSummary struct { // 工单Id OrderId *string `json:"order_id,omitempty"` // 脚本执行Id JobId *string `json:"job_id,omitempty"` // 报告时间 ReportTime *int64 `json:"report_time,omitempty"` }
ExecutionSummary 执行相关信息
func (ExecutionSummary) String ¶
func (o ExecutionSummary) String() string
type ExtraFieldInfo ¶
type ExtraFieldInfo struct { // 扩展字段 CurrentCloudServiceId *string `json:"current_cloud_service_id,omitempty"` // 扩展字段 Description *string `json:"description,omitempty"` // 扩展字段 LevelId *string `json:"level_id,omitempty"` // 扩展字段 MtmRegion *string `json:"mtm_region,omitempty"` // 扩展字段 MtmType *string `json:"mtm_type,omitempty"` // 扩展字段 SourceId *string `json:"source_id,omitempty"` // 扩展字段 Title *string `json:"title,omitempty"` // 是否变更事件 IsChangeEvent *bool `json:"is_change_event,omitempty"` // 是否变更事件 IsServiceInterrupt *bool `json:"is_service_interrupt,omitempty"` }
func (ExtraFieldInfo) String ¶
func (o ExtraFieldInfo) String() string
type GetPublicScriptRequest ¶
type GetPublicScriptRequest struct { // 公共脚本Uuid ScriptUuid string `json:"script_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
GetPublicScriptRequest Request Object
func (GetPublicScriptRequest) String ¶
func (o GetPublicScriptRequest) String() string
type GetPublicScriptResponse ¶
type GetPublicScriptResponse struct { Data *PublicScriptDetailModel `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
GetPublicScriptResponse Response Object
func (GetPublicScriptResponse) String ¶
func (o GetPublicScriptResponse) String() string
type GetScriptJobBatchRequest ¶
type GetScriptJobBatchRequest struct { // 批次index BatchIndex int32 `json:"batch_index"` // 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 ExecuteUuid string `json:"execute_uuid"` // 实例执行状态 READY:待执行 PROCESSING:执行中 ABNORMAL:异常 CANCELED:已取消 FINISHED:成功 Status *GetScriptJobBatchRequestStatus `json:"status,omitempty"` // 分页参数:每页返回记录个数限制 Limit int32 `json:"limit"` // 分页参数:上一页最后一个记录id Marker int64 `json:"marker"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
GetScriptJobBatchRequest Request Object
func (GetScriptJobBatchRequest) String ¶
func (o GetScriptJobBatchRequest) String() string
type GetScriptJobBatchRequestStatus ¶
type GetScriptJobBatchRequestStatus struct {
// contains filtered or unexported fields
}
func (GetScriptJobBatchRequestStatus) MarshalJSON ¶
func (c GetScriptJobBatchRequestStatus) MarshalJSON() ([]byte, error)
func (*GetScriptJobBatchRequestStatus) UnmarshalJSON ¶
func (c *GetScriptJobBatchRequestStatus) UnmarshalJSON(b []byte) error
func (GetScriptJobBatchRequestStatus) Value ¶
func (c GetScriptJobBatchRequestStatus) Value() string
type GetScriptJobBatchRequestStatusEnum ¶
type GetScriptJobBatchRequestStatusEnum struct { READY GetScriptJobBatchRequestStatus PROCESSING GetScriptJobBatchRequestStatus ABNORMAL GetScriptJobBatchRequestStatus CANCELED GetScriptJobBatchRequestStatus FINISHED GetScriptJobBatchRequestStatus }
func GetGetScriptJobBatchRequestStatusEnum ¶
func GetGetScriptJobBatchRequestStatusEnum() GetScriptJobBatchRequestStatusEnum
type GetScriptJobBatchResponse ¶
type GetScriptJobBatchResponse struct { Data *JobScriptBatchDetailModel `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
GetScriptJobBatchResponse Response Object
func (GetScriptJobBatchResponse) String ¶
func (o GetScriptJobBatchResponse) String() string
type GetScriptJobInfoRequest ¶
type GetScriptJobInfoRequest struct { // 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 ExecuteUuid string `json:"execute_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
GetScriptJobInfoRequest Request Object
func (GetScriptJobInfoRequest) String ¶
func (o GetScriptJobInfoRequest) String() string
type GetScriptJobInfoResponse ¶
type GetScriptJobInfoResponse struct { Data *JobScriptOrderInfoModel `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
GetScriptJobInfoResponse Response Object
func (GetScriptJobInfoResponse) String ¶
func (o GetScriptJobInfoResponse) String() string
type GetScriptJobStatisticsRequest ¶
type GetScriptJobStatisticsRequest struct { // 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 ExecuteUuid string `json:"execute_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
GetScriptJobStatisticsRequest Request Object
func (GetScriptJobStatisticsRequest) String ¶
func (o GetScriptJobStatisticsRequest) String() string
type GetScriptJobStatisticsResponse ¶
type GetScriptJobStatisticsResponse struct { Data *JobScriptOrderStatisticsModel `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
GetScriptJobStatisticsResponse Response Object
func (GetScriptJobStatisticsResponse) String ¶
func (o GetScriptJobStatisticsResponse) String() string
type GetScriptRequest ¶
type GetScriptRequest struct { // 脚本UUID ScriptUuid string `json:"script_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
GetScriptRequest Request Object
func (GetScriptRequest) String ¶
func (o GetScriptRequest) String() string
type GetScriptResponse ¶
type GetScriptResponse struct { Data *ScriptDetailModel `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
GetScriptResponse Response Object
func (GetScriptResponse) String ¶
func (o GetScriptResponse) String() string
type HandleCocIncidentRequest ¶
type HandleCocIncidentRequest struct {
Body *HandleExternalIncidentRequest `json:"body,omitempty"`
}
HandleCocIncidentRequest Request Object
func (HandleCocIncidentRequest) String ¶
func (o HandleCocIncidentRequest) String() string
type HandleCocIncidentResponse ¶
type HandleCocIncidentResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` Data *HandleExternalIncidentResponseData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
HandleCocIncidentResponse Response Object
func (HandleCocIncidentResponse) String ¶
func (o HandleCocIncidentResponse) String() string
type HandleExternalIncidentRequest ¶
type HandleExternalIncidentRequest struct { // 事件单号 IncidentNum string `json:"incident_num"` // 操作人ID Operator string `json:"operator"` // 操作类型 OperateKey string `json:"operate_key"` // 入参 Parameter map[string]interface{} `json:"parameter,omitempty"` }
HandleExternalIncidentRequest HandleExternalIncidentRequest
func (HandleExternalIncidentRequest) String ¶
func (o HandleExternalIncidentRequest) String() string
type HandleExternalIncidentResponseData ¶
type HandleExternalIncidentResponseData struct { }
HandleExternalIncidentResponseData HandleExternalIncidentResponseData
func (HandleExternalIncidentResponseData) String ¶
func (o HandleExternalIncidentResponseData) String() string
type IncidentTicketInfoResponseData ¶
type IncidentTicketInfoResponseData struct { // 事件单号 IncidentNum *string `json:"incident_num,omitempty"` // 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 Region *[]string `json:"region,omitempty"` // 企业项目ID,现在只支持1个 EnterpriseProject *[]string `json:"enterprise_project,omitempty"` // 归属应用ID,现在只支持1个 CurrentCloudService *[]string `json:"current_cloud_service,omitempty"` // 事件级别 参考:枚举 事件级别incident_level IncidentLevel *string `json:"incident_level,omitempty"` // 业务是否中断,取值:true/false IsServiceInterrupt *bool `json:"is_service_interrupt,omitempty"` // 事件类别 参考:枚举 事件类别incident_type IncidentType *string `json:"incident_type,omitempty"` // 事件标题,最大长度:200 IncidentTitle *string `json:"incident_title,omitempty"` // 事件描述,最大长度:600 IncidentDescription *string `json:"incident_description,omitempty"` // 单据来源 参考:枚举 事件来源incident_source IncidentSource *string `json:"incident_source,omitempty"` // 责任人,排班场景和排班角色不能同时为空,现在只支持1个 IncidentAssignee *[]string `json:"incident_assignee,omitempty"` // 排班场景,责任人和排班角色不能同时为空 AssigneeScene *string `json:"assignee_scene,omitempty"` // 排班角色,排班场景和责任人不能同时为空 AssigneeRole *string `json:"assignee_role,omitempty"` // warroom_id WarroomId *string `json:"warroom_id,omitempty"` // 最后一次提交解决方案时间戳 HandleTime *int64 `json:"handle_time,omitempty"` // 状态KEY Status *string `json:"status,omitempty"` // 创单时间戳 CreateTime *int64 `json:"create_time,omitempty"` // 创单人 Creator *string `json:"creator,omitempty"` // 枚举列表 EnumDataList *[]TicketInfoEnumData `json:"enum_data_list,omitempty"` }
IncidentTicketInfoResponseData IncidentTicketInfoResponseData
func (IncidentTicketInfoResponseData) String ¶
func (o IncidentTicketInfoResponseData) String() string
type InstanceCompliant ¶
type InstanceCompliant struct { CompliantSummary *CompliantSummary `json:"compliant_summary,omitempty"` NonCompliantSummary *NonCompliantSummary `json:"non_compliant_summary,omitempty"` ExecutionSummary *ExecutionSummary `json:"execution_summary,omitempty"` // id Id *string `json:"id,omitempty"` // 企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 节点名称 Name *string `json:"name,omitempty"` // 节点ID InstanceId *string `json:"instance_id,omitempty"` // cce集群节点ID NodeId *string `json:"node_id,omitempty"` // 节点IP Ip *string `json:"ip,omitempty"` // 弹性公网ip Eip *string `json:"eip,omitempty"` // 区域 Region *string `json:"region,omitempty"` // 分组 Group *string `json:"group,omitempty"` // 报告场景(CCE,ECS) ReportScene *string `json:"report_scene,omitempty"` // cce 集群信息id CceInfoId *string `json:"cce_info_id,omitempty"` // 合规性状态 Status *string `json:"status,omitempty"` // 基线id BaselineId *string `json:"baseline_id,omitempty"` // 基线名称 BaselineName *string `json:"baseline_name,omitempty"` // 基线规则类型 RuleType *string `json:"rule_type,omitempty"` // 操作系统 OperatingSystem *string `json:"operating_system,omitempty"` }
InstanceCompliant 节点合规性报告
func (InstanceCompliant) String ¶
func (o InstanceCompliant) String() string
type JobScriptBatchDetailModel ¶
type JobScriptBatchDetailModel struct { // 批次索引,从1开始 BatchIndex *int32 `json:"batch_index,omitempty"` // 批次内执行实例数量 TotalInstances *int32 `json:"total_instances,omitempty"` // 执行实例列表,分页 ExecuteInstances *[]ExectionInstanceModel `json:"execute_instances,omitempty"` }
JobScriptBatchDetailModel 执行批次详情
func (JobScriptBatchDetailModel) String ¶
func (o JobScriptBatchDetailModel) String() string
type JobScriptBatchListModel ¶
type JobScriptBatchListModel struct { // 批次索引,从1开始 BatchIndex *int32 `json:"batch_index,omitempty"` // 批次内实例节点数量 TotalInstances *int32 `json:"total_instances,omitempty"` // 暂停继续策略 RotationStrategy *JobScriptBatchListModelRotationStrategy `json:"rotation_strategy,omitempty"` // 批次标签: Properties *string `json:"properties,omitempty"` }
JobScriptBatchListModel 执行批次列表
func (JobScriptBatchListModel) String ¶
func (o JobScriptBatchListModel) String() string
type JobScriptBatchListModelRotationStrategy ¶
type JobScriptBatchListModelRotationStrategy struct {
// contains filtered or unexported fields
}
func (JobScriptBatchListModelRotationStrategy) MarshalJSON ¶
func (c JobScriptBatchListModelRotationStrategy) MarshalJSON() ([]byte, error)
func (*JobScriptBatchListModelRotationStrategy) UnmarshalJSON ¶
func (c *JobScriptBatchListModelRotationStrategy) UnmarshalJSON(b []byte) error
func (JobScriptBatchListModelRotationStrategy) Value ¶
func (c JobScriptBatchListModelRotationStrategy) Value() string
type JobScriptBatchListModelRotationStrategyEnum ¶
type JobScriptBatchListModelRotationStrategyEnum struct { CONTINUE JobScriptBatchListModelRotationStrategy PAUSE JobScriptBatchListModelRotationStrategy }
func GetJobScriptBatchListModelRotationStrategyEnum ¶
func GetJobScriptBatchListModelRotationStrategyEnum() JobScriptBatchListModelRotationStrategyEnum
type JobScriptOrderInfoModel ¶
type JobScriptOrderInfoModel struct { // 执行uuid ExecuteUuid *string `json:"execute_uuid,omitempty"` // 执行创建时间 GmtCreated *int64 `json:"gmt_created,omitempty"` // 执行完成时间 GmtFinished *int64 `json:"gmt_finished,omitempty"` // 执行耗时,单位:秒 ExecuteCosts *int64 `json:"execute_costs,omitempty"` // 创建人 Creator *string `json:"creator,omitempty"` // 执行状态 Status *JobScriptOrderInfoModelStatus `json:"status,omitempty"` Properties *JobScriptOrderInfoProp `json:"properties,omitempty"` }
JobScriptOrderInfoModel 基本信息
func (JobScriptOrderInfoModel) String ¶
func (o JobScriptOrderInfoModel) String() string
type JobScriptOrderInfoModelStatus ¶
type JobScriptOrderInfoModelStatus struct {
// contains filtered or unexported fields
}
func (JobScriptOrderInfoModelStatus) MarshalJSON ¶
func (c JobScriptOrderInfoModelStatus) MarshalJSON() ([]byte, error)
func (*JobScriptOrderInfoModelStatus) UnmarshalJSON ¶
func (c *JobScriptOrderInfoModelStatus) UnmarshalJSON(b []byte) error
func (JobScriptOrderInfoModelStatus) Value ¶
func (c JobScriptOrderInfoModelStatus) Value() string
type JobScriptOrderInfoModelStatusEnum ¶
type JobScriptOrderInfoModelStatusEnum struct { READY JobScriptOrderInfoModelStatus PROCESSING JobScriptOrderInfoModelStatus ABNORMAL JobScriptOrderInfoModelStatus PAUSED JobScriptOrderInfoModelStatus CANCELED JobScriptOrderInfoModelStatus FINISHED JobScriptOrderInfoModelStatus }
func GetJobScriptOrderInfoModelStatusEnum ¶
func GetJobScriptOrderInfoModelStatusEnum() JobScriptOrderInfoModelStatusEnum
type JobScriptOrderInfoProp ¶
type JobScriptOrderInfoProp struct { // 脚本uuid ScriptUuid *string `json:"script_uuid,omitempty"` // 脚本名称 ScriptName *string `json:"script_name,omitempty"` // 脚本版本uuid ScriptVersionUuid *int64 `json:"script_version_uuid,omitempty"` // 脚本版本名 ScriptVersionName *string `json:"script_version_name,omitempty"` // 当前执行批次index CurrentExecuteBatchIndex *int32 `json:"current_execute_batch_index,omitempty"` ExecuteParam *ScriptExecuteParam `json:"execute_param,omitempty"` }
JobScriptOrderInfoProp 基本信息
func (JobScriptOrderInfoProp) String ¶
func (o JobScriptOrderInfoProp) String() string
type JobScriptOrderListModel ¶
type JobScriptOrderListModel struct { // 主键id,对应job_order_do的主键 OrderId int64 `json:"order_id"` // 工单名称 OrderName string `json:"order_name"` // 列表跳转到详情时,用这个uuid,对应execute_data_do的execute_uuid ExecuteUuid string `json:"execute_uuid"` // 创建时间 GmtCreated *int64 `json:"gmt_created,omitempty"` // 完成时间 GmtFinished *int64 `json:"gmt_finished,omitempty"` // 执行耗时,单位:秒 ExecuteCosts *int64 `json:"execute_costs,omitempty"` // 创建人 Creator *string `json:"creator,omitempty"` // 工单状态 Status *JobScriptOrderListModelStatus `json:"status,omitempty"` Properties *JobScriptOrderListProp `json:"properties,omitempty"` }
JobScriptOrderListModel 作业脚本工单列表
func (JobScriptOrderListModel) String ¶
func (o JobScriptOrderListModel) String() string
type JobScriptOrderListModelStatus ¶
type JobScriptOrderListModelStatus struct {
// contains filtered or unexported fields
}
func (JobScriptOrderListModelStatus) MarshalJSON ¶
func (c JobScriptOrderListModelStatus) MarshalJSON() ([]byte, error)
func (*JobScriptOrderListModelStatus) UnmarshalJSON ¶
func (c *JobScriptOrderListModelStatus) UnmarshalJSON(b []byte) error
func (JobScriptOrderListModelStatus) Value ¶
func (c JobScriptOrderListModelStatus) Value() string
type JobScriptOrderListModelStatusEnum ¶
type JobScriptOrderListModelStatusEnum struct { READY JobScriptOrderListModelStatus PROCESSING JobScriptOrderListModelStatus ABNORMAL JobScriptOrderListModelStatus PAUSED JobScriptOrderListModelStatus CANCELED JobScriptOrderListModelStatus FINISHED JobScriptOrderListModelStatus }
func GetJobScriptOrderListModelStatusEnum ¶
func GetJobScriptOrderListModelStatusEnum() JobScriptOrderListModelStatusEnum
type JobScriptOrderListPage ¶
type JobScriptOrderListPage struct { // 总条数 Total int64 `json:"total"` // 单页数据列表 Data []JobScriptOrderListModel `json:"data"` }
JobScriptOrderListPage 脚本工单列表,分页数据
func (JobScriptOrderListPage) String ¶
func (o JobScriptOrderListPage) String() string
type JobScriptOrderListProp ¶
type JobScriptOrderListProp struct { // CMDB服务实例区域id,可能有多个 RegionIds *string `json:"region_ids,omitempty"` }
JobScriptOrderListProp 脚本工单属性
func (JobScriptOrderListProp) String ¶
func (o JobScriptOrderListProp) String() string
type JobScriptOrderOperationBody ¶
type JobScriptOrderOperationBody struct { // 适用于批次操作时 BatchIndex *int32 `json:"batch_index,omitempty"` // 适用于实例操作时 非script_execute_instance_do中iD,需要新增字段 InstanceId *int64 `json:"instance_id,omitempty"` // 操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单 CANCEL_INSTANCE:取消实例 SKIP_BATCH:跳过批次 CANCEL_ORDER:取消整个工单 PAUSE_ORDER:暂停整个工单 CONTINUE_ORDER:继续整个工单 OperationType JobScriptOrderOperationBodyOperationType `json:"operation_type"` }
JobScriptOrderOperationBody 工单操作对象 operation_type为 CANCEL_INSTANCE:取消实例,instance_id 不能为空; SKIP_BATCH: 跳过当前批次,batch_index不能为空; CANCEL_ORDER:取消工单,batch_index和instance_id可为空; PAUSE_ORDER:暂停工单,batch_index和instance_id可为空; CONTINUE_ORDER:继续工单,batch_index和instance_id可为空
func (JobScriptOrderOperationBody) String ¶
func (o JobScriptOrderOperationBody) String() string
type JobScriptOrderOperationBodyOperationType ¶
type JobScriptOrderOperationBodyOperationType struct {
// contains filtered or unexported fields
}
func (JobScriptOrderOperationBodyOperationType) MarshalJSON ¶
func (c JobScriptOrderOperationBodyOperationType) MarshalJSON() ([]byte, error)
func (*JobScriptOrderOperationBodyOperationType) UnmarshalJSON ¶
func (c *JobScriptOrderOperationBodyOperationType) UnmarshalJSON(b []byte) error
func (JobScriptOrderOperationBodyOperationType) Value ¶
func (c JobScriptOrderOperationBodyOperationType) Value() string
type JobScriptOrderOperationBodyOperationTypeEnum ¶
type JobScriptOrderOperationBodyOperationTypeEnum struct { CANCEL_INSTANCE JobScriptOrderOperationBodyOperationType SKIP_BATCH JobScriptOrderOperationBodyOperationType CANCEL_ORDER JobScriptOrderOperationBodyOperationType PAUSE_ORDER JobScriptOrderOperationBodyOperationType CONTINUE_ORDER JobScriptOrderOperationBodyOperationType }
func GetJobScriptOrderOperationBodyOperationTypeEnum ¶
func GetJobScriptOrderOperationBodyOperationTypeEnum() JobScriptOrderOperationBodyOperationTypeEnum
type JobScriptOrderStatisticsModel ¶
type JobScriptOrderStatisticsModel struct { // 实例总量 TotalInstance *int32 `json:"total_instance,omitempty"` // 每个状态一个count,里面记录该状态的总数量,以及包含该状态的批次列表 ExecuteStatistics *[]ExectuionStatistic `json:"execute_statistics,omitempty"` }
JobScriptOrderStatisticsModel 任务统计信息 讨论: statistics属性里用状态声明key合理么? 还要统计什么内容,怎么扩展?
func (JobScriptOrderStatisticsModel) String ¶
func (o JobScriptOrderStatisticsModel) String() string
type ListApplicationsRequest ¶
type ListApplicationsRequest struct { // id列表 IdList *[]string `json:"id_list,omitempty"` // parent id ParentId *string `json:"parent_id,omitempty"` // 应用名称模糊匹配 NameLike *string `json:"name_like,omitempty"` // 应用code Code *string `json:"code,omitempty"` // 分页参数,上一页请求最后一个id Marker *string `json:"marker,omitempty"` // 最大的返回数量 Limit int32 `json:"limit"` }
ListApplicationsRequest Request Object
func (ListApplicationsRequest) String ¶
func (o ListApplicationsRequest) String() string
type ListApplicationsResponse ¶
type ListApplicationsResponse struct { // 应用列表 Data *[]ApplicationQueryResponseData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListApplicationsResponse Response Object
func (ListApplicationsResponse) String ¶
func (o ListApplicationsResponse) String() string
type ListAuthorizableTicketsExternalRequest ¶
type ListAuthorizableTicketsExternalRequest struct {
Body *ListAuthorizableTicketsReq `json:"body,omitempty"`
}
ListAuthorizableTicketsExternalRequest Request Object
func (ListAuthorizableTicketsExternalRequest) String ¶
func (o ListAuthorizableTicketsExternalRequest) String() string
type ListAuthorizableTicketsExternalResponse ¶
type ListAuthorizableTicketsExternalResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` // 可授权单信息 Data *[]AuthorizeTicketInfo `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListAuthorizableTicketsExternalResponse Response Object
func (ListAuthorizableTicketsExternalResponse) String ¶
func (o ListAuthorizableTicketsExternalResponse) String() string
type ListAuthorizableTicketsReq ¶
type ListAuthorizableTicketsReq struct { // 搜索结果 RequestParams *[]AuthorizableTicketBody `json:"request_params,omitempty"` }
func (ListAuthorizableTicketsReq) String ¶
func (o ListAuthorizableTicketsReq) String() string
type ListBaseRequest ¶
type ListBaseRequest struct { // limit Limit *int64 `json:"limit,omitempty"` // 查询数量 最小值0 最大值1000 Offset *int64 `json:"offset,omitempty"` }
ListBaseRequest limit 最小值0 最大值Integer.MAX offset 查询数量 值域 0 到1000
func (ListBaseRequest) String ¶
func (o ListBaseRequest) String() string
type ListBaseResponse ¶
type ListBaseResponse struct { // 服务标识 ProviderCode *string `json:"provider_code,omitempty"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode *string `json:"error_code,omitempty"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` }
ListBaseResponse 列表查询基本响应体 需要增加data属性
func (ListBaseResponse) String ¶
func (o ListBaseResponse) String() string
type ListCocTicketOperationHistoriesRequest ¶
type ListCocTicketOperationHistoriesRequest struct { // 工单类型:incident,issues_mgmt TicketType ListCocTicketOperationHistoriesRequestTicketType `json:"ticket_type"` Body *ListTicketParams `json:"body,omitempty"` }
ListCocTicketOperationHistoriesRequest Request Object
func (ListCocTicketOperationHistoriesRequest) String ¶
func (o ListCocTicketOperationHistoriesRequest) String() string
type ListCocTicketOperationHistoriesRequestTicketType ¶
type ListCocTicketOperationHistoriesRequestTicketType struct {
// contains filtered or unexported fields
}
func (ListCocTicketOperationHistoriesRequestTicketType) MarshalJSON ¶
func (c ListCocTicketOperationHistoriesRequestTicketType) MarshalJSON() ([]byte, error)
func (*ListCocTicketOperationHistoriesRequestTicketType) UnmarshalJSON ¶
func (c *ListCocTicketOperationHistoriesRequestTicketType) UnmarshalJSON(b []byte) error
func (ListCocTicketOperationHistoriesRequestTicketType) Value ¶
func (c ListCocTicketOperationHistoriesRequestTicketType) Value() string
type ListCocTicketOperationHistoriesRequestTicketTypeEnum ¶
type ListCocTicketOperationHistoriesRequestTicketTypeEnum struct { INCIDENT ListCocTicketOperationHistoriesRequestTicketType ISSUES_MGMT ListCocTicketOperationHistoriesRequestTicketType }
func GetListCocTicketOperationHistoriesRequestTicketTypeEnum ¶
func GetListCocTicketOperationHistoriesRequestTicketTypeEnum() ListCocTicketOperationHistoriesRequestTicketTypeEnum
type ListCocTicketOperationHistoriesResponse ¶
type ListCocTicketOperationHistoriesResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` // 数据 Data *interface{} `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListCocTicketOperationHistoriesResponse Response Object
func (ListCocTicketOperationHistoriesResponse) String ¶
func (o ListCocTicketOperationHistoriesResponse) String() string
type ListInstanceCompliantRequest ¶
type ListInstanceCompliantRequest struct { // 企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 名称 Name *string `json:"name,omitempty"` // ECS实例id InstanceId *string `json:"instance_id,omitempty"` // 内网ip Ip *string `json:"ip,omitempty"` // 弹性公网ip Eip *string `json:"eip,omitempty"` // 操作系统 - HuaweiCloudEulerOS - CentOS - EulerOS OperatingSystem *string `json:"operating_system,omitempty"` // 区域 Region *string `json:"region,omitempty"` // 分组 Group *string `json:"group,omitempty"` // 合规性状态 - non_compliant:不合规 - compliant:合规 CompliantStatus *string `json:"compliant_status,omitempty"` // 工单id OrderId *string `json:"order_id,omitempty"` // 偏移量 Offset *int32 `json:"offset,omitempty"` // 每页数量 Limit *int32 `json:"limit,omitempty"` // 排序 - asc:升序 - desc:降序 SortDir *string `json:"sort_dir,omitempty"` // 排序字段 - report_time:报告时间 SortKey *string `json:"sort_key,omitempty"` // 报告场景 - CCE - ECS ReportScene *string `json:"report_scene,omitempty"` // cce 集群信息id CceInfoId *string `json:"cce_info_id,omitempty"` }
ListInstanceCompliantRequest Request Object
func (ListInstanceCompliantRequest) String ¶
func (o ListInstanceCompliantRequest) String() string
type ListInstanceCompliantResponse ¶
type ListInstanceCompliantResponse struct { // 总条数 Count *int64 `json:"count,omitempty"` // 节点合规报告 InstanceCompliant *[]InstanceCompliant `json:"instance_compliant,omitempty"` HttpStatusCode int `json:"-"` }
ListInstanceCompliantResponse Response Object
func (ListInstanceCompliantResponse) String ¶
func (o ListInstanceCompliantResponse) String() string
type ListPublicScriptsRequest ¶
type ListPublicScriptsRequest struct { // 分页参数:每页返回记录个数限制 Limit int32 `json:"limit"` // 分页参数:上一页最后一个记录id Marker *int64 `json:"marker,omitempty"` // 脚本名(只支持右模糊搜索) NameLike *string `json:"name_like,omitempty"` // 脚本名(精确搜索) Name *string `json:"name,omitempty"` // 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 RiskLevel *ListPublicScriptsRequestRiskLevel `json:"risk_level,omitempty"` // 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 Type *ListPublicScriptsRequestType `json:"type,omitempty"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
ListPublicScriptsRequest Request Object
func (ListPublicScriptsRequest) String ¶
func (o ListPublicScriptsRequest) String() string
type ListPublicScriptsRequestRiskLevel ¶
type ListPublicScriptsRequestRiskLevel struct {
// contains filtered or unexported fields
}
func (ListPublicScriptsRequestRiskLevel) MarshalJSON ¶
func (c ListPublicScriptsRequestRiskLevel) MarshalJSON() ([]byte, error)
func (*ListPublicScriptsRequestRiskLevel) UnmarshalJSON ¶
func (c *ListPublicScriptsRequestRiskLevel) UnmarshalJSON(b []byte) error
func (ListPublicScriptsRequestRiskLevel) Value ¶
func (c ListPublicScriptsRequestRiskLevel) Value() string
type ListPublicScriptsRequestRiskLevelEnum ¶
type ListPublicScriptsRequestRiskLevelEnum struct { LOW ListPublicScriptsRequestRiskLevel MEDIUM ListPublicScriptsRequestRiskLevel HIGH ListPublicScriptsRequestRiskLevel }
func GetListPublicScriptsRequestRiskLevelEnum ¶
func GetListPublicScriptsRequestRiskLevelEnum() ListPublicScriptsRequestRiskLevelEnum
type ListPublicScriptsRequestType ¶
type ListPublicScriptsRequestType struct {
// contains filtered or unexported fields
}
func (ListPublicScriptsRequestType) MarshalJSON ¶
func (c ListPublicScriptsRequestType) MarshalJSON() ([]byte, error)
func (*ListPublicScriptsRequestType) UnmarshalJSON ¶
func (c *ListPublicScriptsRequestType) UnmarshalJSON(b []byte) error
func (ListPublicScriptsRequestType) Value ¶
func (c ListPublicScriptsRequestType) Value() string
type ListPublicScriptsRequestTypeEnum ¶
type ListPublicScriptsRequestTypeEnum struct { SHELL ListPublicScriptsRequestType PYTHON ListPublicScriptsRequestType BAT ListPublicScriptsRequestType }
func GetListPublicScriptsRequestTypeEnum ¶
func GetListPublicScriptsRequestTypeEnum() ListPublicScriptsRequestTypeEnum
type ListPublicScriptsResponse ¶
type ListPublicScriptsResponse struct { Data *PublicScriptListPage `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListPublicScriptsResponse Response Object
func (ListPublicScriptsResponse) String ¶
func (o ListPublicScriptsResponse) String() string
type ListResourceRequest ¶
type ListResourceRequest struct { // 云服务名称 Provider string `json:"provider"` // 资源类型名称 Type string `json:"type"` // 最大的返回数量 Limit int32 `json:"limit"` // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 Marker *string `json:"marker,omitempty"` // 资源id列表 ResourceIdList *[]string `json:"resource_id_list,omitempty"` // 名称 Name *string `json:"name,omitempty"` // region id RegionId *string `json:"region_id,omitempty"` // az id AzId *string `json:"az_id,omitempty"` // ip类型,fixed:内网IP,floating:弹性公网IP IpType *string `json:"ip_type,omitempty"` // ip Ip *string `json:"ip,omitempty"` // 资源状态 Status *string `json:"status,omitempty"` // agent状态 AgentState *string `json:"agent_state,omitempty"` // 镜像名称,模糊匹配 ImageName *string `json:"image_name,omitempty"` // 系统类型 OsType *string `json:"os_type,omitempty"` // 标签的值 Tag *string `json:"tag,omitempty"` // 标签的key TagKey *string `json:"tag_key,omitempty"` // 分组id GroupId *string `json:"group_id,omitempty"` // 组件id ComponentId *string `json:"component_id,omitempty"` // 应用id ApplicationId *string `json:"application_id,omitempty"` // cce集群id CceClusterId *string `json:"cce_cluster_id,omitempty"` // vpc id VpcId *string `json:"vpc_id,omitempty"` // 企业项目id EpId *string `json:"ep_id,omitempty"` // 资源是否已托管 IsDelegated *bool `json:"is_delegated,omitempty"` }
ListResourceRequest Request Object
func (ListResourceRequest) String ¶
func (o ListResourceRequest) String() string
type ListResourceResponse ¶
type ListResourceResponse struct { // 资源列表 Data *[]BatchListResourceResponseData `json:"data,omitempty"` XRequestId *string `json:"X-request-id,omitempty"` HttpStatusCode int `json:"-"` }
ListResourceResponse Response Object
func (ListResourceResponse) String ¶
func (o ListResourceResponse) String() string
type ListScriptJobBatchesRequest ¶
type ListScriptJobBatchesRequest struct { // 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 ExecuteUuid string `json:"execute_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
ListScriptJobBatchesRequest Request Object
func (ListScriptJobBatchesRequest) String ¶
func (o ListScriptJobBatchesRequest) String() string
type ListScriptJobBatchesResponse ¶
type ListScriptJobBatchesResponse struct { // 展示批次列表 Data *[]JobScriptBatchListModel `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListScriptJobBatchesResponse Response Object
func (ListScriptJobBatchesResponse) String ¶
func (o ListScriptJobBatchesResponse) String() string
type ListScriptJobsRequest ¶
type ListScriptJobsRequest struct { // 分页参数 Limit *int32 `json:"limit,omitempty"` // 分页参数 Marker *int64 `json:"marker,omitempty"` // 创建时间开始 StartTime *int64 `json:"start_time,omitempty"` // 创建时间结束 EndTime *int64 `json:"end_time,omitempty"` // 创建人 Creator *string `json:"creator,omitempty"` // 工单状态 PROCESSING:执行中 ABNORMAL:异常 PAUSED:暂停 CANCELED:已取消 FINISHED:成功 Status *ListScriptJobsRequestStatus `json:"status,omitempty"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
ListScriptJobsRequest Request Object
func (ListScriptJobsRequest) String ¶
func (o ListScriptJobsRequest) String() string
type ListScriptJobsRequestStatus ¶
type ListScriptJobsRequestStatus struct {
// contains filtered or unexported fields
}
func (ListScriptJobsRequestStatus) MarshalJSON ¶
func (c ListScriptJobsRequestStatus) MarshalJSON() ([]byte, error)
func (*ListScriptJobsRequestStatus) UnmarshalJSON ¶
func (c *ListScriptJobsRequestStatus) UnmarshalJSON(b []byte) error
func (ListScriptJobsRequestStatus) Value ¶
func (c ListScriptJobsRequestStatus) Value() string
type ListScriptJobsRequestStatusEnum ¶
type ListScriptJobsRequestStatusEnum struct { PROCESSING ListScriptJobsRequestStatus ABNORMAL ListScriptJobsRequestStatus PAUSED ListScriptJobsRequestStatus CANCELED ListScriptJobsRequestStatus FINISHED ListScriptJobsRequestStatus }
func GetListScriptJobsRequestStatusEnum ¶
func GetListScriptJobsRequestStatusEnum() ListScriptJobsRequestStatusEnum
type ListScriptJobsResponse ¶
type ListScriptJobsResponse struct { Data *JobScriptOrderListPage `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListScriptJobsResponse Response Object
func (ListScriptJobsResponse) String ¶
func (o ListScriptJobsResponse) String() string
type ListScriptsRequest ¶
type ListScriptsRequest struct { // 分页参数:每页返回记录个数限制 Limit int32 `json:"limit"` // 分页参数:上一页最后一个记录id Marker *int64 `json:"marker,omitempty"` // 脚本名(模糊) NameLike *string `json:"name_like,omitempty"` // 创建人 Creator *string `json:"creator,omitempty"` // 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 RiskLevel *ListScriptsRequestRiskLevel `json:"risk_level,omitempty"` // 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:Bat脚本 Type *ListScriptsRequestType `json:"type,omitempty"` // 企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` }
ListScriptsRequest Request Object
func (ListScriptsRequest) String ¶
func (o ListScriptsRequest) String() string
type ListScriptsRequestRiskLevel ¶
type ListScriptsRequestRiskLevel struct {
// contains filtered or unexported fields
}
func (ListScriptsRequestRiskLevel) MarshalJSON ¶
func (c ListScriptsRequestRiskLevel) MarshalJSON() ([]byte, error)
func (*ListScriptsRequestRiskLevel) UnmarshalJSON ¶
func (c *ListScriptsRequestRiskLevel) UnmarshalJSON(b []byte) error
func (ListScriptsRequestRiskLevel) Value ¶
func (c ListScriptsRequestRiskLevel) Value() string
type ListScriptsRequestRiskLevelEnum ¶
type ListScriptsRequestRiskLevelEnum struct { LOW ListScriptsRequestRiskLevel MEDIUM ListScriptsRequestRiskLevel HIGH ListScriptsRequestRiskLevel }
func GetListScriptsRequestRiskLevelEnum ¶
func GetListScriptsRequestRiskLevelEnum() ListScriptsRequestRiskLevelEnum
type ListScriptsRequestType ¶
type ListScriptsRequestType struct {
// contains filtered or unexported fields
}
func (ListScriptsRequestType) MarshalJSON ¶
func (c ListScriptsRequestType) MarshalJSON() ([]byte, error)
func (*ListScriptsRequestType) UnmarshalJSON ¶
func (c *ListScriptsRequestType) UnmarshalJSON(b []byte) error
func (ListScriptsRequestType) Value ¶
func (c ListScriptsRequestType) Value() string
type ListScriptsRequestTypeEnum ¶
type ListScriptsRequestTypeEnum struct { SHELL ListScriptsRequestType PYTHON ListScriptsRequestType BAT ListScriptsRequestType }
func GetListScriptsRequestTypeEnum ¶
func GetListScriptsRequestTypeEnum() ListScriptsRequestTypeEnum
type ListScriptsResponse ¶
type ListScriptsResponse struct { Data *ScriptListPage `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListScriptsResponse Response Object
func (ListScriptsResponse) String ¶
func (o ListScriptsResponse) String() string
type ListTenantWarRoomRequestBody ¶
type ListTenantWarRoomRequestBody struct { // limit Limit *int64 `json:"limit,omitempty"` // 查询数量 最小值0 最大值1000 Offset *int64 `json:"offset,omitempty"` // 用户id CurrentUsers *[]string `json:"current_users,omitempty"` // WarRoom单号,当有这个筛选条件时,其他筛选条件忽略 WarRoomNums *[]string `json:"war_room_nums,omitempty"` // 事件单号 精确查询 IncidentNum *string `json:"incident_num,omitempty"` // WarRoom名称 模糊查询 Title *string `json:"title,omitempty"` // 区域 多选 RegionCodeList *[]string `json:"region_code_list,omitempty"` // 事件级别 多选 IncidentLevels *[]string `json:"incident_levels,omitempty"` // 影响应用id ImpactedApplicationIds *[]string `json:"impacted_application_ids,omitempty"` // WarRoom管理员 Admin *[]string `json:"admin,omitempty"` // WarRoom状态 Status *[]string `json:"status,omitempty"` // 拉起开始时间 默认前30天 TriggeredStartTime *int64 `json:"triggered_start_time,omitempty"` // 拉起结束时间 默认当前时间 TriggeredEndTime *int64 `json:"triggered_end_time,omitempty"` // 发生开始时间 OccurStartTime *int64 `json:"occur_start_time,omitempty"` // 发生结束时间 OccurEndTime *int64 `json:"occur_end_time,omitempty"` // 恢复开始时间 RecoverStartTime *int64 `json:"recover_start_time,omitempty"` // 恢复结束时间 RecoverEndTime *int64 `json:"recover_end_time,omitempty"` // 通报级别 NotificationLevel *[]string `json:"notification_level,omitempty"` // 企业项目id EnterpriseProjectIds *[]string `json:"enterprise_project_ids,omitempty"` // WarRoom 单号 前端使用 WarRoomNum *string `json:"war_room_num,omitempty"` // 是否统计,false 返回基本信息;true接口只返回统计结果:total_num,running_num,closed_num StatisticFlag *bool `json:"statistic_flag,omitempty"` }
ListTenantWarRoomRequestBody 查询WarRoom信息请求
func (ListTenantWarRoomRequestBody) String ¶
func (o ListTenantWarRoomRequestBody) String() string
type ListTicketParams ¶
type ListTicketParams struct { // 字符串搜索条件 StringFilters []ObjectFilter `json:"string_filters"` SortFilter *ObjectFilter `json:"sort_filter,omitempty"` }
func (ListTicketParams) String ¶
func (o ListTicketParams) String() string
type ListWarRoomsRequest ¶
type ListWarRoomsRequest struct {
Body *ListTenantWarRoomRequestBody `json:"body,omitempty"`
}
ListWarRoomsRequest Request Object
func (ListWarRoomsRequest) String ¶
func (o ListWarRoomsRequest) String() string
type ListWarRoomsResponse ¶
type ListWarRoomsResponse struct { // 服务标识 ProviderCode *string `json:"provider_code,omitempty"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode *string `json:"error_code,omitempty"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` // 响应数据 Data *interface{} `json:"data"` HttpStatusCode int `json:"-"` }
ListWarRoomsResponse Response Object
func (ListWarRoomsResponse) String ¶
func (o ListWarRoomsResponse) String() string
type NonCompliantSummary ¶
type NonCompliantSummary struct { // 不合规补丁数量 NonCompliantCount *int32 `json:"non_compliant_count,omitempty"` SeveritySummary *SeveritySummary `json:"severity_summary,omitempty"` }
NonCompliantSummary 不合规总结
func (NonCompliantSummary) String ¶
func (o NonCompliantSummary) String() string
type ObjectFilter ¶
type ObjectFilter struct { // 操作符 in/like/startwith/endwith/=/!=/>/<等 Operator string `json:"operator"` // 字段名称 Field string `json:"field"` // 搜索值 Values []string `json:"values"` }
func (ObjectFilter) String ¶
func (o ObjectFilter) String() string
type OperateScriptJobRequest ¶
type OperateScriptJobRequest struct { // 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 ExecuteUuid string `json:"execute_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` Body *JobScriptOrderOperationBody `json:"body,omitempty"` }
OperateScriptJobRequest Request Object
func (OperateScriptJobRequest) String ¶
func (o OperateScriptJobRequest) String() string
type OperateScriptJobResponse ¶
type OperateScriptJobResponse struct { // 操作的工单execute_uuid Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
OperateScriptJobResponse Response Object
func (OperateScriptJobResponse) String ¶
func (o OperateScriptJobResponse) String() string
type PatchDetail ¶
type PatchDetail struct { // 安装时间 InstalledTime *int64 `json:"installed_time,omitempty"` // 补丁基线id PatchBaselineId *string `json:"patch_baseline_id,omitempty"` // 补丁基线名称 PatchBaselineName *string `json:"patch_baseline_name,omitempty"` // 补丁状态 PatchStatus *string `json:"patch_status,omitempty"` }
func (PatchDetail) String ¶
func (o PatchDetail) String() string
type PublicScriptDetailModel ¶
type PublicScriptDetailModel struct { // 脚本uuid ScriptUuid string `json:"script_uuid"` // 脚本名称 Name string `json:"name"` // 脚本描述 Description string `json:"description"` // 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, Type PublicScriptDetailModelType `json:"type"` // 脚本内容 Content string `json:"content"` // 脚本入参 ScriptParams *[]ScriptParamDefine `json:"script_params,omitempty"` // 创建时间 GmtCreated int64 `json:"gmt_created"` Properties *PublicScriptPropertiesModel `json:"properties"` }
PublicScriptDetailModel 公共脚本详情
func (PublicScriptDetailModel) String ¶
func (o PublicScriptDetailModel) String() string
type PublicScriptDetailModelType ¶
type PublicScriptDetailModelType struct {
// contains filtered or unexported fields
}
func (PublicScriptDetailModelType) MarshalJSON ¶
func (c PublicScriptDetailModelType) MarshalJSON() ([]byte, error)
func (*PublicScriptDetailModelType) UnmarshalJSON ¶
func (c *PublicScriptDetailModelType) UnmarshalJSON(b []byte) error
func (PublicScriptDetailModelType) Value ¶
func (c PublicScriptDetailModelType) Value() string
type PublicScriptDetailModelTypeEnum ¶
type PublicScriptDetailModelTypeEnum struct { SHELL PublicScriptDetailModelType PYTHON PublicScriptDetailModelType BAT PublicScriptDetailModelType }
func GetPublicScriptDetailModelTypeEnum ¶
func GetPublicScriptDetailModelTypeEnum() PublicScriptDetailModelTypeEnum
type PublicScriptListModel ¶
type PublicScriptListModel struct { // 脚本自增id Id int64 `json:"id"` // 脚本uuid ScriptUuid string `json:"script_uuid"` // 脚本名称 Name string `json:"name"` // 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 Type PublicScriptListModelType `json:"type"` // 创建时间 GmtCreated int64 `json:"gmt_created"` // 脚本描述: 根据X-Language(X-Language) 进行国际化 Description string `json:"description"` Properties *PublicScriptPropertiesModel `json:"properties"` }
PublicScriptListModel 公共脚本列表对象
func (PublicScriptListModel) String ¶
func (o PublicScriptListModel) String() string
type PublicScriptListModelType ¶
type PublicScriptListModelType struct {
// contains filtered or unexported fields
}
func (PublicScriptListModelType) MarshalJSON ¶
func (c PublicScriptListModelType) MarshalJSON() ([]byte, error)
func (*PublicScriptListModelType) UnmarshalJSON ¶
func (c *PublicScriptListModelType) UnmarshalJSON(b []byte) error
func (PublicScriptListModelType) Value ¶
func (c PublicScriptListModelType) Value() string
type PublicScriptListModelTypeEnum ¶
type PublicScriptListModelTypeEnum struct { SHELL PublicScriptListModelType PYTHON PublicScriptListModelType BAT PublicScriptListModelType }
func GetPublicScriptListModelTypeEnum ¶
func GetPublicScriptListModelTypeEnum() PublicScriptListModelTypeEnum
type PublicScriptListPage ¶
type PublicScriptListPage struct { // 总条数 Total int64 `json:"total"` // 单页数据列表 Data []PublicScriptListModel `json:"data"` }
PublicScriptListPage 公共脚本列表分页数据
func (PublicScriptListPage) String ¶
func (o PublicScriptListPage) String() string
type PublicScriptPropertiesModel ¶
type PublicScriptPropertiesModel struct { // 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 RiskLevel PublicScriptPropertiesModelRiskLevel `json:"risk_level"` // 脚本版本号 Version string `json:"version"` }
PublicScriptPropertiesModel 公共脚本附加属性
func (PublicScriptPropertiesModel) String ¶
func (o PublicScriptPropertiesModel) String() string
type PublicScriptPropertiesModelRiskLevel ¶
type PublicScriptPropertiesModelRiskLevel struct {
// contains filtered or unexported fields
}
func (PublicScriptPropertiesModelRiskLevel) MarshalJSON ¶
func (c PublicScriptPropertiesModelRiskLevel) MarshalJSON() ([]byte, error)
func (*PublicScriptPropertiesModelRiskLevel) UnmarshalJSON ¶
func (c *PublicScriptPropertiesModelRiskLevel) UnmarshalJSON(b []byte) error
func (PublicScriptPropertiesModelRiskLevel) Value ¶
func (c PublicScriptPropertiesModelRiskLevel) Value() string
type PublicScriptPropertiesModelRiskLevelEnum ¶
type PublicScriptPropertiesModelRiskLevelEnum struct { LOW PublicScriptPropertiesModelRiskLevel MEDIUM PublicScriptPropertiesModelRiskLevel HIGH PublicScriptPropertiesModelRiskLevel }
func GetPublicScriptPropertiesModelRiskLevelEnum ¶
func GetPublicScriptPropertiesModelRiskLevelEnum() PublicScriptPropertiesModelRiskLevelEnum
type ReportCustomEventRequestBody ¶
type ReportCustomEventRequestBody struct { // 告警id AlarmId string `json:"alarmId"` // 告警名称 AlarmName string `json:"alarmName"` // 告警级别。取值为Critical(紧急), Major(重要), Minor(次要), Info(提示) AlarmLevel ReportCustomEventRequestBodyAlarmLevel `json:"alarmLevel"` // 告警发生时间 Time int64 `json:"time"` // 告警发生时间 NameSpace string `json:"nameSpace"` // 告警发生区域 RegionId *string `json:"regionId,omitempty"` // 应用id ApplicationId *string `json:"applicationId,omitempty"` // 资源名称 ResourceName *string `json:"resourceName,omitempty"` // 资源ID ResourceId *string `json:"resourceId,omitempty"` // 告警描述 AlarmDesc string `json:"alarmDesc"` // 原始告警URL Url *string `json:"URL,omitempty"` // 告警状态。一般取值为alarm(告警中)和ok(已恢复) AlarmStatus *ReportCustomEventRequestBodyAlarmStatus `json:"alarmStatus,omitempty"` // 告警源 AlarmSource string `json:"alarmSource"` // 告警附加信息 Additional *interface{} `json:"additional,omitempty"` }
func (ReportCustomEventRequestBody) String ¶
func (o ReportCustomEventRequestBody) String() string
type ReportCustomEventRequestBodyAlarmLevel ¶
type ReportCustomEventRequestBodyAlarmLevel struct {
// contains filtered or unexported fields
}
func (ReportCustomEventRequestBodyAlarmLevel) MarshalJSON ¶
func (c ReportCustomEventRequestBodyAlarmLevel) MarshalJSON() ([]byte, error)
func (*ReportCustomEventRequestBodyAlarmLevel) UnmarshalJSON ¶
func (c *ReportCustomEventRequestBodyAlarmLevel) UnmarshalJSON(b []byte) error
func (ReportCustomEventRequestBodyAlarmLevel) Value ¶
func (c ReportCustomEventRequestBodyAlarmLevel) Value() string
type ReportCustomEventRequestBodyAlarmLevelEnum ¶
type ReportCustomEventRequestBodyAlarmLevelEnum struct { CRITICAL ReportCustomEventRequestBodyAlarmLevel MAJOR ReportCustomEventRequestBodyAlarmLevel MINOR ReportCustomEventRequestBodyAlarmLevel INFO ReportCustomEventRequestBodyAlarmLevel }
func GetReportCustomEventRequestBodyAlarmLevelEnum ¶
func GetReportCustomEventRequestBodyAlarmLevelEnum() ReportCustomEventRequestBodyAlarmLevelEnum
type ReportCustomEventRequestBodyAlarmStatus ¶
type ReportCustomEventRequestBodyAlarmStatus struct {
// contains filtered or unexported fields
}
func (ReportCustomEventRequestBodyAlarmStatus) MarshalJSON ¶
func (c ReportCustomEventRequestBodyAlarmStatus) MarshalJSON() ([]byte, error)
func (*ReportCustomEventRequestBodyAlarmStatus) UnmarshalJSON ¶
func (c *ReportCustomEventRequestBodyAlarmStatus) UnmarshalJSON(b []byte) error
func (ReportCustomEventRequestBodyAlarmStatus) Value ¶
func (c ReportCustomEventRequestBodyAlarmStatus) Value() string
type ReportCustomEventRequestBodyAlarmStatusEnum ¶
type ReportCustomEventRequestBodyAlarmStatusEnum struct { ALARM ReportCustomEventRequestBodyAlarmStatus OK ReportCustomEventRequestBodyAlarmStatus }
func GetReportCustomEventRequestBodyAlarmStatusEnum ¶
func GetReportCustomEventRequestBodyAlarmStatusEnum() ReportCustomEventRequestBodyAlarmStatusEnum
type ResourceInstance ¶
type ResourceInstance struct { // 实例唯一id ResourceId string `json:"resource_id"` // 资源提供者:ECS。单个脚本工单, 每个实例的provider是一致的 Provider string `json:"provider"` // 机器所属region的ID RegionId string `json:"region_id"` // 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 Type ResourceInstanceType `json:"type"` // 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为20 - value长度为50 - map长度最大为5 CustomAttributes *[]Customttribute `json:"custom_attributes,omitempty"` // agent纳管id。该参数即将废弃,请勿使用。 AgentSn *string `json:"agent_sn,omitempty"` // agent纳管状态。该参数即将废弃,请勿使用。 AgentStatus *string `json:"agent_status,omitempty"` Properties *ResourceInstanceProp `json:"properties,omitempty"` }
func (ResourceInstance) String ¶
func (o ResourceInstance) String() string
type ResourceInstanceProp ¶
type ResourceInstanceProp struct { // 主机名 未校验:长度 HostName string `json:"host_name"` // 内网ip 未校验: 格式,长度 FixedIp string `json:"fixed_ip"` // 弹性公网ip 未校验: 格式,长度 FloatingIp *string `json:"floating_ip,omitempty"` // 区域 未校验: 长度 RegionId string `json:"region_id"` // 可用区 ZoneId string `json:"zone_id"` // CMDB应用,CMDB应用视图才有值。类似管理面的云服务 Application *string `json:"application,omitempty"` // CMDB分组,CMDB应用视图才有值。类似管理面的schema Group *string `json:"group,omitempty"` // 实例的 project_id 需要消费,建议必填 未校验长度 ProjectId *string `json:"project_id,omitempty"` }
ResourceInstanceProp 主机附加属性
func (ResourceInstanceProp) String ¶
func (o ResourceInstanceProp) String() string
type ResourceInstanceType ¶
type ResourceInstanceType struct {
// contains filtered or unexported fields
}
func (ResourceInstanceType) MarshalJSON ¶
func (c ResourceInstanceType) MarshalJSON() ([]byte, error)
func (*ResourceInstanceType) UnmarshalJSON ¶
func (c *ResourceInstanceType) UnmarshalJSON(b []byte) error
func (ResourceInstanceType) Value ¶
func (c ResourceInstanceType) Value() string
type ResourceInstanceTypeEnum ¶
type ResourceInstanceTypeEnum struct {
CLOUDSERVER ResourceInstanceType
}
func GetResourceInstanceTypeEnum ¶
func GetResourceInstanceTypeEnum() ResourceInstanceTypeEnum
type ReviewerInfo ¶
type ReviewerInfo struct { // 审批人名称(IAM用户名) ReviewerName string `json:"reviewer_name"` // 审批人ID(IAM用户Id) ReviewerId string `json:"reviewer_id"` }
ReviewerInfo 审批人信息
func (ReviewerInfo) String ¶
func (o ReviewerInfo) String() string
type ScheduleGroupInfo ¶
type ScheduleGroupInfo struct { // 角色id RoleId string `json:"role_id"` // 场景id SceneId string `json:"scene_id"` }
func (ScheduleGroupInfo) String ¶
func (o ScheduleGroupInfo) String() string
type ScriptDetailModel ¶
type ScriptDetailModel struct { // 脚本uuid ScriptUuid string `json:"script_uuid"` // 脚本名称 Name string `json:"name"` // 脚本版本号 约束条件 后期废除,不建议使用 Version *string `json:"version,omitempty"` // 脚本描述 Description string `json:"description"` // 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, Type ScriptDetailModelType `json:"type"` // 脚本内容 Content string `json:"content"` // 脚本入参 ScriptParams *[]ScriptParamDefine `json:"script_params,omitempty"` // 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本) Status ScriptDetailModelStatus `json:"status"` // 创建时间 GmtCreated int64 `json:"gmt_created"` // 修改时间 GmtModified *int64 `json:"gmt_modified,omitempty"` // 创建人 Creator string `json:"creator"` // 创建人Id CreatorId string `json:"creator_id"` // 修改人 Operator *string `json:"operator,omitempty"` Properties *ScriptPropertiesModel `json:"properties"` // 企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
ScriptDetailModel 脚本详情
func (ScriptDetailModel) String ¶
func (o ScriptDetailModel) String() string
type ScriptDetailModelStatus ¶
type ScriptDetailModelStatus struct {
// contains filtered or unexported fields
}
func (ScriptDetailModelStatus) MarshalJSON ¶
func (c ScriptDetailModelStatus) MarshalJSON() ([]byte, error)
func (*ScriptDetailModelStatus) UnmarshalJSON ¶
func (c *ScriptDetailModelStatus) UnmarshalJSON(b []byte) error
func (ScriptDetailModelStatus) Value ¶
func (c ScriptDetailModelStatus) Value() string
type ScriptDetailModelStatusEnum ¶
type ScriptDetailModelStatusEnum struct { PENDING_APPROVE ScriptDetailModelStatus APPROVED ScriptDetailModelStatus REJECTED ScriptDetailModelStatus }
func GetScriptDetailModelStatusEnum ¶
func GetScriptDetailModelStatusEnum() ScriptDetailModelStatusEnum
type ScriptDetailModelType ¶
type ScriptDetailModelType struct {
// contains filtered or unexported fields
}
func (ScriptDetailModelType) MarshalJSON ¶
func (c ScriptDetailModelType) MarshalJSON() ([]byte, error)
func (*ScriptDetailModelType) UnmarshalJSON ¶
func (c *ScriptDetailModelType) UnmarshalJSON(b []byte) error
func (ScriptDetailModelType) Value ¶
func (c ScriptDetailModelType) Value() string
type ScriptDetailModelTypeEnum ¶
type ScriptDetailModelTypeEnum struct { SHELL ScriptDetailModelType PYTHON ScriptDetailModelType BAT ScriptDetailModelType }
func GetScriptDetailModelTypeEnum ¶
func GetScriptDetailModelTypeEnum() ScriptDetailModelTypeEnum
type ScriptExecuteInputParam ¶
type ScriptExecuteInputParam struct { // 脚本入参的名称,同一个脚本,参数名不能重复 ParamName string `json:"param_name"` // 脚本入参的值,默认必填。有引用参数(param_refer不为空)时,允许为空 ParamValue ScriptExecuteInputParamParamValue `json:"param_value"` // 该参数已废弃,传入该参数不会生效。 ParamOrder *int32 `json:"param_order,omitempty"` ParamRefer *ScriptExecuteParamReference `json:"param_refer,omitempty"` }
func (ScriptExecuteInputParam) String ¶
func (o ScriptExecuteInputParam) String() string
type ScriptExecuteInputParamParamValue ¶
type ScriptExecuteInputParamParamValue struct {
// contains filtered or unexported fields
}
func (ScriptExecuteInputParamParamValue) MarshalJSON ¶
func (c ScriptExecuteInputParamParamValue) MarshalJSON() ([]byte, error)
func (*ScriptExecuteInputParamParamValue) UnmarshalJSON ¶
func (c *ScriptExecuteInputParamParamValue) UnmarshalJSON(b []byte) error
func (ScriptExecuteInputParamParamValue) Value ¶
func (c ScriptExecuteInputParamParamValue) Value() string
type ScriptExecuteInputParamParamValueEnum ¶
type ScriptExecuteInputParamParamValueEnum struct { A_Z_A_Z0_9________X20 ScriptExecuteInputParamParamValue // contains filtered or unexported fields }
func GetScriptExecuteInputParamParamValueEnum ¶
func GetScriptExecuteInputParamParamValueEnum() ScriptExecuteInputParamParamValueEnum
type ScriptExecuteModel ¶
type ScriptExecuteModel struct { ExecuteParam *ScriptExecuteParam `json:"execute_param"` // 目标实例分批信息 ExecuteBatches []ExecuteInstancesBatchInfo `json:"execute_batches"` }
func (ScriptExecuteModel) String ¶
func (o ScriptExecuteModel) String() string
type ScriptExecuteParam ¶
type ScriptExecuteParam struct { // 是否资源受限,true表示不受限,false表示受限 Resourceful *bool `json:"resourceful,omitempty"` // 超时时间,单位:秒,取值范围待定,5 < timeout < 1800 Timeout int32 `json:"timeout"` // 成功率,支持小数点后一位 SuccessRate float64 `json:"success_rate"` // 脚本执行用户,如:root ExecuteUser string `json:"execute_user"` // 脚本入参列表 ScriptParams *[]ScriptExecuteInputParam `json:"script_params,omitempty"` }
ScriptExecuteParam 脚本执行相关参数
func (ScriptExecuteParam) String ¶
func (o ScriptExecuteParam) String() string
type ScriptExecuteParamReference ¶
type ScriptExecuteParamReference struct { // 参数引用类型:PARAM_STORE ReferType string `json:"refer_type"` // 引用参数的唯一主键id ParamId ScriptExecuteParamReferenceParamId `json:"param_id"` // 引用参数的版本号 ParamVersion *string `json:"param_version,omitempty"` }
ScriptExecuteParamReference 脚本执行入参引用定义
func (ScriptExecuteParamReference) String ¶
func (o ScriptExecuteParamReference) String() string
type ScriptExecuteParamReferenceParamId ¶
type ScriptExecuteParamReferenceParamId struct {
// contains filtered or unexported fields
}
func (ScriptExecuteParamReferenceParamId) MarshalJSON ¶
func (c ScriptExecuteParamReferenceParamId) MarshalJSON() ([]byte, error)
func (*ScriptExecuteParamReferenceParamId) UnmarshalJSON ¶
func (c *ScriptExecuteParamReferenceParamId) UnmarshalJSON(b []byte) error
func (ScriptExecuteParamReferenceParamId) Value ¶
func (c ScriptExecuteParamReferenceParamId) Value() string
type ScriptExecuteParamReferenceParamIdEnum ¶
type ScriptExecuteParamReferenceParamIdEnum struct { LOW ScriptExecuteParamReferenceParamId MEDIUM ScriptExecuteParamReferenceParamId HIGH ScriptExecuteParamReferenceParamId }
func GetScriptExecuteParamReferenceParamIdEnum ¶
func GetScriptExecuteParamReferenceParamIdEnum() ScriptExecuteParamReferenceParamIdEnum
type ScriptListModel ¶
type ScriptListModel struct { // 脚本自增id Id int64 `json:"id"` // 脚本uuid ScriptUuid string `json:"script_uuid"` // 企业项目ID,默认为:0 EnterpriseProjectId string `json:"enterprise_project_id"` // 脚本名称 Name string `json:"name"` // 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 Type ScriptListModelType `json:"type"` // 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本 Status ScriptListModelStatus `json:"status"` // 创建时间 GmtCreated int64 `json:"gmt_created"` // 修改时间 GmtModified *int64 `json:"gmt_modified,omitempty"` // 创建人 Creator string `json:"creator"` // 创建人Id CreatorId string `json:"creator_id"` // 修改人 Operator *string `json:"operator,omitempty"` Properties *ScriptPropertiesModel `json:"properties"` }
ScriptListModel **遗留问题** 1. 脚本入参限制:参数个数、参数长度、参数合法范围 2. 字段长度和范围待定义
func (ScriptListModel) String ¶
func (o ScriptListModel) String() string
type ScriptListModelStatus ¶
type ScriptListModelStatus struct {
// contains filtered or unexported fields
}
func (ScriptListModelStatus) MarshalJSON ¶
func (c ScriptListModelStatus) MarshalJSON() ([]byte, error)
func (*ScriptListModelStatus) UnmarshalJSON ¶
func (c *ScriptListModelStatus) UnmarshalJSON(b []byte) error
func (ScriptListModelStatus) Value ¶
func (c ScriptListModelStatus) Value() string
type ScriptListModelStatusEnum ¶
type ScriptListModelStatusEnum struct { PENDING_APPROVE ScriptListModelStatus APPROVED ScriptListModelStatus REJECTED ScriptListModelStatus }
func GetScriptListModelStatusEnum ¶
func GetScriptListModelStatusEnum() ScriptListModelStatusEnum
type ScriptListModelType ¶
type ScriptListModelType struct {
// contains filtered or unexported fields
}
func (ScriptListModelType) MarshalJSON ¶
func (c ScriptListModelType) MarshalJSON() ([]byte, error)
func (*ScriptListModelType) UnmarshalJSON ¶
func (c *ScriptListModelType) UnmarshalJSON(b []byte) error
func (ScriptListModelType) Value ¶
func (c ScriptListModelType) Value() string
type ScriptListModelTypeEnum ¶
type ScriptListModelTypeEnum struct { SHELL ScriptListModelType PYTHON ScriptListModelType BAT ScriptListModelType }
func GetScriptListModelTypeEnum ¶
func GetScriptListModelTypeEnum() ScriptListModelTypeEnum
type ScriptListPage ¶
type ScriptListPage struct { // 总条数 Total int64 `json:"total"` // 单页数据列表 Data []ScriptListModel `json:"data"` }
ScriptListPage 脚本列表分页数据
func (ScriptListPage) String ¶
func (o ScriptListPage) String() string
type ScriptParamDefine ¶
type ScriptParamDefine struct { // 参数名称:只支持英文、数字、下划线 ParamName string `json:"param_name"` // 参数默认值,默认必填,如果有参数引用,可为空 ParamValue *string `json:"param_value,omitempty"` // 参数描述 ParamDescription string `json:"param_description"` // 该参数已废弃,传入该参数不会生效。 ParamOrder *int32 `json:"param_order,omitempty"` // 是否是敏感参数 Sensitive bool `json:"sensitive"` }
ScriptParamDefine 顺序参数,没有参数名字段 参数顺序,从1开始,不连续会报错 api层用不同的vo对象接收,管理面没有order字段。service层统一处理差异 拼接:sh xxx.sh 'aaa' 'a' 'b' 执行时值为空:sh xxx.sh ” 'a' 'b'
func (ScriptParamDefine) String ¶
func (o ScriptParamDefine) String() string
type ScriptPropertiesModel ¶
type ScriptPropertiesModel struct { // 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 RiskLevel ScriptPropertiesModelRiskLevel `json:"risk_level"` // 脚本版本号 Version string `json:"version"` // 审批人,不填写不需要审批 Reviewers *[]ReviewerInfo `json:"reviewers,omitempty"` // 审批消息通知协议,用于通知审批人 DEFAULT:默认 SMS:短信 EMAIL:邮件 DING_TALK:钉钉 WE_LINK:welink WECHAT:微信 CALLNOTIFY:语言 NOT_TO_NOTIFY:不通知 Protocol *ScriptPropertiesModelProtocol `json:"protocol,omitempty"` }
ScriptPropertiesModel 脚本标签:风险等级risk_level(取值范围:LOW/MEDIUM/HIGH)、审批人reviewer、脚本解释器interpreter等
func (ScriptPropertiesModel) String ¶
func (o ScriptPropertiesModel) String() string
type ScriptPropertiesModelProtocol ¶
type ScriptPropertiesModelProtocol struct {
// contains filtered or unexported fields
}
func (ScriptPropertiesModelProtocol) MarshalJSON ¶
func (c ScriptPropertiesModelProtocol) MarshalJSON() ([]byte, error)
func (*ScriptPropertiesModelProtocol) UnmarshalJSON ¶
func (c *ScriptPropertiesModelProtocol) UnmarshalJSON(b []byte) error
func (ScriptPropertiesModelProtocol) Value ¶
func (c ScriptPropertiesModelProtocol) Value() string
type ScriptPropertiesModelProtocolEnum ¶
type ScriptPropertiesModelProtocolEnum struct { DEFAULT ScriptPropertiesModelProtocol SMS ScriptPropertiesModelProtocol EMAIL ScriptPropertiesModelProtocol DING_TALK ScriptPropertiesModelProtocol WE_LINK ScriptPropertiesModelProtocol WECHAT ScriptPropertiesModelProtocol CALLNOTIFY ScriptPropertiesModelProtocol NOT_TO_NOTIFY ScriptPropertiesModelProtocol }
func GetScriptPropertiesModelProtocolEnum ¶
func GetScriptPropertiesModelProtocolEnum() ScriptPropertiesModelProtocolEnum
type ScriptPropertiesModelRiskLevel ¶
type ScriptPropertiesModelRiskLevel struct {
// contains filtered or unexported fields
}
func (ScriptPropertiesModelRiskLevel) MarshalJSON ¶
func (c ScriptPropertiesModelRiskLevel) MarshalJSON() ([]byte, error)
func (*ScriptPropertiesModelRiskLevel) UnmarshalJSON ¶
func (c *ScriptPropertiesModelRiskLevel) UnmarshalJSON(b []byte) error
func (ScriptPropertiesModelRiskLevel) Value ¶
func (c ScriptPropertiesModelRiskLevel) Value() string
type ScriptPropertiesModelRiskLevelEnum ¶
type ScriptPropertiesModelRiskLevelEnum struct { LOW ScriptPropertiesModelRiskLevel MEDIUM ScriptPropertiesModelRiskLevel HIGH ScriptPropertiesModelRiskLevel }
func GetScriptPropertiesModelRiskLevelEnum ¶
func GetScriptPropertiesModelRiskLevelEnum() ScriptPropertiesModelRiskLevelEnum
type SeveritySummary ¶
type SeveritySummary struct { // 重大合规性报告数量 CriticalCount *int32 `json:"critical_count,omitempty"` // 高合规性报告数量 HighCount *int32 `json:"high_count,omitempty"` // 信息性合规性报告数量 InformationalCount *int32 `json:"informational_count,omitempty"` // 低合规性报告数量 LowCount *int32 `json:"low_count,omitempty"` // 中级合规性报告数量 MediumCount *int32 `json:"medium_count,omitempty"` // 未指定合规性报告数量 UnspecifiedCount *int32 `json:"unspecified_count,omitempty"` }
func (SeveritySummary) String ¶
func (o SeveritySummary) String() string
type ShowCocIncidentDetailRequest ¶
type ShowCocIncidentDetailRequest struct { // 事件单号 IncidentNum string `json:"incident_num"` }
ShowCocIncidentDetailRequest Request Object
func (ShowCocIncidentDetailRequest) String ¶
func (o ShowCocIncidentDetailRequest) String() string
type ShowCocIncidentDetailResponse ¶
type ShowCocIncidentDetailResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` Data *IncidentTicketInfoResponseData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ShowCocIncidentDetailResponse Response Object
func (ShowCocIncidentDetailResponse) String ¶
func (o ShowCocIncidentDetailResponse) String() string
type ShowCocIssuesDetailRequest ¶
type ShowCocIssuesDetailRequest struct { // 问题单号 TicketId string `json:"ticket_id"` }
ShowCocIssuesDetailRequest Request Object
func (ShowCocIssuesDetailRequest) String ¶
func (o ShowCocIssuesDetailRequest) String() string
type ShowCocIssuesDetailResponse ¶
type ShowCocIssuesDetailResponse struct { // 服务标识 ProviderCode string `json:"provider_code"` // 请求响应代码,范围:0000~9999,正常时取值:0 ErrorCode string `json:"error_code"` // 请求响应描述 ErrorMsg *string `json:"error_msg,omitempty"` Data *CocIssuesTicketDetailInfoResponseData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ShowCocIssuesDetailResponse Response Object
func (ShowCocIssuesDetailResponse) String ¶
func (o ShowCocIssuesDetailResponse) String() string
type ShowInstancePatchItemsRequest ¶
type ShowInstancePatchItemsRequest struct { // 合规性报告id InstanceCompliantId string `json:"instance_compliant_id"` // 偏移量 Offset *int32 `json:"offset,omitempty"` // 每页数量 Limit *int32 `json:"limit,omitempty"` // 补丁名称 Title *string `json:"title,omitempty"` // 排序 - asc:升序 - desc:降序 SortDir *string `json:"sort_dir,omitempty"` // 排序字段 -installed_time:补丁安装时间 SortKey *string `json:"sort_key,omitempty"` // 补丁状态 INSTALLED:已安装 INSTALLED_OTHER:已安装其他 MISSING:缺失 REJECT:拒绝 FAILED:失败 PENDING_REBOOT:已安装待重启 PatchStatus *string `json:"patch_status,omitempty"` // 分类 Classification *string `json:"classification,omitempty"` // 严重性级别 SeverityLevel *string `json:"severity_level,omitempty"` // 合规性级别 ComplianceLevel *string `json:"compliance_level,omitempty"` }
ShowInstancePatchItemsRequest Request Object
func (ShowInstancePatchItemsRequest) String ¶
func (o ShowInstancePatchItemsRequest) String() string
type ShowInstancePatchItemsResponse ¶
type ShowInstancePatchItemsResponse struct { // 总条数 Count *int64 `json:"count,omitempty"` // 补丁合规信息 ComplianceItems *[]ComplianceItem `json:"compliance_items,omitempty"` HttpStatusCode int `json:"-"` }
ShowInstancePatchItemsResponse Response Object
func (ShowInstancePatchItemsResponse) String ¶
func (o ShowInstancePatchItemsResponse) String() string
type SyncResourceReq ¶
type SyncResourceReq struct { // 资源提供者 Provider string `json:"provider"` // 资源类型 Type string `json:"type"` }
func (SyncResourceReq) String ¶
func (o SyncResourceReq) String() string
type SyncResourceRequest ¶
type SyncResourceRequest struct {
Body *SyncResourceReq `json:"body,omitempty"`
}
SyncResourceRequest Request Object
func (SyncResourceRequest) String ¶
func (o SyncResourceRequest) String() string
type SyncResourceResponse ¶
type SyncResourceResponse struct {
HttpStatusCode int `json:"-"`
}
SyncResourceResponse Response Object
func (SyncResourceResponse) String ¶
func (o SyncResourceResponse) String() string
type Tag ¶
type TicketHistoryInfo ¶
type TicketHistoryInfo struct { // 扩展字段 CurrentCloudServiceId *string `json:"current_cloud_service_id,omitempty"` // 扩展字段 Description *string `json:"description,omitempty"` // 扩展字段 LevelId *string `json:"level_id,omitempty"` // 扩展字段 MtmRegion *string `json:"mtm_region,omitempty"` // 扩展字段 MtmType *string `json:"mtm_type,omitempty"` // 扩展字段 SourceId *string `json:"source_id,omitempty"` // 扩展字段 Title *string `json:"title,omitempty"` // 是否变更事件 IsChangeEvent *bool `json:"is_change_event,omitempty"` // 是否变更事件 IsServiceInterrupt *bool `json:"is_service_interrupt,omitempty"` // 操作标识 ActionId *string `json:"action_id,omitempty"` // 动作 Action *string `json:"action,omitempty"` // 子动作 SubAction *string `json:"sub_action,omitempty"` // 操作人 Operator *string `json:"operator,omitempty"` // 评论 Comment *string `json:"comment,omitempty"` // 主键 Id *string `json:"id,omitempty"` // 单号 TicketId *string `json:"ticket_id,omitempty"` // 起始时间 StartTime *int64 `json:"start_time,omitempty"` // 结束时间 StopTime *int64 `json:"stop_time,omitempty"` // 对象类型 TargetType *string `json:"target_type,omitempty"` // 对象值 TargetValue *string `json:"target_value,omitempty"` // 待修改 IsDeteted *bool `json:"is_deteted,omitempty"` // 更新时间 UpdateTime *int64 `json:"update_time,omitempty"` // action中文名 ActionNameZh *string `json:"action_name_zh,omitempty"` // action英文名 ActionNameEn *string `json:"action_name_en,omitempty"` // action中文模板 ActionTemplateZh *string `json:"action_template_zh,omitempty"` // action中文模板 ActionTemplateEn *string `json:"action_template_en,omitempty"` // 工单状态 Status *string `json:"status,omitempty"` // 最终子动作 FinalSubAction *string `json:"final_sub_action,omitempty"` // 枚举数据 EnumDataList *[]EnumDataInfo `json:"enum_data_list,omitempty"` }
func (TicketHistoryInfo) String ¶
func (o TicketHistoryInfo) String() string
type TicketInfoEnumData ¶
type TicketInfoEnumData struct { // 字段KEY 标识哪个字段 FiledKey string `json:"filed_key"` // 枚举KEY EnumKey string `json:"enum_key"` // 中文名称 NameZh string `json:"name_zh"` // 英文名称 NameEn string `json:"name_en"` }
TicketInfoEnumData 单据枚举
func (TicketInfoEnumData) String ¶
func (o TicketInfoEnumData) String() string
type UpdateScriptRequest ¶
type UpdateScriptRequest struct { // 脚本uuid ScriptUuid string `json:"script_uuid"` // 国际化标记,zh-cn表示中文,en-us或不传表示英文 XLanguage *string `json:"X-Language,omitempty"` // 项目ID,一个项目对应一个region XProjectId *string `json:"x-project-id,omitempty"` // IAM5.0用户信息 XUserProfile *string `json:"x-user-profile,omitempty"` Body *EditScriptModel `json:"body,omitempty"` }
UpdateScriptRequest Request Object
func (UpdateScriptRequest) String ¶
func (o UpdateScriptRequest) String() string
type UpdateScriptResponse ¶
type UpdateScriptResponse struct { // 被修改脚本的script_uuid Data *string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
UpdateScriptResponse Response Object
func (UpdateScriptResponse) String ¶
func (o UpdateScriptResponse) String() string
type UpdateTicketHistoryInfo ¶
type UpdateTicketHistoryInfo struct { // 扩展字段 CurrentCloudServiceId *string `json:"current_cloud_service_id,omitempty"` // 扩展字段 Description *string `json:"description,omitempty"` // 扩展字段 LevelId *string `json:"level_id,omitempty"` // 扩展字段 MtmRegion *string `json:"mtm_region,omitempty"` // 扩展字段 MtmType *string `json:"mtm_type,omitempty"` // 扩展字段 SourceId *string `json:"source_id,omitempty"` // 扩展字段 Title *string `json:"title,omitempty"` // 是否变更事件 IsChangeEvent *bool `json:"is_change_event,omitempty"` // 是否变更事件 IsServiceInterrupt *bool `json:"is_service_interrupt,omitempty"` // 操作标识 ActionId *string `json:"action_id,omitempty"` // 动作 Action *string `json:"action,omitempty"` // 子动作 SubAction *string `json:"sub_action,omitempty"` // 操作人 Operator *string `json:"operator,omitempty"` // 评论 Comment *string `json:"comment,omitempty"` }
func (UpdateTicketHistoryInfo) String ¶
func (o UpdateTicketHistoryInfo) String() string
type WarRoomEnumeration ¶
type WarRoomEnumeration struct { // 枚举值id Id *string `json:"id,omitempty"` // 枚举值中文名 NameZh *string `json:"name_zh,omitempty"` // 枚举值英文名 NameEn *string `json:"name_en,omitempty"` // 枚举类型 Type *string `json:"type,omitempty"` }
WarRoomEnumeration 枚举类型信息
func (WarRoomEnumeration) String ¶
func (o WarRoomEnumeration) String() string
type WarRoomIncident ¶
type WarRoomIncident struct { // 主键 Id string `json:"id"` // 事件id IncidentId *string `json:"incident_id,omitempty"` // 是否变更事件 IsChangeEvent *bool `json:"is_change_event,omitempty"` // 事件级别 FailureLevel *string `json:"failure_level,omitempty"` // 事件单号链接 IncidentUrl *string `json:"incident_url,omitempty"` }
WarRoomIncident WarRoom存储事件有关信息
func (WarRoomIncident) String ¶
func (o WarRoomIncident) String() string
type WarRoomTenantInfo ¶
type WarRoomTenantInfo struct { // 主键 Id *string `json:"id,omitempty"` // 标题 Title *string `json:"title,omitempty"` // WarRoom管理员 Admin *string `json:"admin,omitempty"` // 恢复成员 RecoverMember *[]string `json:"recover_member,omitempty"` // 主恢复责任人 RecoverLeader *[]string `json:"recover_leader,omitempty"` Incident *WarRoomIncident `json:"incident,omitempty"` // 事件来源 Source *string `json:"source,omitempty"` // 影响的Region Regions *[]WarRoomTenantInfoRegions `json:"regions,omitempty"` // 变更单号 ChangeNum *string `json:"change_num,omitempty"` // 开始时间 OccurTime *int64 `json:"occur_time,omitempty"` // 故障恢复时间 RecoverTime *int64 `json:"recover_time,omitempty"` // 故障原因 FaultCause *string `json:"fault_cause,omitempty"` // 添加时间 CreateTime *int64 `json:"create_time,omitempty"` // 首次通报时间 FirstReportTime *int64 `json:"first_report_time,omitempty"` // 恢复通报时间 RecoveryNotificationTime *int64 `json:"recovery_notification_time,omitempty"` // 故障影响 FaultImpact *string `json:"fault_impact,omitempty"` // WarRoom描述 Description *string `json:"description,omitempty"` // 通报级别 租户区同事件级别 CircularLevel *string `json:"circular_level,omitempty"` WarRoomStatus *WarRoomEnumeration `json:"war_room_status,omitempty"` // 影响应用 ImpactedApplication *[]WarRoomTenantInfoImpactedApplication `json:"impacted_application,omitempty"` // 处理时长(分钟) ProcessingDuration *int64 `json:"processing_duration,omitempty"` // 恢复时长(分钟) RestorationDuration *int64 `json:"restoration_duration,omitempty"` // WarRoom单号 WarRoomNum *string `json:"war_room_num,omitempty"` // 企业项目id EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
WarRoomTenantInfo WarRoom信息
func (WarRoomTenantInfo) String ¶
func (o WarRoomTenantInfo) String() string
type WarRoomTenantInfoImpactedApplication ¶
type WarRoomTenantInfoImpactedApplication struct { // 主键 Id *string `json:"id,omitempty"` // 名字 Name *string `json:"name,omitempty"` }
func (WarRoomTenantInfoImpactedApplication) String ¶
func (o WarRoomTenantInfoImpactedApplication) String() string
type WarRoomTenantInfoRegions ¶
type WarRoomTenantInfoRegions struct { // 主键 Code *string `json:"code,omitempty"` // 名称 Name *string `json:"name,omitempty"` }
func (WarRoomTenantInfoRegions) String ¶
func (o WarRoomTenantInfoRegions) String() string
Source Files ¶
- model_add_script_model.go
- model_application_query_response_data.go
- model_authorizable_ticket_body.go
- model_authorize_ticket_common_info.go
- model_authorize_ticket_info.go
- model_base_response.go
- model_batch_list_resource_response_data.go
- model_coc_issues_ticket_detail_info_response_data.go
- model_compliance_item.go
- model_compliant_summary.go
- model_create_coc_incident_request.go
- model_create_coc_incident_response.go
- model_create_coc_issues_request.go
- model_create_coc_issues_response.go
- model_create_external_incident_request.go
- model_create_external_incident_response_data.go
- model_create_external_issues_request.go
- model_create_external_issues_response_data.go
- model_create_report_custom_event_request.go
- model_create_report_custom_event_response.go
- model_create_report_prometheus_event_request.go
- model_create_report_prometheus_event_response.go
- model_create_script_request.go
- model_create_script_response.go
- model_create_war_room_request.go
- model_create_war_room_request_body.go
- model_create_war_room_response.go
- model_customttribute.go
- model_delete_script_request.go
- model_delete_script_response.go
- model_edit_script_model.go
- model_enum_data_info.go
- model_exection_instance_model.go
- model_exectuion_statistic.go
- model_execute_instances_batch_info.go
- model_execute_public_script_request.go
- model_execute_public_script_response.go
- model_execute_resource_instance.go
- model_execute_script_request.go
- model_execute_script_response.go
- model_execution_summary.go
- model_extra_field_info.go
- model_get_public_script_request.go
- model_get_public_script_response.go
- model_get_script_job_batch_request.go
- model_get_script_job_batch_response.go
- model_get_script_job_info_request.go
- model_get_script_job_info_response.go
- model_get_script_job_statistics_request.go
- model_get_script_job_statistics_response.go
- model_get_script_request.go
- model_get_script_response.go
- model_handle_coc_incident_request.go
- model_handle_coc_incident_response.go
- model_handle_external_incident_request.go
- model_handle_external_incident_response_data.go
- model_incident_ticket_info_response_data.go
- model_instance_compliant.go
- model_job_script_batch_detail_model.go
- model_job_script_batch_list_model.go
- model_job_script_order_info_model.go
- model_job_script_order_info_prop.go
- model_job_script_order_list_model.go
- model_job_script_order_list_page.go
- model_job_script_order_list_prop.go
- model_job_script_order_operation_body.go
- model_job_script_order_statistics_model.go
- model_list_applications_request.go
- model_list_applications_response.go
- model_list_authorizable_tickets_external_request.go
- model_list_authorizable_tickets_external_response.go
- model_list_authorizable_tickets_req.go
- model_list_base_request.go
- model_list_base_response.go
- model_list_coc_ticket_operation_histories_request.go
- model_list_coc_ticket_operation_histories_response.go
- model_list_instance_compliant_request.go
- model_list_instance_compliant_response.go
- model_list_public_scripts_request.go
- model_list_public_scripts_response.go
- model_list_resource_request.go
- model_list_resource_response.go
- model_list_script_job_batches_request.go
- model_list_script_job_batches_response.go
- model_list_script_jobs_request.go
- model_list_script_jobs_response.go
- model_list_scripts_request.go
- model_list_scripts_response.go
- model_list_tenant_war_room_request_body.go
- model_list_ticket_params.go
- model_list_war_rooms_request.go
- model_list_war_rooms_response.go
- model_non_compliant_summary.go
- model_object_filter.go
- model_operate_script_job_request.go
- model_operate_script_job_response.go
- model_patch_detail.go
- model_public_script_detail_model.go
- model_public_script_list_model.go
- model_public_script_list_page.go
- model_public_script_properties_model.go
- model_report_custom_event_request_body.go
- model_resource_instance.go
- model_resource_instance_prop.go
- model_reviewer_info.go
- model_schedule_group_info.go
- model_script_detail_model.go
- model_script_execute_input_param.go
- model_script_execute_model.go
- model_script_execute_param.go
- model_script_execute_param_reference.go
- model_script_list_model.go
- model_script_list_page.go
- model_script_param_define.go
- model_script_properties_model.go
- model_severity_summary.go
- model_show_coc_incident_detail_request.go
- model_show_coc_incident_detail_response.go
- model_show_coc_issues_detail_request.go
- model_show_coc_issues_detail_response.go
- model_show_instance_patch_items_request.go
- model_show_instance_patch_items_response.go
- model_sync_resource_req.go
- model_sync_resource_request.go
- model_sync_resource_response.go
- model_tag.go
- model_ticket_history_info.go
- model_ticket_info_enum_data.go
- model_update_script_request.go
- model_update_script_response.go
- model_update_ticket_history_info.go
- model_war_room_enumeration.go
- model_war_room_incident.go
- model_war_room_tenant_info.go
- model_war_room_tenant_info_impacted_application.go
- model_war_room_tenant_info_regions.go