model

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionInfo

type ActionInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// Type of action, aopworkflow, Script, Task and so on.
	ActionType *string `json:"action_type,omitempty"`

	// action id
	ActionId *string `json:"action_id,omitempty"`

	// sort_order
	SortOrder *int32 `json:"sort_order,omitempty"`

	// 剧本ID
	PlaybookId *string `json:"playbook_id,omitempty"`

	// 剧本版本ID
	PlaybookVersionId *string `json:"playbook_version_id,omitempty"`

	// project_id
	ProjectId *string `json:"project_id,omitempty"`
}

Action info

func (ActionInfo) String

func (o ActionInfo) String() string

type ActionInstanceInfo

type ActionInstanceInfo struct {
	Action *ActionInfo `json:"action,omitempty"`

	InstanceLog *AuditLogInfo `json:"instance_log,omitempty"`
}

Action Instance

func (ActionInstanceInfo) String

func (o ActionInstanceInfo) String() string

type Alert

type Alert struct {

	// 版本
	Version *string `json:"version,omitempty"`

	Environment *ShowAlertRspEnvironment `json:"environment,omitempty"`

	Datasource *ShowAlertRspDatasource `json:"datasource,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *int32 `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Serverity *string `json:"serverity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	// 事件分类
	AlertType *interface{} `json:"alert_type,omitempty"`

	// network_list
	NetworkList *[]ShowAlertRspNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]ShowAlertRspResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *bool `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *ShowAlertRspMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]ShowAlertRspProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]ShowAlertRspUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemAlertTable *interface{} `json:"system_alert_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

告警详情

func (Alert) String

func (o Alert) String() string

type AlertDetail

type AlertDetail struct {
	DataObject *Alert `json:"data_object,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// The name, display only
	Id *string `json:"id,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	// The name, display only
	Version *int32 `json:"version,omitempty"`

	// The name, display only
	FormatVersion *int32 `json:"format_version,omitempty"`

	DataclassRef *ShowAlertDetailDataclassRef `json:"dataclass_ref,omitempty"`
}

func (AlertDetail) String

func (o AlertDetail) String() string

type AlertRule

type AlertRule struct {

	// rule_id
	RuleId string `json:"rule_id"`

	// pipe_id
	PipeId string `json:"pipe_id"`

	// pipe_name
	PipeName string `json:"pipe_name"`

	// create_by
	CreateBy string `json:"create_by"`

	// create_time
	CreateTime int64 `json:"create_time"`

	// update_by
	UpdateBy string `json:"update_by"`

	// update_time
	UpdateTime int64 `json:"update_time"`

	// delete_time
	DeleteTime *int64 `json:"delete_time,omitempty"`

	// rule_name
	RuleName string `json:"rule_name"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *AlertRuleQueryType `json:"query_type,omitempty"`

	// status. ENABLED, DISABLED
	Status AlertRuleStatus `json:"status"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity AlertRuleSeverity `json:"severity"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`
}

func (AlertRule) String

func (o AlertRule) String() string

type AlertRuleMetric

type AlertRuleMetric struct {

	// category. GROUP_COUNT
	Category AlertRuleMetricCategory `json:"category"`

	// metric
	Metric map[string]float32 `json:"metric"`
}

func (AlertRuleMetric) String

func (o AlertRuleMetric) String() string

type AlertRuleMetricCategory

type AlertRuleMetricCategory struct {
	// contains filtered or unexported fields
}

func (AlertRuleMetricCategory) MarshalJSON

func (c AlertRuleMetricCategory) MarshalJSON() ([]byte, error)

func (*AlertRuleMetricCategory) UnmarshalJSON

func (c *AlertRuleMetricCategory) UnmarshalJSON(b []byte) error

func (AlertRuleMetricCategory) Value

func (c AlertRuleMetricCategory) Value() string

type AlertRuleMetricCategoryEnum

type AlertRuleMetricCategoryEnum struct {
	GROUP_COUNT AlertRuleMetricCategory
}

func GetAlertRuleMetricCategoryEnum

func GetAlertRuleMetricCategoryEnum() AlertRuleMetricCategoryEnum

type AlertRuleQueryType

type AlertRuleQueryType struct {
	// contains filtered or unexported fields
}

func (AlertRuleQueryType) MarshalJSON

func (c AlertRuleQueryType) MarshalJSON() ([]byte, error)

func (*AlertRuleQueryType) UnmarshalJSON

func (c *AlertRuleQueryType) UnmarshalJSON(b []byte) error

func (AlertRuleQueryType) Value

func (c AlertRuleQueryType) Value() string

type AlertRuleQueryTypeEnum

type AlertRuleQueryTypeEnum struct {
	SQL  AlertRuleQueryType
	CBSL AlertRuleQueryType
}

func GetAlertRuleQueryTypeEnum

func GetAlertRuleQueryTypeEnum() AlertRuleQueryTypeEnum

type AlertRuleSeverity

type AlertRuleSeverity struct {
	// contains filtered or unexported fields
}

func (AlertRuleSeverity) MarshalJSON

func (c AlertRuleSeverity) MarshalJSON() ([]byte, error)

func (*AlertRuleSeverity) UnmarshalJSON

func (c *AlertRuleSeverity) UnmarshalJSON(b []byte) error

func (AlertRuleSeverity) Value

func (c AlertRuleSeverity) Value() string

type AlertRuleSeverityEnum

type AlertRuleSeverityEnum struct {
	TIPS   AlertRuleSeverity
	LOW    AlertRuleSeverity
	MEDIUM AlertRuleSeverity
	HIGH   AlertRuleSeverity
	FATAL  AlertRuleSeverity
}

func GetAlertRuleSeverityEnum

func GetAlertRuleSeverityEnum() AlertRuleSeverityEnum

type AlertRuleStatus

type AlertRuleStatus struct {
	// contains filtered or unexported fields
}

func (AlertRuleStatus) MarshalJSON

func (c AlertRuleStatus) MarshalJSON() ([]byte, error)

func (*AlertRuleStatus) UnmarshalJSON

func (c *AlertRuleStatus) UnmarshalJSON(b []byte) error

func (AlertRuleStatus) Value

func (c AlertRuleStatus) Value() string

type AlertRuleStatusEnum

type AlertRuleStatusEnum struct {
	ENABLED  AlertRuleStatus
	DISABLED AlertRuleStatus
}

func GetAlertRuleStatusEnum

func GetAlertRuleStatusEnum() AlertRuleStatusEnum

type AlertRuleTemplate

type AlertRuleTemplate struct {

	// template_id
	TemplateId string `json:"template_id"`

	// update_time
	UpdateTime int64 `json:"update_time"`

	// template_name
	TemplateName string `json:"template_name"`

	// data_source
	DataSource string `json:"data_source"`

	// version
	Version string `json:"version"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *AlertRuleTemplateQueryType `json:"query_type,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity AlertRuleTemplateSeverity `json:"severity"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`
}

func (AlertRuleTemplate) String

func (o AlertRuleTemplate) String() string

type AlertRuleTemplateQueryType

type AlertRuleTemplateQueryType struct {
	// contains filtered or unexported fields
}

func (AlertRuleTemplateQueryType) MarshalJSON

func (c AlertRuleTemplateQueryType) MarshalJSON() ([]byte, error)

func (*AlertRuleTemplateQueryType) UnmarshalJSON

func (c *AlertRuleTemplateQueryType) UnmarshalJSON(b []byte) error

func (AlertRuleTemplateQueryType) Value

type AlertRuleTemplateQueryTypeEnum

type AlertRuleTemplateQueryTypeEnum struct {
	SQL  AlertRuleTemplateQueryType
	CBSL AlertRuleTemplateQueryType
}

func GetAlertRuleTemplateQueryTypeEnum

func GetAlertRuleTemplateQueryTypeEnum() AlertRuleTemplateQueryTypeEnum

type AlertRuleTemplateSeverity

type AlertRuleTemplateSeverity struct {
	// contains filtered or unexported fields
}

func (AlertRuleTemplateSeverity) MarshalJSON

func (c AlertRuleTemplateSeverity) MarshalJSON() ([]byte, error)

func (*AlertRuleTemplateSeverity) UnmarshalJSON

func (c *AlertRuleTemplateSeverity) UnmarshalJSON(b []byte) error

func (AlertRuleTemplateSeverity) Value

type AlertRuleTrigger

type AlertRuleTrigger struct {

	// mode. COUNT.
	Mode *AlertRuleTriggerMode `json:"mode,omitempty"`

	// operator. EQ equal, NE not equal, GT greater than, LT less than.
	Operator *AlertRuleTriggerOperator `json:"operator,omitempty"`

	// expression
	Expression string `json:"expression"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *AlertRuleTriggerSeverity `json:"severity,omitempty"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`
}

func (AlertRuleTrigger) String

func (o AlertRuleTrigger) String() string

type AlertRuleTriggerMode

type AlertRuleTriggerMode struct {
	// contains filtered or unexported fields
}

func (AlertRuleTriggerMode) MarshalJSON

func (c AlertRuleTriggerMode) MarshalJSON() ([]byte, error)

func (*AlertRuleTriggerMode) UnmarshalJSON

func (c *AlertRuleTriggerMode) UnmarshalJSON(b []byte) error

func (AlertRuleTriggerMode) Value

func (c AlertRuleTriggerMode) Value() string

type AlertRuleTriggerModeEnum

type AlertRuleTriggerModeEnum struct {
	COUNT AlertRuleTriggerMode
}

func GetAlertRuleTriggerModeEnum

func GetAlertRuleTriggerModeEnum() AlertRuleTriggerModeEnum

type AlertRuleTriggerOperator

type AlertRuleTriggerOperator struct {
	// contains filtered or unexported fields
}

func (AlertRuleTriggerOperator) MarshalJSON

func (c AlertRuleTriggerOperator) MarshalJSON() ([]byte, error)

func (*AlertRuleTriggerOperator) UnmarshalJSON

func (c *AlertRuleTriggerOperator) UnmarshalJSON(b []byte) error

func (AlertRuleTriggerOperator) Value

func (c AlertRuleTriggerOperator) Value() string

type AlertRuleTriggerSeverity

type AlertRuleTriggerSeverity struct {
	// contains filtered or unexported fields
}

func (AlertRuleTriggerSeverity) MarshalJSON

func (c AlertRuleTriggerSeverity) MarshalJSON() ([]byte, error)

func (*AlertRuleTriggerSeverity) UnmarshalJSON

func (c *AlertRuleTriggerSeverity) UnmarshalJSON(b []byte) error

func (AlertRuleTriggerSeverity) Value

func (c AlertRuleTriggerSeverity) Value() string

type ApproveOpinionDetail

type ApproveOpinionDetail struct {

	// Approve Result.
	Result *string `json:"result,omitempty"`

	// Approve content.
	Content *string `json:"content,omitempty"`
}

Approve Detail

func (ApproveOpinionDetail) String

func (o ApproveOpinionDetail) String() string

type ApprovePlaybookInfo

type ApprovePlaybookInfo struct {

	// 审核结果  通过:PASS 不通过:UN_PASS
	Result *string `json:"result,omitempty"`

	// 审核意见
	Content *string `json:"content,omitempty"`
}

approve of playbook

func (ApprovePlaybookInfo) String

func (o ApprovePlaybookInfo) String() string

type AuditLogInfo

type AuditLogInfo struct {

	// instance type.
	InstanceType *string `json:"instance_type,omitempty"`

	// Action id.
	ActionId *string `json:"action_id,omitempty"`

	// action name.
	ActionName *string `json:"action_name,omitempty"`

	// Instance id.
	InstanceId *string `json:"instance_id,omitempty"`

	// parent instance id.
	ParentInstanceId *string `json:"parent_instance_id,omitempty"`

	// log level.
	LogLevel *string `json:"log_level,omitempty"`

	// input.
	Input *string `json:"input,omitempty"`

	// output.
	Output *string `json:"output,omitempty"`

	// error_msg.
	ErrorMsg *string `json:"error_msg,omitempty"`

	// start_time.
	StartTime *string `json:"start_time,omitempty"`

	// end_time.
	EndTime *string `json:"end_time,omitempty"`

	// status.
	Status *string `json:"status,omitempty"`

	// trigger type.
	TriggerType *string `json:"trigger_type,omitempty"`
}

Audit Log Info

func (AuditLogInfo) String

func (o AuditLogInfo) String() string

type BatchOrderAlertResult

type BatchOrderAlertResult struct {

	// 失败id
	ErrorIds *[]string `json:"error_ids,omitempty"`

	// 成功败id
	SuccessIds *[]string `json:"success_ids,omitempty"`
}

委托告警返回对象

func (BatchOrderAlertResult) String

func (o BatchOrderAlertResult) String() string

type ChangeAlertRequest

type ChangeAlertRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// 告警ID
	AlertId string `json:"alert_id"`

	Body *ChangeAlertRequestBody `json:"body,omitempty"`
}

Request Object

func (ChangeAlertRequest) String

func (o ChangeAlertRequest) String() string

type ChangeAlertRequestBody

type ChangeAlertRequestBody struct {
	DataObject *Alert `json:"data_object,omitempty"`
}

ChangeAlertRequestBody

func (ChangeAlertRequestBody) String

func (o ChangeAlertRequestBody) String() string

type ChangeAlertResponse

type ChangeAlertResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *AlertDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ChangeAlertResponse) String

func (o ChangeAlertResponse) String() string

type ChangeIncidentRequest

type ChangeIncidentRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// 事件ID
	IncidentId string `json:"incident_id"`

	Body *ChangeIncidentRequestBody `json:"body,omitempty"`
}

Request Object

func (ChangeIncidentRequest) String

func (o ChangeIncidentRequest) String() string

type ChangeIncidentRequestBody

type ChangeIncidentRequestBody struct {
	DataObject *Incident `json:"data_object,omitempty"`
}

ChangeIncidentRequestBody

func (ChangeIncidentRequestBody) String

func (o ChangeIncidentRequestBody) String() string

type ChangeIncidentResponse

type ChangeIncidentResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *IncidentDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ChangeIncidentResponse) String

func (o ChangeIncidentResponse) String() string

type ChangePlaybookInstanceRequest

type ChangePlaybookInstanceRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// instance _id
	InstanceId string `json:"instance_id"`

	Body *OperationPlaybookInfo `json:"body,omitempty"`
}

Request Object

func (ChangePlaybookInstanceRequest) String

type ChangePlaybookInstanceResponse

type ChangePlaybookInstanceResponse struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	Playbook *PlaybookInfoRef `json:"playbook,omitempty"`

	Dataclass *DataclassInfoRef `json:"dataclass,omitempty"`

	Dataobject *DataclassInfoRef `json:"dataobject,omitempty"`

	// Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED
	Status *string `json:"status,omitempty"`

	// trigger type. DEBUG, TIMER, EVENT, MANUAL
	TriggerType *string `json:"trigger_type,omitempty"`

	// Create time
	StartTime *string `json:"start_time,omitempty"`

	// Update time
	EndTime *string `json:"end_time,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ChangePlaybookInstanceResponse) String

type ConditionInfo

type ConditionInfo struct {

	// expression type, all, any, user_define
	ExpressionType *string `json:"expression_type,omitempty"`

	// Information of conditions.
	Conditions *[]ConditionItem `json:"conditions,omitempty"`

	// Logic item of condition.
	Logics *interface{} `json:"logics,omitempty"`

	// Cron 表达式
	Cron *string `json:"cron,omitempty"`

	// schedule type, second hours...
	ScheduleType *string `json:"schedule_type,omitempty"`

	// 执行时间段 2021-01-30T23:00:00Z+0800
	RepeatRange *string `json:"repeat_range,omitempty"`

	// 重复次数
	RepeatCount *string `json:"repeat_count,omitempty"`
}

Condition info of rule

func (ConditionInfo) String

func (o ConditionInfo) String() string

type ConditionItem

type ConditionItem struct {

	// Name of the condition.
	Name *string `json:"name,omitempty"`

	// Detail of the condition.
	Detail *string `json:"detail,omitempty"`

	// Detail of the condition.
	Data *[]string `json:"data,omitempty"`
}

Condition define

func (ConditionItem) String

func (o ConditionItem) String() string

type ConditonInfo

type ConditonInfo struct {

	// name
	Name *string `json:"name,omitempty"`

	// search data
	Data *[]string `json:"data,omitempty"`
}

ConditonInfo

func (ConditonInfo) String

func (o ConditonInfo) String() string

type CopyPlaybookInfo

type CopyPlaybookInfo struct {

	// 名称
	Name *string `json:"name,omitempty"`
}

Copy playbook

func (CopyPlaybookInfo) String

func (o CopyPlaybookInfo) String() string

type CopyPlaybookVersionRequest

type CopyPlaybookVersionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	Body *CopyPlaybookInfo `json:"body,omitempty"`
}

Request Object

func (CopyPlaybookVersionRequest) String

type CopyPlaybookVersionResponse

type CopyPlaybookVersionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookVersionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CopyPlaybookVersionResponse) String

type CreateAction

type CreateAction struct {

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// Type of this action, script or aopworkflow.
	ActionType *string `json:"action_type,omitempty"`

	// action id.
	ActionId *string `json:"action_id,omitempty"`

	// sort_order
	SortOrder *string `json:"sort_order,omitempty"`
}

func (CreateAction) String

func (o CreateAction) String() string

type CreateAlert

type CreateAlert struct {

	// 版本
	Version *string `json:"version,omitempty"`

	Environment *ShowAlertRspEnvironment `json:"environment,omitempty"`

	DataSource *CreateAlertDataSource `json:"data_source,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The name, display only
	Label *string `json:"label,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *int32 `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Severity *string `json:"severity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	// 事件分类
	AlertType *interface{} `json:"alert_type,omitempty"`

	// network_list
	NetworkList *[]ShowAlertRspNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]ShowAlertRspResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *bool `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *ShowAlertRspMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]ShowAlertRspProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]ShowAlertRspUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemAlertTable *interface{} `json:"system_alert_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

告警详情

func (CreateAlert) String

func (o CreateAlert) String() string

type CreateAlertDataSource

type CreateAlertDataSource struct {

	// current page count
	SourceType *int32 `json:"source_type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`

	// Id value
	ProductName *string `json:"product_name,omitempty"`

	// Id value
	ProductFeature *string `json:"product_feature,omitempty"`
}

数据源信息

func (CreateAlertDataSource) String

func (o CreateAlertDataSource) String() string

type CreateAlertRequest

type CreateAlertRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *CreateAlertRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateAlertRequest) String

func (o CreateAlertRequest) String() string

type CreateAlertRequestBody

type CreateAlertRequestBody struct {
	DataObject *CreateAlert `json:"data_object,omitempty"`
}

CreateAlertRequestBody

func (CreateAlertRequestBody) String

func (o CreateAlertRequestBody) String() string

type CreateAlertResponse

type CreateAlertResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *AlertDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateAlertResponse) String

func (o CreateAlertResponse) String() string

type CreateAlertRuleRequest

type CreateAlertRuleRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	Body *CreateAlertRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateAlertRuleRequest) String

func (o CreateAlertRuleRequest) String() string

type CreateAlertRuleRequestBody

type CreateAlertRuleRequestBody struct {

	// pipe_id
	PipeId string `json:"pipe_id"`

	// rule_name
	RuleName string `json:"rule_name"`

	// description
	Description *string `json:"description,omitempty"`

	// query
	Query string `json:"query"`

	// query_type. SQL, CBSL.
	QueryType *CreateAlertRuleRequestBodyQueryType `json:"query_type,omitempty"`

	// status. ENABLED, DISABLED
	Status *CreateAlertRuleRequestBodyStatus `json:"status,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *CreateAlertRuleRequestBodySeverity `json:"severity,omitempty"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// alert_type
	AlertType map[string]string `json:"alert_type,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	// suspression
	Suspression *bool `json:"suspression,omitempty"`

	// simulation
	Simulation *bool `json:"simulation,omitempty"`

	Schedule *Schedule `json:"schedule"`

	// triggers
	Triggers []AlertRuleTrigger `json:"triggers"`
}

func (CreateAlertRuleRequestBody) String

type CreateAlertRuleRequestBodyQueryType

type CreateAlertRuleRequestBodyQueryType struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleRequestBodyQueryType) MarshalJSON

func (c CreateAlertRuleRequestBodyQueryType) MarshalJSON() ([]byte, error)

func (*CreateAlertRuleRequestBodyQueryType) UnmarshalJSON

func (c *CreateAlertRuleRequestBodyQueryType) UnmarshalJSON(b []byte) error

func (CreateAlertRuleRequestBodyQueryType) Value

type CreateAlertRuleRequestBodyQueryTypeEnum

type CreateAlertRuleRequestBodyQueryTypeEnum struct {
	SQL  CreateAlertRuleRequestBodyQueryType
	CBSL CreateAlertRuleRequestBodyQueryType
}

func GetCreateAlertRuleRequestBodyQueryTypeEnum

func GetCreateAlertRuleRequestBodyQueryTypeEnum() CreateAlertRuleRequestBodyQueryTypeEnum

type CreateAlertRuleRequestBodySeverity

type CreateAlertRuleRequestBodySeverity struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleRequestBodySeverity) MarshalJSON

func (c CreateAlertRuleRequestBodySeverity) MarshalJSON() ([]byte, error)

func (*CreateAlertRuleRequestBodySeverity) UnmarshalJSON

func (c *CreateAlertRuleRequestBodySeverity) UnmarshalJSON(b []byte) error

func (CreateAlertRuleRequestBodySeverity) Value

type CreateAlertRuleRequestBodyStatus

type CreateAlertRuleRequestBodyStatus struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleRequestBodyStatus) MarshalJSON

func (c CreateAlertRuleRequestBodyStatus) MarshalJSON() ([]byte, error)

func (*CreateAlertRuleRequestBodyStatus) UnmarshalJSON

func (c *CreateAlertRuleRequestBodyStatus) UnmarshalJSON(b []byte) error

func (CreateAlertRuleRequestBodyStatus) Value

type CreateAlertRuleRequestBodyStatusEnum

type CreateAlertRuleRequestBodyStatusEnum struct {
	ENABLED  CreateAlertRuleRequestBodyStatus
	DISABLED CreateAlertRuleRequestBodyStatus
}

func GetCreateAlertRuleRequestBodyStatusEnum

func GetCreateAlertRuleRequestBodyStatusEnum() CreateAlertRuleRequestBodyStatusEnum

type CreateAlertRuleResponse

type CreateAlertRuleResponse struct {

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// pipe_id
	PipeId *string `json:"pipe_id,omitempty"`

	// pipe_name
	PipeName *string `json:"pipe_name,omitempty"`

	// create_by
	CreateBy *string `json:"create_by,omitempty"`

	// create_time
	CreateTime *int64 `json:"create_time,omitempty"`

	// update_by
	UpdateBy *string `json:"update_by,omitempty"`

	// update_time
	UpdateTime *int64 `json:"update_time,omitempty"`

	// delete_time
	DeleteTime *int64 `json:"delete_time,omitempty"`

	// rule_name
	RuleName *string `json:"rule_name,omitempty"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *CreateAlertRuleResponseQueryType `json:"query_type,omitempty"`

	// status. ENABLED, DISABLED
	Status *CreateAlertRuleResponseStatus `json:"status,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *CreateAlertRuleResponseSeverity `json:"severity,omitempty"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateAlertRuleResponse) String

func (o CreateAlertRuleResponse) String() string

type CreateAlertRuleResponseQueryType

type CreateAlertRuleResponseQueryType struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleResponseQueryType) MarshalJSON

func (c CreateAlertRuleResponseQueryType) MarshalJSON() ([]byte, error)

func (*CreateAlertRuleResponseQueryType) UnmarshalJSON

func (c *CreateAlertRuleResponseQueryType) UnmarshalJSON(b []byte) error

func (CreateAlertRuleResponseQueryType) Value

type CreateAlertRuleResponseQueryTypeEnum

type CreateAlertRuleResponseQueryTypeEnum struct {
	SQL  CreateAlertRuleResponseQueryType
	CBSL CreateAlertRuleResponseQueryType
}

func GetCreateAlertRuleResponseQueryTypeEnum

func GetCreateAlertRuleResponseQueryTypeEnum() CreateAlertRuleResponseQueryTypeEnum

type CreateAlertRuleResponseSeverity

type CreateAlertRuleResponseSeverity struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleResponseSeverity) MarshalJSON

func (c CreateAlertRuleResponseSeverity) MarshalJSON() ([]byte, error)

func (*CreateAlertRuleResponseSeverity) UnmarshalJSON

func (c *CreateAlertRuleResponseSeverity) UnmarshalJSON(b []byte) error

func (CreateAlertRuleResponseSeverity) Value

type CreateAlertRuleResponseStatus

type CreateAlertRuleResponseStatus struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleResponseStatus) MarshalJSON

func (c CreateAlertRuleResponseStatus) MarshalJSON() ([]byte, error)

func (*CreateAlertRuleResponseStatus) UnmarshalJSON

func (c *CreateAlertRuleResponseStatus) UnmarshalJSON(b []byte) error

func (CreateAlertRuleResponseStatus) Value

type CreateAlertRuleResponseStatusEnum

type CreateAlertRuleResponseStatusEnum struct {
	ENABLED  CreateAlertRuleResponseStatus
	DISABLED CreateAlertRuleResponseStatus
}

func GetCreateAlertRuleResponseStatusEnum

func GetCreateAlertRuleResponseStatusEnum() CreateAlertRuleResponseStatusEnum

type CreateAlertRuleSimulationRequest

type CreateAlertRuleSimulationRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	Body *CreateAlertRuleSimulationRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateAlertRuleSimulationRequest) String

type CreateAlertRuleSimulationRequestBody

type CreateAlertRuleSimulationRequestBody struct {

	// pipe_id
	PipeId string `json:"pipe_id"`

	// query
	Query string `json:"query"`

	// query_type. SQL, CBSL.
	QueryType *CreateAlertRuleSimulationRequestBodyQueryType `json:"query_type,omitempty"`

	// from
	From int64 `json:"from"`

	// from
	To int64 `json:"to"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	// triggers
	Triggers []AlertRuleTrigger `json:"triggers"`
}

func (CreateAlertRuleSimulationRequestBody) String

type CreateAlertRuleSimulationRequestBodyQueryType

type CreateAlertRuleSimulationRequestBodyQueryType struct {
	// contains filtered or unexported fields
}

func (CreateAlertRuleSimulationRequestBodyQueryType) MarshalJSON

func (*CreateAlertRuleSimulationRequestBodyQueryType) UnmarshalJSON

func (CreateAlertRuleSimulationRequestBodyQueryType) Value

type CreateAlertRuleSimulationResponse

type CreateAlertRuleSimulationResponse struct {

	// alert_count
	AlertCount *int32 `json:"alert_count,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *string `json:"severity,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateAlertRuleSimulationResponse) String

type CreateBatchOrderAlertsRequest

type CreateBatchOrderAlertsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *OrderAlert `json:"body,omitempty"`
}

Request Object

func (CreateBatchOrderAlertsRequest) String

type CreateBatchOrderAlertsResponse

type CreateBatchOrderAlertsResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *BatchOrderAlertResult `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateBatchOrderAlertsResponse) String

type CreateDataobjectRelationRequest

type CreateDataobjectRelationRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// type of dataclass
	DataclassType string `json:"dataclass_type"`

	// ID of dataobject
	DataObjectId string `json:"data_object_id"`

	// type of related dataclass
	RelatedDataclassType string `json:"related_dataclass_type"`

	Body *CreateRelation `json:"body,omitempty"`
}

Request Object

func (CreateDataobjectRelationRequest) String

type CreateDataobjectRelationResponse

type CreateDataobjectRelationResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// Error message
	RequestId *string `json:"request_id,omitempty"`

	// Error message
	Success *bool `json:"success,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// current page count
	Limit *int32 `json:"limit,omitempty"`

	// current page size
	Offset *int32 `json:"offset,omitempty"`

	Data *DataResponse `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDataobjectRelationResponse) String

type CreateIncident

type CreateIncident struct {

	// 版本
	Version *string `json:"version,omitempty"`

	// 严重性等级
	Severity *string `json:"severity,omitempty"`

	Environment *ShowAlertRspEnvironment `json:"environment,omitempty"`

	DataSource *CreateAlertDataSource `json:"data_source,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The label, display only
	Labels *string `json:"labels,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *int32 `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Serverity *string `json:"serverity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	IncidentType *CreateIncidentIncidentType `json:"incident_type,omitempty"`

	// network_list
	NetworkList *[]CreateIncidentNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]CreateIncidentResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *string `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *CreateIncidentMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]CreateIncidentProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]CreateIncidentUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemIncidentTable *interface{} `json:"system_incident_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

事件详情

func (CreateIncident) String

func (o CreateIncident) String() string

type CreateIncidentIncidentType

type CreateIncidentIncidentType struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// Id value
	LayoutId *string `json:"layoutId,omitempty"`

	// Id value
	IncidentType *string `json:"incident_type,omitempty"`

	// Id value
	Category *string `json:"category,omitempty"`
}

事件类型

func (CreateIncidentIncidentType) String

type CreateIncidentMalware

type CreateIncidentMalware struct {

	// 恶意家族
	MalwareFamily *string `json:"malware_family,omitempty"`

	// 恶意软件分类
	MalwareClass *string `json:"malware_class,omitempty"`
}

恶意软件

func (CreateIncidentMalware) String

func (o CreateIncidentMalware) String() string

type CreateIncidentNetworkList

type CreateIncidentNetworkList struct {

	// 方向,取值范围:IN | OUT
	Direction *interface{} `json:"direction,omitempty"`

	// 协议,参考:IANA registered name
	Protocol *string `json:"protocol,omitempty"`

	// 源IP地址
	SrcIp *string `json:"src_ip,omitempty"`

	// 源端口,0–65535
	SrcPort *string `json:"src_port,omitempty"`

	// 源域名,最大128个字符
	SrcDomain *string `json:"src_domain,omitempty"`

	// 目的IP地址
	DestIp *string `json:"dest_ip,omitempty"`

	// 目的端口,0–65535
	DestPort *string `json:"dest_port,omitempty"`

	// 目的域名,最大128个字符
	DestDomain *string `json:"dest_domain,omitempty"`

	// 源IP的地理位置信息
	SrcGeo *interface{} `json:"src_geo,omitempty"`

	// 目的IP的地理位置信息
	DestGeo *interface{} `json:"dest_geo,omitempty"`
}

func (CreateIncidentNetworkList) String

func (o CreateIncidentNetworkList) String() string

type CreateIncidentProcess

type CreateIncidentProcess struct {

	// The name, display only
	ProcessName *string `json:"process_name,omitempty"`

	// The name, display only
	ProcessPath *string `json:"process_path,omitempty"`

	// Id value
	ProcessPid *string `json:"process_pid,omitempty"`

	// Id value
	ProcessUid *string `json:"process_uid,omitempty"`

	// The name, display only
	ProcessCmdline *string `json:"process_cmdline,omitempty"`
}

func (CreateIncidentProcess) String

func (o CreateIncidentProcess) String() string

type CreateIncidentRequest

type CreateIncidentRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *CreateIncidentRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateIncidentRequest) String

func (o CreateIncidentRequest) String() string

type CreateIncidentRequestBody

type CreateIncidentRequestBody struct {
	DataObject *CreateIncident `json:"data_object,omitempty"`
}

CreateIncidentRequestBody

func (CreateIncidentRequestBody) String

func (o CreateIncidentRequestBody) String() string

type CreateIncidentResourceList

type CreateIncidentResourceList struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`

	// Id value
	EpId *string `json:"ep_id,omitempty"`

	// The name, display only
	EpName *string `json:"ep_name,omitempty"`

	// Id value
	Tags *string `json:"tags,omitempty"`
}

func (CreateIncidentResourceList) String

type CreateIncidentResponse

type CreateIncidentResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *IncidentDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateIncidentResponse) String

func (o CreateIncidentResponse) String() string

type CreateIncidentUserInfo

type CreateIncidentUserInfo struct {

	// Id value
	UserId *string `json:"user_id,omitempty"`

	// The name, display only
	UserName *string `json:"user_name,omitempty"`
}

func (CreateIncidentUserInfo) String

func (o CreateIncidentUserInfo) String() string

type CreateIndicatorDetail

type CreateIndicatorDetail struct {
	DataSource *CreateAlertDataSource `json:"data_source,omitempty"`

	// 威胁度
	Verdict *string `json:"verdict,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 状态
	Status *string `json:"status,omitempty"`

	// 标签
	Labels *string `json:"labels,omitempty"`

	// 值
	Value *string `json:"value,omitempty"`

	// 粒度(保密等级),由高到低:1(首次发现)、2(自产数据)、3(需购买)、4(外网直接查询)
	GranularMarking *string `json:"granular_marking,omitempty"`

	Environment *ShowAlertRspEnvironment `json:"environment,omitempty"`

	// 是否失效
	Defanged *bool `json:"defanged,omitempty"`

	// Create time
	FirstReportTime *string `json:"first_report_time,omitempty"`

	// Update time
	LastReportTime *string `json:"last_report_time,omitempty"`

	// 指标ID
	Id *string `json:"id,omitempty"`

	IndicatorType *CreateIndicatorDetailIndicatorType `json:"indicator_type,omitempty"`

	// 指标名称
	Name string `json:"name"`

	// 数据类ID
	DataclassId *string `json:"dataclass_id,omitempty"`

	// 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE)
	Type *string `json:"type,omitempty"`

	DataObject *IndicatorDataObjectDetail `json:"data_object,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// 布局ID
	LayoutId *string `json:"layout_id,omitempty"`

	Dataclass *DataClassRefPojo `json:"dataclass,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`
}

indicator detail

func (CreateIndicatorDetail) String

func (o CreateIndicatorDetail) String() string

type CreateIndicatorDetailIndicatorType

type CreateIndicatorDetailIndicatorType struct {

	// indicator_type
	IndicatorType *string `json:"indicator_type,omitempty"`

	// id
	Id *string `json:"id,omitempty"`

	// category
	Category *string `json:"category,omitempty"`

	// layoutId
	LayoutId *string `json:"layoutId,omitempty"`
}

指标类型统计数据

func (CreateIndicatorDetailIndicatorType) String

type CreateIndicatorRequest

type CreateIndicatorRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// workspace id
	WorkspaceId string `json:"workspace_id"`

	Body *IndicatorCreateRequest `json:"body,omitempty"`
}

Request Object

func (CreateIndicatorRequest) String

func (o CreateIndicatorRequest) String() string

type CreateIndicatorResponse

type CreateIndicatorResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *IndicatorDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateIndicatorResponse) String

func (o CreateIndicatorResponse) String() string

type CreatePlaybookActionRequest

type CreatePlaybookActionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// Create actions
	Body *[]CreateAction `json:"body,omitempty"`
}

Request Object

func (CreatePlaybookActionRequest) String

type CreatePlaybookActionResponse

type CreatePlaybookActionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// list of informations of playbook action
	Data *[]ActionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePlaybookActionResponse) String

type CreatePlaybookApproveRequest

type CreatePlaybookApproveRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	Body *ApprovePlaybookInfo `json:"body,omitempty"`
}

Request Object

func (CreatePlaybookApproveRequest) String

type CreatePlaybookApproveResponse

type CreatePlaybookApproveResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *ApproveOpinionDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePlaybookApproveResponse) String

type CreatePlaybookInfo

type CreatePlaybookInfo struct {

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 工作空间id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Role required for approve
	ApproveRole *string `json:"approve_role,omitempty"`

	// Role required for use
	UserRole *string `json:"user_role,omitempty"`

	// Role required for edit
	EditRole *string `json:"edit_role,omitempty"`

	// Owner id
	OwnerId *string `json:"owner_id,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`
}

Information of playbook

func (CreatePlaybookInfo) String

func (o CreatePlaybookInfo) String() string

type CreatePlaybookRequest

type CreatePlaybookRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *CreatePlaybookInfo `json:"body,omitempty"`
}

Request Object

func (CreatePlaybookRequest) String

func (o CreatePlaybookRequest) String() string

type CreatePlaybookResponse

type CreatePlaybookResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePlaybookResponse) String

func (o CreatePlaybookResponse) String() string

type CreatePlaybookRuleRequest

type CreatePlaybookRuleRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	Body *CreateRuleInfo `json:"body,omitempty"`
}

Request Object

func (CreatePlaybookRuleRequest) String

func (o CreatePlaybookRuleRequest) String() string

type CreatePlaybookRuleResponse

type CreatePlaybookRuleResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *RuleInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePlaybookRuleResponse) String

type CreatePlaybookVersionInfo

type CreatePlaybookVersionInfo struct {

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 工作空间id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Playbook id.
	PlaybookId *string `json:"playbook_id,omitempty"`

	// Information of actions.
	Actions *[]ActionInfo `json:"actions,omitempty"`

	// dataclass id.
	DataclassId *string `json:"dataclass_id,omitempty"`

	// 过滤规则是否启用
	RuleEnable *bool `json:"rule_enable,omitempty"`

	// 过滤规则ID
	RuleId *string `json:"rule_id,omitempty"`

	// Strategy of action. event, timer
	TriggerType *string `json:"trigger_type,omitempty"`

	// if trigger when dataobject is created
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// if trigger when dataobject is updated
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// if trigger when dataobject is deleted
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// Strategy of action. sync or async
	ActionStrategy *string `json:"action_strategy,omitempty"`
}

Information of playbook version

func (CreatePlaybookVersionInfo) String

func (o CreatePlaybookVersionInfo) String() string

type CreatePlaybookVersionRequest

type CreatePlaybookVersionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// ID of playbook
	PlaybookId string `json:"playbook_id"`

	Body *CreatePlaybookVersionInfo `json:"body,omitempty"`
}

Request Object

func (CreatePlaybookVersionRequest) String

type CreatePlaybookVersionResponse

type CreatePlaybookVersionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookVersionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatePlaybookVersionResponse) String

type CreateRelation

type CreateRelation struct {

	// search ids
	Ids *[]string `json:"ids,omitempty"`
}

Create Relation

func (CreateRelation) String

func (o CreateRelation) String() string

type CreateRuleInfo

type CreateRuleInfo struct {
	Rule *ConditionInfo `json:"rule,omitempty"`
}

Information of rule

func (CreateRuleInfo) String

func (o CreateRuleInfo) String() string

type DataClassRefPojo

type DataClassRefPojo struct {

	// 唯一标识ID
	Id string `json:"id"`

	// 唯一标识ID
	Name *string `json:"name,omitempty"`
}

数据类对象信息

func (DataClassRefPojo) String

func (o DataClassRefPojo) String() string

type DataClassTypeDetailInfo

type DataClassTypeDetailInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	ParentName *string `json:"parent_name,omitempty"`

	// 类型标识码
	ParentBusinessCode *string `json:"parent_business_code,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// 类型标识码
	BusinessCode *string `json:"business_code,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`

	// 是否内置
	IsBuiltIn *bool `json:"is_built_in,omitempty"`

	// 布局ID
	LayoutId *string `json:"layout_id,omitempty"`

	// The name, display only
	LayoutName *string `json:"layout_name,omitempty"`

	// dataclass id.
	DataclassId *string `json:"dataclass_id,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`
}

Info of Dataclass Type

func (DataClassTypeDetailInfo) String

func (o DataClassTypeDetailInfo) String() string

type DataResponse

type DataResponse struct {

	// id list
	SuccessIds []string `json:"success_ids"`

	// id list
	ErrorIds *[]string `json:"error_ids,omitempty"`
}

indicator batch operation response

func (DataResponse) String

func (o DataResponse) String() string

type DataclassInfoRef

type DataclassInfoRef struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// Id value
	Name *string `json:"name,omitempty"`
}

Response of Dataclass Info Ref

func (DataclassInfoRef) String

func (o DataclassInfoRef) String() string

type DataobjectInfo

type DataobjectInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// dataclass id.
	DataclassId *string `json:"dataclass_id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE
	Type *string `json:"type,omitempty"`

	// data
	Content *string `json:"content,omitempty"`
}

Information of dataobject

func (DataobjectInfo) String

func (o DataobjectInfo) String() string

type DataobjectSearch

type DataobjectSearch struct {

	// limit
	Limit *int32 `json:"limit,omitempty"`

	// offset
	Offset *int32 `json:"offset,omitempty"`

	// sortby
	SortBy *string `json:"sort_by,omitempty"`

	// order
	Order *string `json:"order,omitempty"`

	// search start time
	FromDate *string `json:"from_date,omitempty"`

	// search end time
	ToDate *string `json:"to_date,omitempty"`

	Condition *DataobjectSearchCondition `json:"condition,omitempty"`
}

Dataobject Search

func (DataobjectSearch) String

func (o DataobjectSearch) String() string

type DataobjectSearchCondition

type DataobjectSearchCondition struct {

	// conditions
	Conditions *[]ConditonInfo `json:"conditions,omitempty"`

	// conditions
	Logics *[]string `json:"logics,omitempty"`
}

search condition

func (DataobjectSearchCondition) String

func (o DataobjectSearchCondition) String() string

type DeleteAlert

type DeleteAlert struct {

	// 删除事件的ID列表
	Ids *[]string `json:"ids,omitempty"`
}

删除事件

func (DeleteAlert) String

func (o DeleteAlert) String() string

type DeleteAlertRequest

type DeleteAlertRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *DeleteAlert `json:"body,omitempty"`
}

Request Object

func (DeleteAlertRequest) String

func (o DeleteAlertRequest) String() string

type DeleteAlertResponse

type DeleteAlertResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *DataResponse `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteAlertResponse) String

func (o DeleteAlertResponse) String() string

type DeleteAlertRuleRequest

type DeleteAlertRuleRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	Body *[]string `json:"body,omitempty"`
}

Request Object

func (DeleteAlertRuleRequest) String

func (o DeleteAlertRuleRequest) String() string

type DeleteAlertRuleResponse

type DeleteAlertRuleResponse struct {

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// delete_time
	DeleteTime *int64 `json:"delete_time,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteAlertRuleResponse) String

func (o DeleteAlertRuleResponse) String() string

type DeleteDataobjectRelationRequest

type DeleteDataobjectRelationRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// type of dataclass
	DataclassType string `json:"dataclass_type"`

	// ID of dataobject
	DataObjectId string `json:"data_object_id"`

	// type of related dataclass
	RelatedDataclassType string `json:"related_dataclass_type"`

	Body *CreateRelation `json:"body,omitempty"`
}

Request Object

func (DeleteDataobjectRelationRequest) String

type DeleteDataobjectRelationResponse

type DeleteDataobjectRelationResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// Error message
	RequestId *string `json:"request_id,omitempty"`

	// Error message
	Success *bool `json:"success,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// current page count
	Limit *int32 `json:"limit,omitempty"`

	// current page size
	Offset *int32 `json:"offset,omitempty"`

	Data *DataResponse `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDataobjectRelationResponse) String

type DeleteIncident

type DeleteIncident struct {

	// 删除事件的ID列表
	Ids *[]string `json:"ids,omitempty"`
}

删除事件

func (DeleteIncident) String

func (o DeleteIncident) String() string

type DeleteIncidentRequest

type DeleteIncidentRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *DeleteIncident `json:"body,omitempty"`
}

Request Object

func (DeleteIncidentRequest) String

func (o DeleteIncidentRequest) String() string

type DeleteIncidentResponse

type DeleteIncidentResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *BatchOrderAlertResult `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteIncidentResponse) String

func (o DeleteIncidentResponse) String() string

type DeleteIndicatorRequest

type DeleteIndicatorRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// workspace id
	WorkspaceId string `json:"workspace_id"`

	Body *DeleteIndicatorRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteIndicatorRequest) String

func (o DeleteIndicatorRequest) String() string

type DeleteIndicatorRequestBody

type DeleteIndicatorRequestBody struct {

	// id list
	BatchIds *[]string `json:"batch_ids,omitempty"`
}

delete indicator request body

func (DeleteIndicatorRequestBody) String

type DeleteIndicatorResponse

type DeleteIndicatorResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *IndicatorBatchOperateResponse `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteIndicatorResponse) String

func (o DeleteIndicatorResponse) String() string

type DeletePlaybookActionRequest

type DeletePlaybookActionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// ID of action
	ActionId string `json:"action_id"`
}

Request Object

func (DeletePlaybookActionRequest) String

type DeletePlaybookActionResponse

type DeletePlaybookActionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeletePlaybookActionResponse) String

type DeletePlaybookRequest

type DeletePlaybookRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// ID of playbook
	PlaybookId string `json:"playbook_id"`
}

Request Object

func (DeletePlaybookRequest) String

func (o DeletePlaybookRequest) String() string

type DeletePlaybookResponse

type DeletePlaybookResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeletePlaybookResponse) String

func (o DeletePlaybookResponse) String() string

type DeletePlaybookRuleRequest

type DeletePlaybookRuleRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// rule_id
	RuleId string `json:"rule_id"`
}

Request Object

func (DeletePlaybookRuleRequest) String

func (o DeletePlaybookRuleRequest) String() string

type DeletePlaybookRuleResponse

type DeletePlaybookRuleResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeletePlaybookRuleResponse) String

type DeletePlaybookVersionRequest

type DeletePlaybookVersionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`
}

Request Object

func (DeletePlaybookVersionRequest) String

type DeletePlaybookVersionResponse

type DeletePlaybookVersionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeletePlaybookVersionResponse) String

type DisableAlertRuleRequest

type DisableAlertRuleRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	Body *[]string `json:"body,omitempty"`
}

Request Object

func (DisableAlertRuleRequest) String

func (o DisableAlertRuleRequest) String() string

type DisableAlertRuleResponse

type DisableAlertRuleResponse struct {

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// status. ENABLED, DISABLED
	Status *DisableAlertRuleResponseStatus `json:"status,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DisableAlertRuleResponse) String

func (o DisableAlertRuleResponse) String() string

type DisableAlertRuleResponseStatus

type DisableAlertRuleResponseStatus struct {
	// contains filtered or unexported fields
}

func (DisableAlertRuleResponseStatus) MarshalJSON

func (c DisableAlertRuleResponseStatus) MarshalJSON() ([]byte, error)

func (*DisableAlertRuleResponseStatus) UnmarshalJSON

func (c *DisableAlertRuleResponseStatus) UnmarshalJSON(b []byte) error

func (DisableAlertRuleResponseStatus) Value

type DisableAlertRuleResponseStatusEnum

type DisableAlertRuleResponseStatusEnum struct {
	ENABLED  DisableAlertRuleResponseStatus
	DISABLED DisableAlertRuleResponseStatus
}

func GetDisableAlertRuleResponseStatusEnum

func GetDisableAlertRuleResponseStatusEnum() DisableAlertRuleResponseStatusEnum

type EnableAlertRuleRequest

type EnableAlertRuleRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	Body *[]string `json:"body,omitempty"`
}

Request Object

func (EnableAlertRuleRequest) String

func (o EnableAlertRuleRequest) String() string

type EnableAlertRuleResponse

type EnableAlertRuleResponse struct {

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// status. ENABLED, DISABLED
	Status *EnableAlertRuleResponseStatus `json:"status,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (EnableAlertRuleResponse) String

func (o EnableAlertRuleResponse) String() string

type EnableAlertRuleResponseStatus

type EnableAlertRuleResponseStatus struct {
	// contains filtered or unexported fields
}

func (EnableAlertRuleResponseStatus) MarshalJSON

func (c EnableAlertRuleResponseStatus) MarshalJSON() ([]byte, error)

func (*EnableAlertRuleResponseStatus) UnmarshalJSON

func (c *EnableAlertRuleResponseStatus) UnmarshalJSON(b []byte) error

func (EnableAlertRuleResponseStatus) Value

type EnableAlertRuleResponseStatusEnum

type EnableAlertRuleResponseStatusEnum struct {
	ENABLED  EnableAlertRuleResponseStatus
	DISABLED EnableAlertRuleResponseStatus
}

func GetEnableAlertRuleResponseStatusEnum

func GetEnableAlertRuleResponseStatusEnum() EnableAlertRuleResponseStatusEnum

type Incident

type Incident struct {

	// 版本
	Version *string `json:"version,omitempty"`

	Environment *IncidentEnvironment `json:"environment,omitempty"`

	Datasource *IncidentDatasource `json:"datasource,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *int32 `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Serverity *string `json:"serverity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	// 事件分类
	IncidentType *interface{} `json:"incident_type,omitempty"`

	// network_list
	NetworkList *[]CreateIncidentNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]CreateIncidentResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *string `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *CreateIncidentMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]CreateIncidentProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]CreateIncidentUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemIncidentTable *interface{} `json:"system_incident_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

事件详情

func (Incident) String

func (o Incident) String() string

type IncidentDatasource

type IncidentDatasource struct {

	// current page count
	SourceType *int32 `json:"source_type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`
}

数据源信息

func (IncidentDatasource) String

func (o IncidentDatasource) String() string

type IncidentDetail

type IncidentDetail struct {
	DataObject *Incident `json:"data_object,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Id value
	DataclassId *string `json:"dataclass_id,omitempty"`

	// Id value
	LayoutId *string `json:"layout_id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	Dataclass *ShowAlertDetailDataclassRef `json:"dataclass,omitempty"`
}

func (IncidentDetail) String

func (o IncidentDetail) String() string

type IncidentEnvironment

type IncidentEnvironment struct {

	// The name, display only
	VendorType *string `json:"vendor_type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`
}

环境信息

func (IncidentEnvironment) String

func (o IncidentEnvironment) String() string

type IndicatorBatchOperateResponse

type IndicatorBatchOperateResponse struct {

	// id list
	SuccessIds []string `json:"success_ids"`

	// id list
	ErrorIds *[]string `json:"error_ids,omitempty"`
}

indicator batch operation response

func (IndicatorBatchOperateResponse) String

type IndicatorCreateRequest

type IndicatorCreateRequest struct {

	// 指标名称
	Name *string `json:"name,omitempty"`

	// 版本号
	FormatVersion *int32 `json:"format_version,omitempty"`

	// 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE)
	Type *string `json:"type,omitempty"`

	// 触发标志
	TriggerFlag *bool `json:"trigger_flag,omitempty"`

	DataObject *CreateIndicatorDetail `json:"data_object,omitempty"`
}

indicator create request

func (IndicatorCreateRequest) String

func (o IndicatorCreateRequest) String() string

type IndicatorDataObjectDetail

type IndicatorDataObjectDetail struct {
	IndicatorType *CreateIndicatorDetailIndicatorType `json:"indicator_type,omitempty"`

	// 值,如:ip url domain等
	Value *string `json:"value,omitempty"`
}

detail of indicator

func (IndicatorDataObjectDetail) String

func (o IndicatorDataObjectDetail) String() string

type IndicatorDetail

type IndicatorDetail struct {

	// 指标ID
	Id *string `json:"id,omitempty"`

	// 指标名称
	Name string `json:"name"`

	// 数据类ID
	DataclassId *string `json:"dataclass_id,omitempty"`

	// 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE)
	Type *string `json:"type,omitempty"`

	DataObject *IndicatorDataObjectDetail `json:"data_object,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// 布局ID
	LayoutId *string `json:"layout_id,omitempty"`

	Dataclass *DataClassRefPojo `json:"dataclass,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`
}

indicator detail

func (IndicatorDetail) String

func (o IndicatorDetail) String() string

type IndicatorListSearchRequest

type IndicatorListSearchRequest struct {

	// id list
	Ids *[]string `json:"ids,omitempty"`

	// 指标名称
	Name *string `json:"name,omitempty"`

	// 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE)
	Type *string `json:"type,omitempty"`

	// 数据类ID
	DataclassId *string `json:"dataclass_id,omitempty"`

	// search condition
	Condition *string `json:"condition,omitempty"`

	// request offset, from 0
	Offset *int32 `json:"offset,omitempty"`

	// request limit size
	Limit *int32 `json:"limit,omitempty"`

	// sort by property, create_time.
	SortBy *string `json:"sort_by,omitempty"`
}

indicator list query request

func (IndicatorListSearchRequest) String

type ListAlertDetail

type ListAlertDetail struct {
	DataObject *ListAlertRsp `json:"data_object,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// The name, display only
	Id *string `json:"id,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	// The name, display only
	Version *int32 `json:"version,omitempty"`

	// The name, display only
	FormatVersion *int32 `json:"format_version,omitempty"`

	DataclassRef *ShowAlertDetailDataclassRef `json:"dataclass_ref,omitempty"`
}

func (ListAlertDetail) String

func (o ListAlertDetail) String() string

type ListAlertRsp

type ListAlertRsp struct {

	// 版本
	Version *string `json:"version,omitempty"`

	Environment *ShowAlertRspEnvironment `json:"environment,omitempty"`

	Datasource *ShowAlertRspDatasource `json:"datasource,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *int32 `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Serverity *string `json:"serverity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	// 事件分类
	AlertType *interface{} `json:"alert_type,omitempty"`

	// network_list
	NetworkList *[]ShowAlertRspNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]ShowAlertRspResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *bool `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *ShowAlertRspMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]ShowAlertRspProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]ShowAlertRspUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemAlertTable *interface{} `json:"system_alert_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

告警详情

func (ListAlertRsp) String

func (o ListAlertRsp) String() string

type ListAlertRuleMetricsRequest

type ListAlertRuleMetricsRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`
}

Request Object

func (ListAlertRuleMetricsRequest) String

type ListAlertRuleMetricsResponse

type ListAlertRuleMetricsResponse struct {

	// ListAlertRuleMetricsResponseBody
	Body map[string]AlertRuleMetric `json:"body,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListAlertRuleMetricsResponse) String

type ListAlertRuleTemplatesRequest

type ListAlertRuleTemplatesRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	// offset
	Offset int64 `json:"offset"`

	// limit
	Limit int64 `json:"limit"`

	// sort_key
	SortKey *string `json:"sort_key,omitempty"`

	// sort_dir. asc, desc
	SortDir *ListAlertRuleTemplatesRequestSortDir `json:"sort_dir,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *[]ListAlertRuleTemplatesRequestSeverity `json:"severity,omitempty"`
}

Request Object

func (ListAlertRuleTemplatesRequest) String

type ListAlertRuleTemplatesRequestSeverity

type ListAlertRuleTemplatesRequestSeverity struct {
	// contains filtered or unexported fields
}

func (ListAlertRuleTemplatesRequestSeverity) MarshalJSON

func (c ListAlertRuleTemplatesRequestSeverity) MarshalJSON() ([]byte, error)

func (*ListAlertRuleTemplatesRequestSeverity) UnmarshalJSON

func (c *ListAlertRuleTemplatesRequestSeverity) UnmarshalJSON(b []byte) error

func (ListAlertRuleTemplatesRequestSeverity) Value

type ListAlertRuleTemplatesRequestSortDir

type ListAlertRuleTemplatesRequestSortDir struct {
	// contains filtered or unexported fields
}

func (ListAlertRuleTemplatesRequestSortDir) MarshalJSON

func (c ListAlertRuleTemplatesRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListAlertRuleTemplatesRequestSortDir) UnmarshalJSON

func (c *ListAlertRuleTemplatesRequestSortDir) UnmarshalJSON(b []byte) error

func (ListAlertRuleTemplatesRequestSortDir) Value

type ListAlertRuleTemplatesRequestSortDirEnum

type ListAlertRuleTemplatesRequestSortDirEnum struct {
	ASC  ListAlertRuleTemplatesRequestSortDir
	DESC ListAlertRuleTemplatesRequestSortDir
}

func GetListAlertRuleTemplatesRequestSortDirEnum

func GetListAlertRuleTemplatesRequestSortDirEnum() ListAlertRuleTemplatesRequestSortDirEnum

type ListAlertRuleTemplatesResponse

type ListAlertRuleTemplatesResponse struct {

	// total count
	Count *int64 `json:"count,omitempty"`

	// templates
	Records *[]AlertRuleTemplate `json:"records,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListAlertRuleTemplatesResponse) String

type ListAlertRulesRequest

type ListAlertRulesRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	// offset
	Offset int64 `json:"offset"`

	// limit
	Limit int64 `json:"limit"`

	// sort_key
	SortKey *string `json:"sort_key,omitempty"`

	// sort_dir. asc, desc
	SortDir *ListAlertRulesRequestSortDir `json:"sort_dir,omitempty"`

	// pipe_id
	PipeId *string `json:"pipe_id,omitempty"`

	// rule_name
	RuleName *string `json:"rule_name,omitempty"`

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// status. ENABLED, DISABLED
	Status *[]ListAlertRulesRequestStatus `json:"status,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *[]ListAlertRulesRequestSeverity `json:"severity,omitempty"`
}

Request Object

func (ListAlertRulesRequest) String

func (o ListAlertRulesRequest) String() string

type ListAlertRulesRequestSeverity

type ListAlertRulesRequestSeverity struct {
	// contains filtered or unexported fields
}

func (ListAlertRulesRequestSeverity) MarshalJSON

func (c ListAlertRulesRequestSeverity) MarshalJSON() ([]byte, error)

func (*ListAlertRulesRequestSeverity) UnmarshalJSON

func (c *ListAlertRulesRequestSeverity) UnmarshalJSON(b []byte) error

func (ListAlertRulesRequestSeverity) Value

type ListAlertRulesRequestSortDir

type ListAlertRulesRequestSortDir struct {
	// contains filtered or unexported fields
}

func (ListAlertRulesRequestSortDir) MarshalJSON

func (c ListAlertRulesRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListAlertRulesRequestSortDir) UnmarshalJSON

func (c *ListAlertRulesRequestSortDir) UnmarshalJSON(b []byte) error

func (ListAlertRulesRequestSortDir) Value

type ListAlertRulesRequestSortDirEnum

type ListAlertRulesRequestSortDirEnum struct {
	ASC  ListAlertRulesRequestSortDir
	DESC ListAlertRulesRequestSortDir
}

func GetListAlertRulesRequestSortDirEnum

func GetListAlertRulesRequestSortDirEnum() ListAlertRulesRequestSortDirEnum

type ListAlertRulesRequestStatus

type ListAlertRulesRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListAlertRulesRequestStatus) MarshalJSON

func (c ListAlertRulesRequestStatus) MarshalJSON() ([]byte, error)

func (*ListAlertRulesRequestStatus) UnmarshalJSON

func (c *ListAlertRulesRequestStatus) UnmarshalJSON(b []byte) error

func (ListAlertRulesRequestStatus) Value

type ListAlertRulesRequestStatusEnum

type ListAlertRulesRequestStatusEnum struct {
	ENABLED  ListAlertRulesRequestStatus
	DISABLED ListAlertRulesRequestStatus
}

func GetListAlertRulesRequestStatusEnum

func GetListAlertRulesRequestStatusEnum() ListAlertRulesRequestStatusEnum

type ListAlertRulesResponse

type ListAlertRulesResponse struct {

	// total count
	Count *int64 `json:"count,omitempty"`

	// rules
	Records *[]AlertRule `json:"records,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListAlertRulesResponse) String

func (o ListAlertRulesResponse) String() string

type ListAlertsRequest

type ListAlertsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *DataobjectSearch `json:"body,omitempty"`
}

Request Object

func (ListAlertsRequest) String

func (o ListAlertsRequest) String() string

type ListAlertsResponse

type ListAlertsResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// 当前页大小
	Limit *int32 `json:"limit,omitempty"`

	// 当前页码
	Offset *int32 `json:"offset,omitempty"`

	// success
	Success *bool `json:"success,omitempty"`

	// 告警列表
	Data *[]ListAlertDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListAlertsResponse) String

func (o ListAlertsResponse) String() string

type ListDataobjectRelationRequest

type ListDataobjectRelationRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// type of dataclass
	DataclassType string `json:"dataclass_type"`

	// ID of dataobject
	DataObjectId string `json:"data_object_id"`

	// type of related dataclass
	RelatedDataclassType string `json:"related_dataclass_type"`

	Body *DataobjectSearch `json:"body,omitempty"`
}

Request Object

func (ListDataobjectRelationRequest) String

type ListDataobjectRelationResponse

type ListDataobjectRelationResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// current page count
	Limit *int32 `json:"limit,omitempty"`

	// current page size
	Offset *int32 `json:"offset,omitempty"`

	// list of informations of dataobject
	Data *[]DataobjectInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListDataobjectRelationResponse) String

type ListIncidentDetail

type ListIncidentDetail struct {
	DataObject *Incident `json:"data_object,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Id value
	DataclassId *string `json:"dataclass_id,omitempty"`

	// Id value
	LayoutId *string `json:"layout_id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	Dataclass *ShowAlertDetailDataclassRef `json:"dataclass,omitempty"`
}

func (ListIncidentDetail) String

func (o ListIncidentDetail) String() string

type ListIncidentTypesRequest

type ListIncidentTypesRequest struct {

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 子类类型标识码
	ParentBusinessCode *string `json:"parent_business_code,omitempty"`

	// request offset, from 0
	Offset *int32 `json:"offset,omitempty"`

	// request limit size
	Limit *int32 `json:"limit,omitempty"`

	// sort order, ASC, DESC.
	Order *string `json:"order,omitempty"`

	// sort by property, create_time.
	Sortby *string `json:"sortby,omitempty"`

	// name
	Name *string `json:"name,omitempty"`

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

	// 布局名称
	LayoutName *string `json:"layout_name,omitempty"`

	// 是否内置
	IsBuiltIn *bool `json:"is_built_in,omitempty"`
}

Request Object

func (ListIncidentTypesRequest) String

func (o ListIncidentTypesRequest) String() string

type ListIncidentTypesResponse

type ListIncidentTypesResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// Response of dataclass detail
	Data *[]DataClassTypeDetailInfo `json:"data,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// current page size
	Size *int32 `json:"size,omitempty"`

	// current page count
	Page *int32 `json:"page,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListIncidentTypesResponse) String

func (o ListIncidentTypesResponse) String() string

type ListIncidentsRequest

type ListIncidentsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	Body *DataobjectSearch `json:"body,omitempty"`
}

Request Object

func (ListIncidentsRequest) String

func (o ListIncidentsRequest) String() string

type ListIncidentsResponse

type ListIncidentsResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// 当前页大小
	Limit *int32 `json:"limit,omitempty"`

	// 当前页码
	Offset *int32 `json:"offset,omitempty"`

	// success
	Success *bool `json:"success,omitempty"`

	// 事件列表
	Data *[]ListIncidentDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListIncidentsResponse) String

func (o ListIncidentsResponse) String() string

type ListIndicatorsRequest

type ListIndicatorsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// workspace id
	WorkspaceId string `json:"workspace_id"`

	// sort order, ASC, DESC.
	Order *string `json:"order,omitempty"`

	// 起始时间
	FromDate *string `json:"from_date,omitempty"`

	// 结束时间
	ToDate *string `json:"to_date,omitempty"`

	Body *IndicatorListSearchRequest `json:"body,omitempty"`
}

Request Object

func (ListIndicatorsRequest) String

func (o ListIndicatorsRequest) String() string

type ListIndicatorsResponse

type ListIndicatorsResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// list of informations of indicator
	Data *[]IndicatorDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListIndicatorsResponse) String

func (o ListIndicatorsResponse) String() string

type ListPlaybookActionsRequest

type ListPlaybookActionsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// request limit size
	Limit *int32 `json:"limit,omitempty"`

	// request offset, from 0
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListPlaybookActionsRequest) String

type ListPlaybookActionsResponse

type ListPlaybookActionsResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// current page count
	Size *int32 `json:"size,omitempty"`

	// current page size
	Page *int32 `json:"page,omitempty"`

	// list of informations of playbook action
	Data *[]ActionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPlaybookActionsResponse) String

type ListPlaybookApprovesRequest

type ListPlaybookApprovesRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// Resource Id, PlaybookId or AopworkflowId
	ResourceId *string `json:"resource_id,omitempty"`

	// PLAYBOOK, AOP_WORKFLOW
	ApproveType *string `json:"approve_type,omitempty"`
}

Request Object

func (ListPlaybookApprovesRequest) String

type ListPlaybookApprovesResponse

type ListPlaybookApprovesResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *[]ApproveOpinionDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPlaybookApprovesResponse) String

type ListPlaybookAuditLogsRequest

type ListPlaybookAuditLogsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// offset
	Offset int64 `json:"offset"`

	// limit
	Limit int64 `json:"limit"`

	// sort_key
	SortKey *string `json:"sort_key,omitempty"`

	// sort_dir. asc, desc
	SortDir *ListPlaybookAuditLogsRequestSortDir `json:"sort_dir,omitempty"`

	Body *AuditLogInfo `json:"body,omitempty"`
}

Request Object

func (ListPlaybookAuditLogsRequest) String

type ListPlaybookAuditLogsRequestSortDir

type ListPlaybookAuditLogsRequestSortDir struct {
	// contains filtered or unexported fields
}

func (ListPlaybookAuditLogsRequestSortDir) MarshalJSON

func (c ListPlaybookAuditLogsRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListPlaybookAuditLogsRequestSortDir) UnmarshalJSON

func (c *ListPlaybookAuditLogsRequestSortDir) UnmarshalJSON(b []byte) error

func (ListPlaybookAuditLogsRequestSortDir) Value

type ListPlaybookAuditLogsRequestSortDirEnum

type ListPlaybookAuditLogsRequestSortDirEnum struct {
	ASC  ListPlaybookAuditLogsRequestSortDir
	DESC ListPlaybookAuditLogsRequestSortDir
}

func GetListPlaybookAuditLogsRequestSortDirEnum

func GetListPlaybookAuditLogsRequestSortDirEnum() ListPlaybookAuditLogsRequestSortDirEnum

type ListPlaybookAuditLogsResponse

type ListPlaybookAuditLogsResponse struct {

	// tatal count
	Count *int32 `json:"count,omitempty"`

	// list of informations of Audit Log Info
	AuditLogs *[]AuditLogInfo `json:"audit_logs,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPlaybookAuditLogsResponse) String

type ListPlaybookInstancesRequest

type ListPlaybookInstancesRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED
	Status *string `json:"status,omitempty"`

	// date type, START END
	DateType *string `json:"date_type,omitempty"`

	// name
	Name *string `json:"name,omitempty"`

	// Playbook name.
	PlaybookName *string `json:"playbook_name,omitempty"`

	// Dataclass name.
	DataclassName *string `json:"dataclass_name,omitempty"`

	// Dataobject name.
	DataobjectName *string `json:"dataobject_name,omitempty"`

	// trigger type. DEBUG, TIMER, EVENT, MANUAL
	TriggerType *string `json:"trigger_type,omitempty"`

	// 起始时间
	FromDate *string `json:"from_date,omitempty"`

	// 结束时间
	ToDate *string `json:"to_date,omitempty"`

	// request limit size
	Limit *int32 `json:"limit,omitempty"`

	// request offset, from 0
	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListPlaybookInstancesRequest) String

type ListPlaybookInstancesResponse

type ListPlaybookInstancesResponse struct {

	// tatal count
	Count *int32 `json:"count,omitempty"`

	// list of informations of PlaybookInstanceInfo
	Instances *[]PlaybookInstanceInfo `json:"instances,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPlaybookInstancesResponse) String

type ListPlaybookVersionsRequest

type ListPlaybookVersionsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// ID of playbook
	PlaybookId string `json:"playbook_id"`

	// 剧本版本状态,编辑中:EDITING  审核中:APPROVING  不通过:UNPASSED 已发布:PUBLISHED
	Status *string `json:"status,omitempty"`

	// 启用/禁用
	Enabled *int32 `json:"enabled,omitempty"`

	// 版本类型, 草稿版本:0  正式版本:1
	VersionType *int32 `json:"version_type,omitempty"`

	// 审核角色
	ApproveRole *string `json:"approve_role,omitempty"`

	// request offset, from 0
	Offset *int32 `json:"offset,omitempty"`

	// request limit size
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListPlaybookVersionsRequest) String

type ListPlaybookVersionsResponse

type ListPlaybookVersionsResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// current page count
	Size *int32 `json:"size,omitempty"`

	// current page size
	Page *int32 `json:"page,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// list of informations of playbook version
	Data *[]PlaybookVersionListEntity `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPlaybookVersionsResponse) String

type ListPlaybooksRequest

type ListPlaybooksRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// 搜索关键字
	SearchTxt *string `json:"search_txt,omitempty"`

	// component id.
	ComponentId *string `json:"component_id,omitempty"`

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

	// request offset, from 0
	Offset *int32 `json:"offset,omitempty"`

	// request limit size
	Limit *int32 `json:"limit,omitempty"`

	// 剧本描述
	Description *string `json:"description,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 剧本名称
	Name *string `json:"name,omitempty"`
}

Request Object

func (ListPlaybooksRequest) String

func (o ListPlaybooksRequest) String() string

type ListPlaybooksResponse

type ListPlaybooksResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	// tatal count
	Total *int32 `json:"total,omitempty"`

	// current page count
	Size *int32 `json:"size,omitempty"`

	// current page size
	Page *int32 `json:"page,omitempty"`

	// list of informations of playbook
	Data *[]PlaybookInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPlaybooksResponse) String

func (o ListPlaybooksResponse) String() string

type ModifyActionInfo

type ModifyActionInfo struct {

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// Type of this action, script or aopworkflow.
	ActionType *string `json:"action_type,omitempty"`

	// action id.
	ActionId *string `json:"action_id,omitempty"`

	// sort_order
	SortOrder *string `json:"sort_order,omitempty"`
}

Action info

func (ModifyActionInfo) String

func (o ModifyActionInfo) String() string

type ModifyPlaybookInfo

type ModifyPlaybookInfo struct {

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`

	// 启用的剧本版本ID
	ActiveVersionId *string `json:"active_version_id,omitempty"`
}

Information of playbook

func (ModifyPlaybookInfo) String

func (o ModifyPlaybookInfo) String() string

type ModifyPlaybookVersionInfo

type ModifyPlaybookVersionInfo struct {

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 工作空间id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Playbook id.
	PlaybookId *string `json:"playbook_id,omitempty"`

	// dataclass id.
	DataclassId *string `json:"dataclass_id,omitempty"`

	// If the condition filter is enabled.
	RuleEnable *bool `json:"rule_enable,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`

	// 状态
	Status *string `json:"status,omitempty"`

	// 规则ID
	RuleId *string `json:"rule_id,omitempty"`

	// Strategy of action. event, timer
	TriggerType *string `json:"trigger_type,omitempty"`

	// if trigger when dataobject is created
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// if trigger when dataobject is updated
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// if trigger when dataobject is deleted
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// Strategy of action. sync or async
	ActionStrategy *string `json:"action_strategy,omitempty"`
}

Information of playbook version

func (ModifyPlaybookVersionInfo) String

func (o ModifyPlaybookVersionInfo) String() string

type ModifyRuleInfo

type ModifyRuleInfo struct {
	Rule *ConditionInfo `json:"rule,omitempty"`
}

Information of rule

func (ModifyRuleInfo) String

func (o ModifyRuleInfo) String() string

type OperationPlaybookInfo

type OperationPlaybookInfo struct {

	// 重试: RETRY  终止: TERMINATE
	Operation *string `json:"operation,omitempty"`
}

operation of playbook

func (OperationPlaybookInfo) String

func (o OperationPlaybookInfo) String() string

type OrderAlert

type OrderAlert struct {

	// 转事件的ID列表
	Ids *[]string `json:"ids,omitempty"`

	// 事件id
	IncidentId *string `json:"incident_id,omitempty"`

	EventContent *OrderAlertEventContent `json:"event_content,omitempty"`

	IncidentContent *OrderAlertIncidentContent `json:"incident_content,omitempty"`

	// 标记为证据
	MarkedEvidence *bool `json:"marked_evidence,omitempty"`
}

转事件

func (OrderAlert) String

func (o OrderAlert) String() string

type OrderAlertEventContent

type OrderAlertEventContent struct {

	// 状态
	HandleStatus *string `json:"handle_status,omitempty"`
}

事件内容

func (OrderAlertEventContent) String

func (o OrderAlertEventContent) String() string

type OrderAlertIncidentContent

type OrderAlertIncidentContent struct {

	// 事件名称
	Title *string `json:"title,omitempty"`

	// 事件类型
	TypeCategory *string `json:"type_category,omitempty"`

	// 证据列表
	EvidenceList *[]string `json:"evidence_list,omitempty"`

	// 评论列表
	NoteList *[]string `json:"note_list,omitempty"`

	// 附件列表
	AttachmentList *[]string `json:"attachment_list,omitempty"`

	IncidentType *OrderAlertIncidentContentIncidentType `json:"incident_type,omitempty"`

	// Id value
	Description *string `json:"description,omitempty"`
}

事件内容

func (OrderAlertIncidentContent) String

func (o OrderAlertIncidentContent) String() string

type OrderAlertIncidentContentIncidentType

type OrderAlertIncidentContentIncidentType struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// Id value
	LayoutId *string `json:"layoutId,omitempty"`

	// Id value
	IncidentType *string `json:"incident_type,omitempty"`

	// Id value
	Category *string `json:"category,omitempty"`
}

事件类型

func (OrderAlertIncidentContentIncidentType) String

type PlaybookInfo

type PlaybookInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// version Id value
	VersionId *string `json:"version_id,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`

	// 工作空间id
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Role required for approve
	ApproveRole *string `json:"approve_role,omitempty"`

	// 用户角色
	UserRole *string `json:"user_role,omitempty"`

	// Role required for edit
	EditRole *string `json:"edit_role,omitempty"`

	// Owner id
	OwnerId *string `json:"owner_id,omitempty"`

	// version
	Version *string `json:"version,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 数据类ID
	DataclassId *string `json:"dataclass_id,omitempty"`

	// 待审核剧本版本ID
	UnauditedVersionId *string `json:"unaudited_version_id,omitempty"`

	// 已驳回剧本版本ID
	RejectVersionId *string `json:"reject_version_id,omitempty"`
}

Information of playbook

func (PlaybookInfo) String

func (o PlaybookInfo) String() string

type PlaybookInfoRef

type PlaybookInfoRef struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// Id value
	VersionId *string `json:"version_id,omitempty"`

	// Id value
	Name *string `json:"name,omitempty"`

	// version
	Version *string `json:"version,omitempty"`
}

Response of Playbook Info Ref

func (PlaybookInfoRef) String

func (o PlaybookInfoRef) String() string

type PlaybookInstanceInfo

type PlaybookInstanceInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	Playbook *PlaybookInfoRef `json:"playbook,omitempty"`

	Dataclass *DataclassInfoRef `json:"dataclass,omitempty"`

	Dataobject *DataclassInfoRef `json:"dataobject,omitempty"`

	// Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED
	Status *string `json:"status,omitempty"`

	// trigger type. DEBUG, TIMER, EVENT, MANUAL
	TriggerType *string `json:"trigger_type,omitempty"`

	// Create time
	StartTime *string `json:"start_time,omitempty"`

	// Update time
	EndTime *string `json:"end_time,omitempty"`
}

Response of listing playbook instance informations

func (PlaybookInstanceInfo) String

func (o PlaybookInstanceInfo) String() string

type PlaybookInstanceMonitorDetail

type PlaybookInstanceMonitorDetail struct {

	// 运行总次数
	TotalInstanceRunNum *int32 `json:"total_instance_run_num,omitempty"`

	// 定时触发执行次数
	ScheduleInstanceRunNum *int32 `json:"schedule_instance_run_num,omitempty"`

	// 时间触发执行次数
	EventInstanceRunNum *int32 `json:"event_instance_run_num,omitempty"`

	// 平均运行时间
	AverageRunTime float32 `json:"average_run_time,omitempty"`

	MinRunTimeInstance *PlaybookInstanceRunStatistics `json:"min_run_time_instance,omitempty"`

	MaxRunTimeInstance *PlaybookInstanceRunStatistics `json:"max_run_time_instance,omitempty"`

	// 剧本实例总数
	TotalInstanceNum *int32 `json:"total_instance_num,omitempty"`

	// 运行成功实例数量
	SuccessInstanceNum *int32 `json:"success_instance_num,omitempty"`

	// 运行失败实例数量
	FailInstanceNum *int32 `json:"fail_instance_num,omitempty"`

	// 运行终止实例数量
	TerminateInstanceNum *int32 `json:"terminate_instance_num,omitempty"`

	// 运行中实例数量
	RunningInstanceNum *int32 `json:"running_instance_num,omitempty"`
}

剧本运行监控详情

func (PlaybookInstanceMonitorDetail) String

type PlaybookInstanceRunStatistics

type PlaybookInstanceRunStatistics struct {

	// 剧本实例ID
	PlaybookInstanceId *string `json:"playbook_instance_id,omitempty"`

	// 剧本实例名称
	PlaybookInstanceName *string `json:"playbook_instance_name,omitempty"`

	// 剧本实例运行时间
	PlaybookInstanceRunTime float32 `json:"playbook_instance_run_time,omitempty"`
}

剧本实例运行数据

func (PlaybookInstanceRunStatistics) String

type PlaybookStatisticDetail

type PlaybookStatisticDetail struct {

	// 未审核剧本数量
	UnapprovedNum *int32 `json:"unapproved_num,omitempty"`

	// 未启用剧本数量
	DisabledNum *int32 `json:"disabled_num,omitempty"`

	// 已启用剧本数量
	EnabledNum *int32 `json:"enabled_num,omitempty"`
}

statistics of playbook

func (PlaybookStatisticDetail) String

func (o PlaybookStatisticDetail) String() string

type PlaybookVersionInfo

type PlaybookVersionInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// Creator id value
	CreatorId *string `json:"creator_id,omitempty"`

	// Modifier id value
	ModifierId *string `json:"modifier_id,omitempty"`

	// Playbook id.
	PlaybookId *string `json:"playbook_id,omitempty"`

	// version
	Version *string `json:"version,omitempty"`

	// Run mode of this playbook. automatic, manual
	RunMode *string `json:"run_mode,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`

	// Status of approvement. editing, approving, unpassed, published
	Status *string `json:"status,omitempty"`

	// Strategy of action. sync or async
	ActionStrategy *string `json:"action_strategy,omitempty"`

	// Information of actions.
	Actions *[]ActionInfo `json:"actions,omitempty"`

	// If the condition filter is enabled.
	RuleEnable *bool `json:"rule_enable,omitempty"`

	Rules *RuleInfo `json:"rules,omitempty"`

	// bind dataclass id
	DataclassId *string `json:"dataclass_id,omitempty"`

	// Strategy of action. event, timer
	TriggerType *string `json:"trigger_type,omitempty"`

	// if trigger when dataobject is created
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// if trigger when dataobject is updated
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// if trigger when dataobject is deleted
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// 版本类型
	VersionType *int32 `json:"version_type,omitempty"`

	// 过滤规则ID
	RuleId *string `json:"rule_id,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 审核者
	ApproveName *string `json:"approve_name,omitempty"`

	// dataobject id
	DataobjectId *string `json:"dataobject_id,omitempty"`
}

Information of playbook version

func (PlaybookVersionInfo) String

func (o PlaybookVersionInfo) String() string

type PlaybookVersionListEntity

type PlaybookVersionListEntity struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// Creator id value
	CreatorId *string `json:"creator_id,omitempty"`

	// Modifier id value
	ModifierId *string `json:"modifier_id,omitempty"`

	// Playbook id.
	PlaybookId *string `json:"playbook_id,omitempty"`

	// version
	Version *string `json:"version,omitempty"`

	// Run mode of this playbook. automatic, manual
	RunMode *string `json:"run_mode,omitempty"`

	// If is enabled, false for disenabled, true for enabled
	Enabled *bool `json:"enabled,omitempty"`

	// Status of approvement. editing, approving, unpassed, published
	Status *string `json:"status,omitempty"`

	// Strategy of action. sync or async
	ActionStrategy *string `json:"action_strategy,omitempty"`

	// If the condition filter is enabled.
	RuleEnable *bool `json:"rule_enable,omitempty"`

	// bind dataclass id
	DataclassId *string `json:"dataclass_id,omitempty"`

	// Strategy of action. event, timer
	TriggerType *string `json:"trigger_type,omitempty"`

	// if trigger when dataobject is created
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// if trigger when dataobject is updated
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// if trigger when dataobject is deleted
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// 版本类型
	VersionType *int32 `json:"version_type,omitempty"`

	// 过滤规则ID
	RuleId *string `json:"rule_id,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 审核者
	ApproveName *string `json:"approve_name,omitempty"`

	// dataobject id
	DataobjectId *string `json:"dataobject_id,omitempty"`
}

Information of playbook version

func (PlaybookVersionListEntity) String

func (o PlaybookVersionListEntity) String() string

type RuleInfo

type RuleInfo struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	// Project id value
	Rule *string `json:"rule,omitempty"`
}

Information of rule

func (RuleInfo) String

func (o RuleInfo) String() string

type Schedule

type Schedule struct {

	// frequency_interval
	FrequencyInterval int32 `json:"frequency_interval"`

	// frequency_unit. MINUTE, HOUR, DAY.
	FrequencyUnit ScheduleFrequencyUnit `json:"frequency_unit"`

	// frequency_interval
	PeriodInterval int32 `json:"period_interval"`

	// period_unit. MINUTE, HOUR, DAY.
	PeriodUnit SchedulePeriodUnit `json:"period_unit"`

	// delay_interval
	DelayInterval *int32 `json:"delay_interval,omitempty"`

	// overtime_interval
	OvertimeInterval *int32 `json:"overtime_interval,omitempty"`
}

func (Schedule) String

func (o Schedule) String() string

type ScheduleFrequencyUnit

type ScheduleFrequencyUnit struct {
	// contains filtered or unexported fields
}

func (ScheduleFrequencyUnit) MarshalJSON

func (c ScheduleFrequencyUnit) MarshalJSON() ([]byte, error)

func (*ScheduleFrequencyUnit) UnmarshalJSON

func (c *ScheduleFrequencyUnit) UnmarshalJSON(b []byte) error

func (ScheduleFrequencyUnit) Value

func (c ScheduleFrequencyUnit) Value() string

type ScheduleFrequencyUnitEnum

type ScheduleFrequencyUnitEnum struct {
	MINUTE ScheduleFrequencyUnit
	HOUR   ScheduleFrequencyUnit
	DAY    ScheduleFrequencyUnit
}

func GetScheduleFrequencyUnitEnum

func GetScheduleFrequencyUnitEnum() ScheduleFrequencyUnitEnum

type SchedulePeriodUnit

type SchedulePeriodUnit struct {
	// contains filtered or unexported fields
}

func (SchedulePeriodUnit) MarshalJSON

func (c SchedulePeriodUnit) MarshalJSON() ([]byte, error)

func (*SchedulePeriodUnit) UnmarshalJSON

func (c *SchedulePeriodUnit) UnmarshalJSON(b []byte) error

func (SchedulePeriodUnit) Value

func (c SchedulePeriodUnit) Value() string

type SchedulePeriodUnitEnum

type SchedulePeriodUnitEnum struct {
	MINUTE SchedulePeriodUnit
	HOUR   SchedulePeriodUnit
	DAY    SchedulePeriodUnit
}

func GetSchedulePeriodUnitEnum

func GetSchedulePeriodUnitEnum() SchedulePeriodUnitEnum

type ShowAlertDetail

type ShowAlertDetail struct {
	DataObject *ShowAlertRsp `json:"data_object,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// The name, display only
	Id *string `json:"id,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	// The name, display only
	Version *int32 `json:"version,omitempty"`

	// The name, display only
	FormatVersion *int32 `json:"format_version,omitempty"`

	DataclassRef *ShowAlertDetailDataclassRef `json:"dataclass_ref,omitempty"`
}

func (ShowAlertDetail) String

func (o ShowAlertDetail) String() string

type ShowAlertDetailDataclassRef

type ShowAlertDetailDataclassRef struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`
}

dataclass对象

func (ShowAlertDetailDataclassRef) String

type ShowAlertRequest

type ShowAlertRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// 告警ID
	AlertId string `json:"alert_id"`
}

Request Object

func (ShowAlertRequest) String

func (o ShowAlertRequest) String() string

type ShowAlertResponse

type ShowAlertResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *ShowAlertDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowAlertResponse) String

func (o ShowAlertResponse) String() string

type ShowAlertRsp

type ShowAlertRsp struct {

	// 版本
	Version *string `json:"version,omitempty"`

	Environment *ShowAlertRspEnvironment `json:"environment,omitempty"`

	Datasource *ShowAlertRspDatasource `json:"datasource,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *string `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Serverity *string `json:"serverity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	// 事件分类
	AlertType *interface{} `json:"alert_type,omitempty"`

	// network_list
	NetworkList *[]ShowAlertRspNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]ShowAlertRspResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *bool `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *ShowAlertRspMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]ShowAlertRspProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]ShowAlertRspUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemAlertTable *interface{} `json:"system_alert_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

告警详情

func (ShowAlertRsp) String

func (o ShowAlertRsp) String() string

type ShowAlertRspDatasource

type ShowAlertRspDatasource struct {

	// current page count
	SourceType *int32 `json:"source_type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`
}

数据源信息

func (ShowAlertRspDatasource) String

func (o ShowAlertRspDatasource) String() string

type ShowAlertRspEnvironment

type ShowAlertRspEnvironment struct {

	// The name, display only
	VendorType *string `json:"vendor_type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`
}

环境信息

func (ShowAlertRspEnvironment) String

func (o ShowAlertRspEnvironment) String() string

type ShowAlertRspFileInfo

type ShowAlertRspFileInfo struct {

	// The name, display only
	FilePath *string `json:"file_path,omitempty"`

	// The name, display only
	FileContent *string `json:"file_content,omitempty"`

	// The name, display only
	FileNewPath *string `json:"file_new_path,omitempty"`

	// The name, display only
	FileHash *string `json:"file_hash,omitempty"`

	// The name, display only
	FileMd5 *string `json:"file_md5,omitempty"`

	// The name, display only
	FileSha256 *string `json:"file_sha256,omitempty"`

	// The name, display only
	FileAttr *string `json:"file_attr,omitempty"`
}

func (ShowAlertRspFileInfo) String

func (o ShowAlertRspFileInfo) String() string

type ShowAlertRspMalware

type ShowAlertRspMalware struct {

	// 恶意家族
	MalwareFamily *string `json:"malware_family,omitempty"`

	// 恶意软件分类
	MalwareClass *string `json:"malware_class,omitempty"`
}

恶意软件

func (ShowAlertRspMalware) String

func (o ShowAlertRspMalware) String() string

type ShowAlertRspNetworkList

type ShowAlertRspNetworkList struct {

	// 方向,取值范围:IN | OUT
	Direction *interface{} `json:"direction,omitempty"`

	// 协议,参考:IANA registered name
	Protocol *string `json:"protocol,omitempty"`

	// 源IP地址
	SrcIp *string `json:"src_ip,omitempty"`

	// 源端口,0–65535
	SrcPort *string `json:"src_port,omitempty"`

	// 源域名,最大128个字符
	SrcDomain *string `json:"src_domain,omitempty"`

	// 目的IP地址
	DestIp *string `json:"dest_ip,omitempty"`

	// 目的端口,0–65535
	DestPort *string `json:"dest_port,omitempty"`

	// 目的域名,最大128个字符
	DestDomain *string `json:"dest_domain,omitempty"`

	// 源IP的地理位置信息
	SrcGeo *interface{} `json:"src_geo,omitempty"`

	// 目的IP的地理位置信息
	DestGeo *interface{} `json:"dest_geo,omitempty"`
}

func (ShowAlertRspNetworkList) String

func (o ShowAlertRspNetworkList) String() string

type ShowAlertRspProcess

type ShowAlertRspProcess struct {

	// The name, display only
	ProcessName *string `json:"process_name,omitempty"`

	// The name, display only
	ProcessPath *string `json:"process_path,omitempty"`

	// Id value
	ProcessPid *string `json:"process_pid,omitempty"`

	// Id value
	ProcessUid *string `json:"process_uid,omitempty"`

	// The name, display only
	ProcessCmdline *string `json:"process_cmdline,omitempty"`
}

func (ShowAlertRspProcess) String

func (o ShowAlertRspProcess) String() string

type ShowAlertRspRemediation

type ShowAlertRspRemediation struct {

	// The name, display only
	Recommendation *string `json:"recommendation,omitempty"`

	// The name, display only
	Url *string `json:"url,omitempty"`
}

补救措施

func (ShowAlertRspRemediation) String

func (o ShowAlertRspRemediation) String() string

type ShowAlertRspResourceList

type ShowAlertRspResourceList struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	// Id value
	DomainId *string `json:"domain_id,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	RegionId *string `json:"region_id,omitempty"`

	// Id value
	EpId *string `json:"ep_id,omitempty"`

	// The name, display only
	EpName *string `json:"ep_name,omitempty"`

	// Id value
	Tags *string `json:"tags,omitempty"`
}

func (ShowAlertRspResourceList) String

func (o ShowAlertRspResourceList) String() string

type ShowAlertRspUserInfo

type ShowAlertRspUserInfo struct {

	// Id value
	UserId *string `json:"user_id,omitempty"`

	// The name, display only
	UserName *string `json:"user_name,omitempty"`
}

func (ShowAlertRspUserInfo) String

func (o ShowAlertRspUserInfo) String() string

type ShowAlertRuleRequest

type ShowAlertRuleRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	// rule_id
	RuleId string `json:"rule_id"`
}

Request Object

func (ShowAlertRuleRequest) String

func (o ShowAlertRuleRequest) String() string

type ShowAlertRuleResponse

type ShowAlertRuleResponse struct {

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// pipe_id
	PipeId *string `json:"pipe_id,omitempty"`

	// pipe_name
	PipeName *string `json:"pipe_name,omitempty"`

	// create_by
	CreateBy *string `json:"create_by,omitempty"`

	// create_time
	CreateTime *int64 `json:"create_time,omitempty"`

	// update_by
	UpdateBy *string `json:"update_by,omitempty"`

	// update_time
	UpdateTime *int64 `json:"update_time,omitempty"`

	// delete_time
	DeleteTime *int64 `json:"delete_time,omitempty"`

	// rule_name
	RuleName *string `json:"rule_name,omitempty"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *ShowAlertRuleResponseQueryType `json:"query_type,omitempty"`

	// status. ENABLED, DISABLED
	Status *ShowAlertRuleResponseStatus `json:"status,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *ShowAlertRuleResponseSeverity `json:"severity,omitempty"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowAlertRuleResponse) String

func (o ShowAlertRuleResponse) String() string

type ShowAlertRuleResponseQueryType

type ShowAlertRuleResponseQueryType struct {
	// contains filtered or unexported fields
}

func (ShowAlertRuleResponseQueryType) MarshalJSON

func (c ShowAlertRuleResponseQueryType) MarshalJSON() ([]byte, error)

func (*ShowAlertRuleResponseQueryType) UnmarshalJSON

func (c *ShowAlertRuleResponseQueryType) UnmarshalJSON(b []byte) error

func (ShowAlertRuleResponseQueryType) Value

type ShowAlertRuleResponseQueryTypeEnum

type ShowAlertRuleResponseQueryTypeEnum struct {
	SQL  ShowAlertRuleResponseQueryType
	CBSL ShowAlertRuleResponseQueryType
}

func GetShowAlertRuleResponseQueryTypeEnum

func GetShowAlertRuleResponseQueryTypeEnum() ShowAlertRuleResponseQueryTypeEnum

type ShowAlertRuleResponseSeverity

type ShowAlertRuleResponseSeverity struct {
	// contains filtered or unexported fields
}

func (ShowAlertRuleResponseSeverity) MarshalJSON

func (c ShowAlertRuleResponseSeverity) MarshalJSON() ([]byte, error)

func (*ShowAlertRuleResponseSeverity) UnmarshalJSON

func (c *ShowAlertRuleResponseSeverity) UnmarshalJSON(b []byte) error

func (ShowAlertRuleResponseSeverity) Value

type ShowAlertRuleResponseStatus

type ShowAlertRuleResponseStatus struct {
	// contains filtered or unexported fields
}

func (ShowAlertRuleResponseStatus) MarshalJSON

func (c ShowAlertRuleResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowAlertRuleResponseStatus) UnmarshalJSON

func (c *ShowAlertRuleResponseStatus) UnmarshalJSON(b []byte) error

func (ShowAlertRuleResponseStatus) Value

type ShowAlertRuleResponseStatusEnum

type ShowAlertRuleResponseStatusEnum struct {
	ENABLED  ShowAlertRuleResponseStatus
	DISABLED ShowAlertRuleResponseStatus
}

func GetShowAlertRuleResponseStatusEnum

func GetShowAlertRuleResponseStatusEnum() ShowAlertRuleResponseStatusEnum

type ShowAlertRuleTemplateRequest

type ShowAlertRuleTemplateRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	// template_id
	TemplateId string `json:"template_id"`
}

Request Object

func (ShowAlertRuleTemplateRequest) String

type ShowAlertRuleTemplateResponse

type ShowAlertRuleTemplateResponse struct {

	// template_id
	TemplateId *string `json:"template_id,omitempty"`

	// update_time
	UpdateTime *int64 `json:"update_time,omitempty"`

	// template_name
	TemplateName *string `json:"template_name,omitempty"`

	// data_source
	DataSource *string `json:"data_source,omitempty"`

	// version
	Version *string `json:"version,omitempty"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *ShowAlertRuleTemplateResponseQueryType `json:"query_type,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *ShowAlertRuleTemplateResponseSeverity `json:"severity,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowAlertRuleTemplateResponse) String

type ShowAlertRuleTemplateResponseQueryType

type ShowAlertRuleTemplateResponseQueryType struct {
	// contains filtered or unexported fields
}

func (ShowAlertRuleTemplateResponseQueryType) MarshalJSON

func (c ShowAlertRuleTemplateResponseQueryType) MarshalJSON() ([]byte, error)

func (*ShowAlertRuleTemplateResponseQueryType) UnmarshalJSON

func (c *ShowAlertRuleTemplateResponseQueryType) UnmarshalJSON(b []byte) error

func (ShowAlertRuleTemplateResponseQueryType) Value

type ShowAlertRuleTemplateResponseSeverity

type ShowAlertRuleTemplateResponseSeverity struct {
	// contains filtered or unexported fields
}

func (ShowAlertRuleTemplateResponseSeverity) MarshalJSON

func (c ShowAlertRuleTemplateResponseSeverity) MarshalJSON() ([]byte, error)

func (*ShowAlertRuleTemplateResponseSeverity) UnmarshalJSON

func (c *ShowAlertRuleTemplateResponseSeverity) UnmarshalJSON(b []byte) error

func (ShowAlertRuleTemplateResponseSeverity) Value

type ShowIncident

type ShowIncident struct {

	// 版本
	Version *string `json:"version,omitempty"`

	Environment *IncidentEnvironment `json:"environment,omitempty"`

	Datasource *IncidentDatasource `json:"datasource,omitempty"`

	// Update time
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// Update time
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	ArriveTime *string `json:"arrive_time,omitempty"`

	// The name, display only
	Title *string `json:"title,omitempty"`

	// The description, display only
	Description *string `json:"description,omitempty"`

	// 事件URL链接
	SourceUrl *string `json:"source_url,omitempty"`

	// 事件发生次数
	Count *string `json:"count,omitempty"`

	// 置信度
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级
	Serverity *string `json:"serverity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。
	Criticality *int32 `json:"criticality,omitempty"`

	// 事件分类
	IncidentType *interface{} `json:"incident_type,omitempty"`

	// network_list
	NetworkList *[]CreateIncidentNetworkList `json:"network_list,omitempty"`

	// network_list
	ResourceList *[]CreateIncidentResourceList `json:"resource_list,omitempty"`

	Remediation *ShowAlertRspRemediation `json:"remediation,omitempty"`

	// 验证状态
	VerificationState *string `json:"verification_state,omitempty"`

	// 事件处理状态
	HandleStatus *string `json:"handle_status,omitempty"`

	// sla
	Sla *int32 `json:"sla,omitempty"`

	// Create time
	UpdateTime *string `json:"update_time,omitempty"`

	// Create time
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号
	ChopPhase *string `json:"chop_phase,omitempty"`

	// 周期/处置阶段编号
	IpdrrPhase *string `json:"ipdrr_phase,omitempty"`

	// 周期/处置阶段编号
	PpdrPhase *string `json:"ppdr_phase,omitempty"`

	// 是否为调试事件.
	Simulation *string `json:"simulation,omitempty"`

	// 委托人
	Actor *string `json:"actor,omitempty"`

	// The name, display only
	Owner *string `json:"owner,omitempty"`

	// The name, display only
	Cteator *string `json:"cteator,omitempty"`

	// 关闭原因
	CloseReason *string `json:"close_reason,omitempty"`

	// 关闭原因
	CloseComment *string `json:"close_comment,omitempty"`

	Malware *CreateIncidentMalware `json:"malware,omitempty"`

	// 系统信息
	SystemInfo *interface{} `json:"system_info,omitempty"`

	// 进程信息
	Process *[]CreateIncidentProcess `json:"process,omitempty"`

	// 用户信息
	UserInfo *[]CreateIncidentUserInfo `json:"user_info,omitempty"`

	// 文件信息
	FileInfo *[]ShowAlertRspFileInfo `json:"file_info,omitempty"`

	// 系统信息
	SystemIncidentTable *interface{} `json:"system_incident_table,omitempty"`

	// Id value
	Id *string `json:"id,omitempty"`

	// workspace id
	WorkspaceId *string `json:"workspace_id,omitempty"`
}

事件详情

func (ShowIncident) String

func (o ShowIncident) String() string

type ShowIncidentDetail

type ShowIncidentDetail struct {
	DataObject *ShowIncident `json:"data_object,omitempty"`

	// Create time
	CreateTime *string `json:"create_time,omitempty"`

	// Update time
	UpdateTime *string `json:"update_time,omitempty"`

	// Id value
	ProjectId *string `json:"project_id,omitempty"`

	// Id value
	WorkspaceId *string `json:"workspace_id,omitempty"`

	// Id value
	DataclassId *string `json:"dataclass_id,omitempty"`

	// Id value
	LayoutId *string `json:"layout_id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// The name, display only
	Type *string `json:"type,omitempty"`

	Dataclass *ShowAlertDetailDataclassRef `json:"dataclass,omitempty"`
}

func (ShowIncidentDetail) String

func (o ShowIncidentDetail) String() string

type ShowIncidentRequest

type ShowIncidentRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// 事件ID
	IncidentId string `json:"incident_id"`
}

Request Object

func (ShowIncidentRequest) String

func (o ShowIncidentRequest) String() string

type ShowIncidentResponse

type ShowIncidentResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data           *ShowIncidentDetail `json:"data,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowIncidentResponse) String

func (o ShowIncidentResponse) String() string

type ShowIndicatorDetailRequest

type ShowIndicatorDetailRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// workspace id
	WorkspaceId string `json:"workspace_id"`

	// ID of indicator
	IndicatorId string `json:"indicator_id"`
}

Request Object

func (ShowIndicatorDetailRequest) String

type ShowIndicatorDetailResponse

type ShowIndicatorDetailResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *IndicatorDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowIndicatorDetailResponse) String

type ShowPlaybookInstanceRequest

type ShowPlaybookInstanceRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// instance _id
	InstanceId string `json:"instance_id"`
}

Request Object

func (ShowPlaybookInstanceRequest) String

type ShowPlaybookInstanceResponse

type ShowPlaybookInstanceResponse struct {

	// Id value
	Id *string `json:"id,omitempty"`

	// The name, display only
	Name *string `json:"name,omitempty"`

	// Project id value
	ProjectId *string `json:"project_id,omitempty"`

	Playbook *PlaybookInfoRef `json:"playbook,omitempty"`

	Dataclass *DataclassInfoRef `json:"dataclass,omitempty"`

	Dataobject *DataclassInfoRef `json:"dataobject,omitempty"`

	// Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED
	Status *string `json:"status,omitempty"`

	// trigger type. DEBUG, TIMER, EVENT, MANUAL
	TriggerType *string `json:"trigger_type,omitempty"`

	// Create time
	StartTime *string `json:"start_time,omitempty"`

	// Update time
	EndTime *string `json:"end_time,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookInstanceResponse) String

type ShowPlaybookMonitorsRequest

type ShowPlaybookMonitorsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// ID of playbook
	PlaybookId string `json:"playbook_id"`

	// 开始时间
	StartTime string `json:"start_time"`

	// 统计剧本版本类型(ALL:全部,VALID:有效的,DELETED:已删除)
	VersionQueryType string `json:"version_query_type"`

	// 结束时间
	EndTime string `json:"end_time"`
}

Request Object

func (ShowPlaybookMonitorsRequest) String

type ShowPlaybookMonitorsResponse

type ShowPlaybookMonitorsResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookInstanceMonitorDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookMonitorsResponse) String

type ShowPlaybookRequest

type ShowPlaybookRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// ID of playbook
	PlaybookId string `json:"playbook_id"`
}

Request Object

func (ShowPlaybookRequest) String

func (o ShowPlaybookRequest) String() string

type ShowPlaybookResponse

type ShowPlaybookResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookResponse) String

func (o ShowPlaybookResponse) String() string

type ShowPlaybookRuleRequest

type ShowPlaybookRuleRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// version Id value
	RuleId string `json:"rule_id"`
}

Request Object

func (ShowPlaybookRuleRequest) String

func (o ShowPlaybookRuleRequest) String() string

type ShowPlaybookRuleResponse

type ShowPlaybookRuleResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *RuleInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookRuleResponse) String

func (o ShowPlaybookRuleResponse) String() string

type ShowPlaybookStatisticsRequest

type ShowPlaybookStatisticsRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`
}

Request Object

func (ShowPlaybookStatisticsRequest) String

type ShowPlaybookStatisticsResponse

type ShowPlaybookStatisticsResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookStatisticDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookStatisticsResponse) String

type ShowPlaybookTopologyRequest

type ShowPlaybookTopologyRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// instance _id
	InstanceId string `json:"instance_id"`
}

Request Object

func (ShowPlaybookTopologyRequest) String

type ShowPlaybookTopologyResponse

type ShowPlaybookTopologyResponse struct {

	// tatal count
	Count *int32 `json:"count,omitempty"`

	// Playbook action instances list
	ActionInstances *[]ActionInstanceInfo `json:"action_instances,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookTopologyResponse) String

type ShowPlaybookVersionRequest

type ShowPlaybookVersionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`
}

Request Object

func (ShowPlaybookVersionRequest) String

type ShowPlaybookVersionResponse

type ShowPlaybookVersionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookVersionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPlaybookVersionResponse) String

type UpdateAlertRuleRequest

type UpdateAlertRuleRequest struct {

	// workspace_id
	WorkspaceId string `json:"workspace_id"`

	// rule_id
	RuleId string `json:"rule_id"`

	Body *UpdateAlertRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateAlertRuleRequest) String

func (o UpdateAlertRuleRequest) String() string

type UpdateAlertRuleRequestBody

type UpdateAlertRuleRequestBody struct {

	// rule_name
	RuleName *string `json:"rule_name,omitempty"`

	// description
	Description *string `json:"description,omitempty"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *UpdateAlertRuleRequestBodyQueryType `json:"query_type,omitempty"`

	// status. ENABLED, DISABLED
	Status *UpdateAlertRuleRequestBodyStatus `json:"status,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *UpdateAlertRuleRequestBodySeverity `json:"severity,omitempty"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// alert_type
	AlertType map[string]string `json:"alert_type,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	// suppression
	Suppression *bool `json:"suppression,omitempty"`

	// simulation
	Simulation *bool `json:"simulation,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`
}

func (UpdateAlertRuleRequestBody) String

type UpdateAlertRuleRequestBodyQueryType

type UpdateAlertRuleRequestBodyQueryType struct {
	// contains filtered or unexported fields
}

func (UpdateAlertRuleRequestBodyQueryType) MarshalJSON

func (c UpdateAlertRuleRequestBodyQueryType) MarshalJSON() ([]byte, error)

func (*UpdateAlertRuleRequestBodyQueryType) UnmarshalJSON

func (c *UpdateAlertRuleRequestBodyQueryType) UnmarshalJSON(b []byte) error

func (UpdateAlertRuleRequestBodyQueryType) Value

type UpdateAlertRuleRequestBodyQueryTypeEnum

type UpdateAlertRuleRequestBodyQueryTypeEnum struct {
	SQL  UpdateAlertRuleRequestBodyQueryType
	CBSL UpdateAlertRuleRequestBodyQueryType
}

func GetUpdateAlertRuleRequestBodyQueryTypeEnum

func GetUpdateAlertRuleRequestBodyQueryTypeEnum() UpdateAlertRuleRequestBodyQueryTypeEnum

type UpdateAlertRuleRequestBodySeverity

type UpdateAlertRuleRequestBodySeverity struct {
	// contains filtered or unexported fields
}

func (UpdateAlertRuleRequestBodySeverity) MarshalJSON

func (c UpdateAlertRuleRequestBodySeverity) MarshalJSON() ([]byte, error)

func (*UpdateAlertRuleRequestBodySeverity) UnmarshalJSON

func (c *UpdateAlertRuleRequestBodySeverity) UnmarshalJSON(b []byte) error

func (UpdateAlertRuleRequestBodySeverity) Value

type UpdateAlertRuleRequestBodyStatus

type UpdateAlertRuleRequestBodyStatus struct {
	// contains filtered or unexported fields
}

func (UpdateAlertRuleRequestBodyStatus) MarshalJSON

func (c UpdateAlertRuleRequestBodyStatus) MarshalJSON() ([]byte, error)

func (*UpdateAlertRuleRequestBodyStatus) UnmarshalJSON

func (c *UpdateAlertRuleRequestBodyStatus) UnmarshalJSON(b []byte) error

func (UpdateAlertRuleRequestBodyStatus) Value

type UpdateAlertRuleRequestBodyStatusEnum

type UpdateAlertRuleRequestBodyStatusEnum struct {
	ENABLED  UpdateAlertRuleRequestBodyStatus
	DISABLED UpdateAlertRuleRequestBodyStatus
}

func GetUpdateAlertRuleRequestBodyStatusEnum

func GetUpdateAlertRuleRequestBodyStatusEnum() UpdateAlertRuleRequestBodyStatusEnum

type UpdateAlertRuleResponse

type UpdateAlertRuleResponse struct {

	// rule_id
	RuleId *string `json:"rule_id,omitempty"`

	// pipe_id
	PipeId *string `json:"pipe_id,omitempty"`

	// pipe_name
	PipeName *string `json:"pipe_name,omitempty"`

	// create_by
	CreateBy *string `json:"create_by,omitempty"`

	// create_time
	CreateTime *int64 `json:"create_time,omitempty"`

	// update_by
	UpdateBy *string `json:"update_by,omitempty"`

	// update_time
	UpdateTime *int64 `json:"update_time,omitempty"`

	// delete_time
	DeleteTime *int64 `json:"delete_time,omitempty"`

	// rule_name
	RuleName *string `json:"rule_name,omitempty"`

	// query
	Query *string `json:"query,omitempty"`

	// query_type. SQL, CBSL.
	QueryType *UpdateAlertRuleResponseQueryType `json:"query_type,omitempty"`

	// status. ENABLED, DISABLED
	Status *UpdateAlertRuleResponseStatus `json:"status,omitempty"`

	// severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *UpdateAlertRuleResponseSeverity `json:"severity,omitempty"`

	// accumulated_times
	AccumulatedTimes *int32 `json:"accumulated_times,omitempty"`

	// custom_properties
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// event_grouping
	EventGrouping *bool `json:"event_grouping,omitempty"`

	Schedule *Schedule `json:"schedule,omitempty"`

	// triggers
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateAlertRuleResponse) String

func (o UpdateAlertRuleResponse) String() string

type UpdateAlertRuleResponseQueryType

type UpdateAlertRuleResponseQueryType struct {
	// contains filtered or unexported fields
}

func (UpdateAlertRuleResponseQueryType) MarshalJSON

func (c UpdateAlertRuleResponseQueryType) MarshalJSON() ([]byte, error)

func (*UpdateAlertRuleResponseQueryType) UnmarshalJSON

func (c *UpdateAlertRuleResponseQueryType) UnmarshalJSON(b []byte) error

func (UpdateAlertRuleResponseQueryType) Value

type UpdateAlertRuleResponseQueryTypeEnum

type UpdateAlertRuleResponseQueryTypeEnum struct {
	SQL  UpdateAlertRuleResponseQueryType
	CBSL UpdateAlertRuleResponseQueryType
}

func GetUpdateAlertRuleResponseQueryTypeEnum

func GetUpdateAlertRuleResponseQueryTypeEnum() UpdateAlertRuleResponseQueryTypeEnum

type UpdateAlertRuleResponseSeverity

type UpdateAlertRuleResponseSeverity struct {
	// contains filtered or unexported fields
}

func (UpdateAlertRuleResponseSeverity) MarshalJSON

func (c UpdateAlertRuleResponseSeverity) MarshalJSON() ([]byte, error)

func (*UpdateAlertRuleResponseSeverity) UnmarshalJSON

func (c *UpdateAlertRuleResponseSeverity) UnmarshalJSON(b []byte) error

func (UpdateAlertRuleResponseSeverity) Value

type UpdateAlertRuleResponseStatus

type UpdateAlertRuleResponseStatus struct {
	// contains filtered or unexported fields
}

func (UpdateAlertRuleResponseStatus) MarshalJSON

func (c UpdateAlertRuleResponseStatus) MarshalJSON() ([]byte, error)

func (*UpdateAlertRuleResponseStatus) UnmarshalJSON

func (c *UpdateAlertRuleResponseStatus) UnmarshalJSON(b []byte) error

func (UpdateAlertRuleResponseStatus) Value

type UpdateAlertRuleResponseStatusEnum

type UpdateAlertRuleResponseStatusEnum struct {
	ENABLED  UpdateAlertRuleResponseStatus
	DISABLED UpdateAlertRuleResponseStatus
}

func GetUpdateAlertRuleResponseStatusEnum

func GetUpdateAlertRuleResponseStatusEnum() UpdateAlertRuleResponseStatusEnum

type UpdateIndicatorRequest

type UpdateIndicatorRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// workspace id
	WorkspaceId string `json:"workspace_id"`

	// ID of indicator
	IndicatorId string `json:"indicator_id"`

	Body *UpdateIndicatorRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateIndicatorRequest) String

func (o UpdateIndicatorRequest) String() string

type UpdateIndicatorRequestBody

type UpdateIndicatorRequestBody struct {

	// 触发标志
	TriggerFlag *bool `json:"trigger_flag,omitempty"`

	DataObject *IndicatorDataObjectDetail `json:"data_object,omitempty"`
}

update indicator request body

func (UpdateIndicatorRequestBody) String

type UpdateIndicatorResponse

type UpdateIndicatorResponse struct {

	// Id value
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *IndicatorDetail `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateIndicatorResponse) String

func (o UpdateIndicatorResponse) String() string

type UpdatePlaybookActionRequest

type UpdatePlaybookActionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// ID of action
	ActionId string `json:"action_id"`

	Body *ModifyActionInfo `json:"body,omitempty"`
}

Request Object

func (UpdatePlaybookActionRequest) String

type UpdatePlaybookActionResponse

type UpdatePlaybookActionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *ActionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePlaybookActionResponse) String

type UpdatePlaybookRequest

type UpdatePlaybookRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// ID of playbook
	PlaybookId string `json:"playbook_id"`

	Body *ModifyPlaybookInfo `json:"body,omitempty"`
}

Request Object

func (UpdatePlaybookRequest) String

func (o UpdatePlaybookRequest) String() string

type UpdatePlaybookResponse

type UpdatePlaybookResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePlaybookResponse) String

func (o UpdatePlaybookResponse) String() string

type UpdatePlaybookRuleRequest

type UpdatePlaybookRuleRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	// rule_id
	RuleId string `json:"rule_id"`

	Body *ModifyRuleInfo `json:"body,omitempty"`
}

Request Object

func (UpdatePlaybookRuleRequest) String

func (o UpdatePlaybookRuleRequest) String() string

type UpdatePlaybookRuleResponse

type UpdatePlaybookRuleResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *RuleInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePlaybookRuleResponse) String

type UpdatePlaybookVersionRequest

type UpdatePlaybookVersionRequest struct {

	// application/json;charset=UTF-8
	ContentType string `json:"content-type"`

	// ID of workspace
	WorkspaceId string `json:"workspace_id"`

	// version Id value
	VersionId string `json:"version_id"`

	Body *ModifyPlaybookVersionInfo `json:"body,omitempty"`
}

Request Object

func (UpdatePlaybookVersionRequest) String

type UpdatePlaybookVersionResponse

type UpdatePlaybookVersionResponse struct {

	// Error code
	Code *string `json:"code,omitempty"`

	// Error message
	Message *string `json:"message,omitempty"`

	Data *PlaybookVersionInfo `json:"data,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePlaybookVersionResponse) String

Source Files

Jump to

Keyboard shortcuts

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