model

package
v0.1.100 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 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
	Id *string `json:"id,omitempty"`

	// 流程动作名称
	Name *string `json:"name,omitempty"`

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

	// 流程动作类型
	ActionType *string `json:"action_type,omitempty"`

	// 流程ID
	ActionId *string `json:"action_id,omitempty"`

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

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

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

ActionInfo 剧本流程动作信息

func (ActionInfo) String

func (o ActionInfo) String() string

type ActionInstanceInfo

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

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

ActionInstanceInfo 流程实例

func (ActionInstanceInfo) String

func (o ActionInstanceInfo) String() string

type Alert

type Alert struct {

	// 告警对象的版本,该字段的值必须为华为云SSA服务确定的官方发布版本之一
	Version *string `json:"version,omitempty"`

	// 事件唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

	// 数据投递后,被委托用户的domain_id
	DomainId *string `json:"domain_id,omitempty"`

	// 数据投递后,被委托用户的region_id
	RegionId *string `json:"region_id,omitempty"`

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

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

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

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

	// 首次发现时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// 最近发现时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// 记录时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CreateTime *string `json:"create_time,omitempty"`

	// 接收时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	ArriveTime *string `json:"arrive_time,omitempty"`

	// 告警标题
	Title *string `json:"title,omitempty"`

	// 告警描述信息
	Description *string `json:"description,omitempty"`

	// 告警URL链接,指向数据源产品中有关当前事件说明的页面
	SourceUrl *string `json:"source_url,omitempty"`

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

	// 事件的置信度。置信度的定义旨在说明识别的行为或问题的可能性。 取值范围:0-100,0表示置信度为0%,100表示置信度为100%
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级,取值范围:Tips | Low | Medium | High | Fatal 说明: 0: Tips – 未发现任何问题。 1: Low – 无需针对问题执行任何操作。 2: Medium – 问题需要处理,但不紧急。 3: High – 问题必须优先处理。 4: Fatal – 问题必须立即处理,以防止产生进一步的损害
	Severity *AlertSeverity `json:"severity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。 取值范围:0-100,0表示资源不关键,100表示最关键资源
	Criticality *int32 `json:"criticality,omitempty"`

	AlertType *AlertAlertType `json:"alert_type,omitempty"`

	// 网络信息
	NetworkList *[]AlertNetworkList `json:"network_list,omitempty"`

	// 受影响资源
	ResourceList *[]AlertResourceList `json:"resource_list,omitempty"`

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

	// 验证状态,标识事件的准确性。可选类型如下: Unknown – 未知 True_Positive – 确认 False_Positive – 误报 默认填写Unknown
	VerificationState *AlertVerificationState `json:"verification_state,omitempty"`

	// 事件处理状态,可选类型如下: Open – 打开,默认 Block – 阻塞 Closed – 关闭 默认填写Open
	HandleStatus *AlertHandleStatus `json:"handle_status,omitempty"`

	// 约束闭环时间:设置风险接受持续时间。单位:小时
	Sla *int32 `json:"sla,omitempty"`

	// 更新时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	UpdateTime *string `json:"update_time,omitempty"`

	// 关闭时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号 Prepartion|Detection and Analysis|Containm,Eradication& Recovery|Post-Incident-Activity
	IpdrrPhase *AlertIpdrrPhase `json:"ipdrr_phase,omitempty"`

	// 调试字段
	Simulation *string `json:"simulation,omitempty"`

	// 告警调查员
	Actor *string `json:"actor,omitempty"`

	// 责任人、服务责任人
	Owner *string `json:"owner,omitempty"`

	// 创建人
	Creator *string `json:"creator,omitempty"`

	// 关闭原因: 误检 - False detection 已解决 - Resolved 重复 - Repeated 其他 - Other
	CloseReason *AlertCloseReason `json:"close_reason,omitempty"`

	// 关闭评论
	CloseComment *string `json:"close_comment,omitempty"`

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

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

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

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

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

	// 告警管理列表的布局字段
	SystemAlertTable *interface{} `json:"system_alert_table,omitempty"`
}

Alert 告警实体信息

func (Alert) String

func (o Alert) String() string

type AlertAlertType added in v0.1.64

type AlertAlertType struct {

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

	// 告警类型
	AlertType *string `json:"alert_type,omitempty"`
}

AlertAlertType 告警分类,详细定义参考《告警类型定义》

func (AlertAlertType) String added in v0.1.64

func (o AlertAlertType) String() string

type AlertCloseReason added in v0.1.64

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

func (AlertCloseReason) MarshalJSON added in v0.1.64

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

func (*AlertCloseReason) UnmarshalJSON added in v0.1.64

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

func (AlertCloseReason) Value added in v0.1.64

func (c AlertCloseReason) Value() string

type AlertCloseReasonEnum added in v0.1.64

type AlertCloseReasonEnum struct {
	FALSE_DETECTION AlertCloseReason
	RESOLVED        AlertCloseReason
	REPEATED        AlertCloseReason
	OTHER           AlertCloseReason
}

func GetAlertCloseReasonEnum added in v0.1.64

func GetAlertCloseReasonEnum() AlertCloseReasonEnum

type AlertDataSource added in v0.1.64

type AlertDataSource struct {

	// 数据源类型,取值范围如下: 1 - 华为产品 2 - 第三方产品 3 - 租户私有产品
	SourceType *int32 `json:"source_type,omitempty"`

	// 数据源产品所属账号的id
	DomainId *string `json:"domain_id,omitempty"`

	// 数据源产品所属项目的id
	ProjectId *string `json:"project_id,omitempty"`

	// 数据源产品所在区域,具体取值范围查看华为云地区和终端节点定义,例如cn-north-1
	RegionId *string `json:"region_id,omitempty"`

	// 数据源产品所属公司的名称
	CompanyName *string `json:"company_name,omitempty"`

	// 数据源产品的名称
	ProductName *string `json:"product_name,omitempty"`

	// 产品功能特性名称,用来指明检测到当前事件的产品的功能特性
	ProductFeature *string `json:"product_feature,omitempty"`

	// 检测模块列表
	ProductModule *string `json:"product_module,omitempty"`
}

AlertDataSource 首次上报数据源

func (AlertDataSource) String added in v0.1.64

func (o AlertDataSource) String() string

type AlertDestGeo added in v0.1.64

type AlertDestGeo struct {

	// 纬度
	Latitude float32 `json:"latitude,omitempty"`

	// 经度
	Longitude float32 `json:"longitude,omitempty"`

	// 城市编码,Beijing | Shanghai
	CityCode *string `json:"city_code,omitempty"`

	// 国家简码,参考ISO 3166-1 alpha-2,例如:CN | US | DE | IT | SG
	CountryCode *string `json:"country_code,omitempty"`
}

AlertDestGeo 目标IP的地理位置信息

func (AlertDestGeo) String added in v0.1.64

func (o AlertDestGeo) String() string

type AlertDetail

type AlertDetail struct {

	// 记录时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CreateTime *string `json:"create_time,omitempty"`

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

	DataclassRef *AlertDetailDataclassRef `json:"dataclass_ref,omitempty"`

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

	// 事件唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

	// 当前项目的id
	ProjectId *string `json:"project_id,omitempty"`

	// 更新时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	UpdateTime *string `json:"update_time,omitempty"`

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

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

func (AlertDetail) String

func (o AlertDetail) String() string

type AlertDetailDataclassRef added in v0.1.64

type AlertDetailDataclassRef struct {

	// 数据类唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

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

AlertDetailDataclassRef 数据类对象

func (AlertDetailDataclassRef) String added in v0.1.64

func (o AlertDetailDataclassRef) String() string

type AlertEnvironment added in v0.1.64

type AlertEnvironment struct {

	// 环境供应商:HWCP/HWC/AWS/Azure/GCP
	VendorType *string `json:"vendor_type,omitempty"`

	// 租户id
	DomainId *string `json:"domain_id,omitempty"`

	// 区域od,全局服务global
	RegionId *string `json:"region_id,omitempty"`

	// 数据投递前的源工作空间id,在源空间下值为null,投递后为被委托用户的id
	CrossWorkspaceId *string `json:"cross_workspace_id,omitempty"`

	// 项目id, 全局服务默认null
	ProjectId *string `json:"project_id,omitempty"`
}

AlertEnvironment 告警产生的环境坐标信息

func (AlertEnvironment) String added in v0.1.64

func (o AlertEnvironment) String() string

type AlertFileInfo added in v0.1.64

type AlertFileInfo struct {

	// 文件路径/名称
	FilePath *string `json:"file_path,omitempty"`

	// 文件内容
	FileContent *string `json:"file_content,omitempty"`

	// 文件新路径/名称
	FileNewPath *string `json:"file_new_path,omitempty"`

	// 文件hash
	FileHash *string `json:"file_hash,omitempty"`

	// 文件md5
	FileMd5 *string `json:"file_md5,omitempty"`

	// 文件sha256
	FileSha256 *string `json:"file_sha256,omitempty"`

	// 文件属性
	FileAttr *string `json:"file_attr,omitempty"`
}

func (AlertFileInfo) String added in v0.1.64

func (o AlertFileInfo) String() string

type AlertHandleStatus added in v0.1.64

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

func (AlertHandleStatus) MarshalJSON added in v0.1.64

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

func (*AlertHandleStatus) UnmarshalJSON added in v0.1.64

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

func (AlertHandleStatus) Value added in v0.1.64

func (c AlertHandleStatus) Value() string

type AlertHandleStatusEnum added in v0.1.64

type AlertHandleStatusEnum struct {
	OPEN   AlertHandleStatus
	BLOCK  AlertHandleStatus
	CLOSED AlertHandleStatus
}

func GetAlertHandleStatusEnum added in v0.1.64

func GetAlertHandleStatusEnum() AlertHandleStatusEnum

type AlertIpdrrPhase added in v0.1.64

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

func (AlertIpdrrPhase) MarshalJSON added in v0.1.64

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

func (*AlertIpdrrPhase) UnmarshalJSON added in v0.1.64

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

func (AlertIpdrrPhase) Value added in v0.1.64

func (c AlertIpdrrPhase) Value() string

type AlertIpdrrPhaseEnum added in v0.1.64

type AlertIpdrrPhaseEnum struct {
	PREPARTION                   AlertIpdrrPhase
	DETECTION_AND_ANALYSIS       AlertIpdrrPhase
	CONTAINMERADICATION_RECOVERY AlertIpdrrPhase
	POST_INCIDENT_ACTIVITY       AlertIpdrrPhase
}

func GetAlertIpdrrPhaseEnum added in v0.1.64

func GetAlertIpdrrPhaseEnum() AlertIpdrrPhaseEnum

type AlertNetworkList added in v0.1.64

type AlertNetworkList struct {

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

	// 协议,包含7层和4层的协议 参考:IANA registered name https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
	Protocol *string `json:"protocol,omitempty"`

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

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

	// 源域名
	SrcDomain *string `json:"src_domain,omitempty"`

	SrcGeo *AlertSrcGeo `json:"src_geo,omitempty"`

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

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

	// 目的域名
	DestDomain *string `json:"dest_domain,omitempty"`

	DestGeo *AlertDestGeo `json:"dest_geo,omitempty"`
}

func (AlertNetworkList) String added in v0.1.64

func (o AlertNetworkList) String() string

type AlertNetworkListDirection added in v0.1.64

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

func (AlertNetworkListDirection) MarshalJSON added in v0.1.64

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

func (*AlertNetworkListDirection) UnmarshalJSON added in v0.1.64

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

func (AlertNetworkListDirection) Value added in v0.1.64

type AlertNetworkListDirectionEnum added in v0.1.64

type AlertNetworkListDirectionEnum struct {
	IN  AlertNetworkListDirection
	OUT AlertNetworkListDirection
}

func GetAlertNetworkListDirectionEnum added in v0.1.64

func GetAlertNetworkListDirectionEnum() AlertNetworkListDirectionEnum

type AlertProcess added in v0.1.64

type AlertProcess struct {

	// 进程名
	ProcessName *string `json:"process_name,omitempty"`

	// 进程执行文件路径
	ProcessPath *string `json:"process_path,omitempty"`

	// 进程id
	ProcessPid *int32 `json:"process_pid,omitempty"`

	// 进程用户id
	ProcessUid *int32 `json:"process_uid,omitempty"`

	// 进程命令行
	ProcessCmdline *string `json:"process_cmdline,omitempty"`

	// 父进程名称
	ProcessParentName *string `json:"process_parent_name,omitempty"`

	// 父进程执行文件路径
	ProcessParentPath *string `json:"process_parent_path,omitempty"`

	// 父进程id
	ProcessParentPid *int32 `json:"process_parent_pid,omitempty"`

	// 父进程用户id
	ProcessParentUid *int32 `json:"process_parent_uid,omitempty"`

	// 父进程命令行
	ProcessParentCmdline *string `json:"process_parent_cmdline,omitempty"`

	// 子进程名称
	ProcessChildName *string `json:"process_child_name,omitempty"`

	// 子进程执行文件路径
	ProcessChildPath *string `json:"process_child_path,omitempty"`

	// 子进程id
	ProcessChildPid *int32 `json:"process_child_pid,omitempty"`

	// 子进程用户id
	ProcessChildUid *int32 `json:"process_child_uid,omitempty"`

	// 子进程命令行
	ProcessChildCmdline *string `json:"process_child_cmdline,omitempty"`

	// 进程启动时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	ProcessLauncheTime *string `json:"process_launche_time,omitempty"`

	// 进程结束时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	ProcessTerminateTime *string `json:"process_terminate_time,omitempty"`
}

func (AlertProcess) String added in v0.1.64

func (o AlertProcess) String() string

type AlertRemediation added in v0.1.64

type AlertRemediation struct {

	// 推荐处理方法
	Recommendation *string `json:"recommendation,omitempty"`

	// 链接,指向该事件的一般修复信息。该URL必须可以从公网访问,不需要提供凭证
	Url *string `json:"url,omitempty"`
}

AlertRemediation 补救措施

func (AlertRemediation) String added in v0.1.64

func (o AlertRemediation) String() string

type AlertResourceList added in v0.1.64

type AlertResourceList struct {

	// 云服务资源id
	Id *string `json:"id,omitempty"`

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

	// 资源类型;引用华为云RMS type字段
	Type *string `json:"type,omitempty"`

	// 云服务名称;引用华为云RMS provider字段
	Provider *string `json:"provider,omitempty"`

	// 区域;按照华为云regionId填写,如cn-north-1等
	RegionId *string `json:"region_id,omitempty"`

	// 资源所属账号ID,UUID格式
	DomainId *string `json:"domain_id,omitempty"`

	// 资源所属项目ID,UUID格式
	ProjectId *string `json:"project_id,omitempty"`

	// 企业项目id
	EpId *string `json:"ep_id,omitempty"`

	// 企业项目名称
	EpName *string `json:"ep_name,omitempty"`

	// 资源标签 1、最多50个key/values对 2、values:最大255字符,取值范围:字母数字,空格,+, -, =, ., _, :, /,@
	Tags *string `json:"tags,omitempty"`
}

func (AlertResourceList) String added in v0.1.64

func (o AlertResourceList) String() string

type AlertRule

type AlertRule struct {

	// 告警规则 ID。Alert rule ID.
	RuleId string `json:"rule_id"`

	// 数据管道 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"`

	// 告警规则名称。Alert rule name.
	RuleName string `json:"rule_name"`

	// 查询语句。Query.
	Query *string `json:"query,omitempty"`

	// 查询语法,SQL。Query type. SQL.
	QueryType *AlertRuleQueryType `json:"query_type,omitempty"`

	// 启用状态,启用、停用。Status, enabled, disabled.
	Status AlertRuleStatus `json:"status"`

	// 严重程度,提示、低危、中危、高危、致命。Severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity AlertRuleSeverity `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"`

	// 告警触发规则。Alert triggers.
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`
}

func (AlertRule) String

func (o AlertRule) String() string

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
}

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 {

	// 告警规则模板 ID。Alert rule template ID.
	TemplateId string `json:"template_id"`

	// 更新时间。Update time.
	UpdateTime int64 `json:"update_time"`

	// 告警规则模板名称。Alert rule 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"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 告警触发规则。Alert 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
}

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 AlertSeverity added in v0.1.64

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

func (AlertSeverity) MarshalJSON added in v0.1.64

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

func (*AlertSeverity) UnmarshalJSON added in v0.1.64

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

func (AlertSeverity) Value added in v0.1.64

func (c AlertSeverity) Value() string

type AlertSeverityEnum added in v0.1.64

type AlertSeverityEnum struct {
	TIPS   AlertSeverity
	LOW    AlertSeverity
	MEDIUM AlertSeverity
	HIGH   AlertSeverity
	FATAL  AlertSeverity
}

func GetAlertSeverityEnum added in v0.1.64

func GetAlertSeverityEnum() AlertSeverityEnum

type AlertSrcGeo added in v0.1.64

type AlertSrcGeo struct {

	// 纬度
	Latitude float32 `json:"latitude,omitempty"`

	// 经度
	Longitude float32 `json:"longitude,omitempty"`

	// 城市编码,Beijing | Shanghai
	CityCode *string `json:"city_code,omitempty"`

	// 国家简码,参考ISO 3166-1 alpha-2,例如:CN | US | DE | IT | SG
	CountryCode *string `json:"country_code,omitempty"`
}

AlertSrcGeo 源IP的地理位置信息

func (AlertSrcGeo) String added in v0.1.64

func (o AlertSrcGeo) String() string

type AlertUserInfo added in v0.1.64

type AlertUserInfo struct {

	// 用户uid
	UserId *string `json:"user_id,omitempty"`

	// 用户名称
	UserName *string `json:"user_name,omitempty"`
}

func (AlertUserInfo) String added in v0.1.64

func (o AlertUserInfo) String() string

type AlertVerificationState added in v0.1.64

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

func (AlertVerificationState) MarshalJSON added in v0.1.64

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

func (*AlertVerificationState) UnmarshalJSON added in v0.1.64

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

func (AlertVerificationState) Value added in v0.1.64

func (c AlertVerificationState) Value() string

type AlertVerificationStateEnum added in v0.1.64

type AlertVerificationStateEnum struct {
	UNKNOWN        AlertVerificationState
	TRUE_POSITIVE  AlertVerificationState
	FALSE_POSITIVE AlertVerificationState
}

func GetAlertVerificationStateEnum added in v0.1.64

func GetAlertVerificationStateEnum() AlertVerificationStateEnum

type AopWorkflowInfo added in v0.1.68

type AopWorkflowInfo struct {

	// 流程ID
	Id *string `json:"id,omitempty"`

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

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

	// 租户ID
	ProjectId *string `json:"project_id,omitempty"`

	// 所有者ID
	OwnerId *string `json:"owner_id,omitempty"`

	// 创建者ID
	CreatorId *string `json:"creator_id,omitempty"`

	// 编辑角色
	EditRole *string `json:"edit_role,omitempty"`

	// 是用角色
	UseRole *string `json:"use_role,omitempty"`

	// 审核人
	ApproveRole *string `json:"approve_role,omitempty"`

	// 是否已启用
	Enabled *bool `json:"enabled,omitempty"`

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

	// 流程版本ID
	VersionId *string `json:"version_id,omitempty"`

	// 当前待审核版本号
	CurrentApprovalVersionId *string `json:"current_approval_version_id,omitempty"`

	// 当前拒绝的版本号
	CurrentRejectedVersoinId *string `json:"current_rejected_versoin_id,omitempty"`

	// aop的类型有以下的值     NORMAL, 通用     SURVEY, 调查     HEMOSTASIS,止血     EASE;缓解
	AopType *string `json:"aop_type,omitempty"`

	// 引擎的类型分为共享版和专项版
	EngineType *string `json:"engine_type,omitempty"`

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

AopWorkflowInfo 流程详情

func (AopWorkflowInfo) String added in v0.1.68

func (o AopWorkflowInfo) String() string

type ApproveOpinionDetail

type ApproveOpinionDetail struct {

	// 审核结果
	Result *string `json:"result,omitempty"`

	// 审核内容
	Content *string `json:"content,omitempty"`
}

ApproveOpinionDetail 审核详情信息

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"`
}

ApprovePlaybookInfo 审核详情

func (ApprovePlaybookInfo) String

func (o ApprovePlaybookInfo) String() string

type AuditLogInfo

type AuditLogInfo struct {

	// 实例类型(AOP_WORKFLOW--流程, SCRIPT--脚本, PLAYBOOK--剧本)
	InstanceType *string `json:"instance_type,omitempty"`

	// 流程ID
	ActionId *string `json:"action_id,omitempty"`

	// 流程名称
	ActionName *string `json:"action_name,omitempty"`

	// 实例ID
	InstanceId *string `json:"instance_id,omitempty"`

	// 父节点实例ID
	ParentInstanceId *string `json:"parent_instance_id,omitempty"`

	// 日志级别
	LogLevel *string `json:"log_level,omitempty"`

	// 输入
	Input *string `json:"input,omitempty"`

	// 输出
	Output *string `json:"output,omitempty"`

	// 错误信息
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 状态。(RUNNING--运行中、FINISHED--成功、FAILED--失败、RETRYING--重试中、TERMINATING--终止中、TERMINATED--已终止)
	Status *string `json:"status,omitempty"`

	// 触发类型. TIMER--定时触发, EVENT--事件触发
	TriggerType *string `json:"trigger_type,omitempty"`
}

AuditLogInfo 剧本实例审计日志信息

func (AuditLogInfo) String

func (o AuditLogInfo) String() string

type BatchOperateAlertResult added in v0.1.64

type BatchOperateAlertResult struct {

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

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

BatchOperateAlertResult 批量操作告警返回对象

func (BatchOperateAlertResult) String added in v0.1.64

func (o BatchOperateAlertResult) String() string

type BatchOperateDataobjectResult added in v0.1.64

type BatchOperateDataobjectResult struct {

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

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

BatchOperateDataobjectResult 批量操作告警返回对象

func (BatchOperateDataobjectResult) String added in v0.1.64

type ChangeAlertRequest

type ChangeAlertRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

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

ChangeAlertRequest Request Object

func (ChangeAlertRequest) String

func (o ChangeAlertRequest) String() string

type ChangeAlertRequestBody

type ChangeAlertRequestBody struct {

	// 更新告警的ID列表
	BatchIds *[]string `json:"batch_ids,omitempty"`

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

ChangeAlertRequestBody 更新告警请求body体

func (ChangeAlertRequestBody) String

func (o ChangeAlertRequestBody) String() string

type ChangeAlertResponse

type ChangeAlertResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ChangeAlertResponse Response Object

func (ChangeAlertResponse) String

func (o ChangeAlertResponse) String() string

type ChangeIncidentRequest

type ChangeIncidentRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

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

ChangeIncidentRequest Request Object

func (ChangeIncidentRequest) String

func (o ChangeIncidentRequest) String() string

type ChangeIncidentRequestBody

type ChangeIncidentRequestBody struct {

	// 更新事件的ID列表
	BatchIds *[]string `json:"batch_ids,omitempty"`

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

ChangeIncidentRequestBody 更新事件请求body体

func (ChangeIncidentRequestBody) String

func (o ChangeIncidentRequestBody) String() string

type ChangeIncidentResponse

type ChangeIncidentResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ChangeIncidentResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本实例ID
	InstanceId string `json:"instance_id"`

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

ChangePlaybookInstanceRequest Request Object

func (ChangePlaybookInstanceRequest) String

type ChangePlaybookInstanceResponse

type ChangePlaybookInstanceResponse struct {

	// 剧本实例ID
	Id *string `json:"id,omitempty"`

	// 剧本实例名称
	Name *string `json:"name,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

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

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

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

	// 剧本实例状态. (RUNNING--运行中、FINISHED--成功、FAILED--失败、RETRYING--重试中、TERMINATING--终止中、TERMINATED--已终止)
	Status *string `json:"status,omitempty"`

	// 触发类型. TIMER--定时触发, EVENT--事件触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 创建时间
	StartTime *string `json:"start_time,omitempty"`

	// 更新时间
	EndTime *string `json:"end_time,omitempty"`

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

ChangePlaybookInstanceResponse Response Object

func (ChangePlaybookInstanceResponse) String

type ConditionInfo

type ConditionInfo struct {

	// 表达式类型。默认为common,事件触发剧本必填
	ExpressionType *string `json:"expression_type,omitempty"`

	// 触发条件。事件触发剧本必填
	Conditions *[]ConditionItem `json:"conditions,omitempty"`

	// 条件逻辑组合。事件触发剧本必填
	Logics *[]string `json:"logics,omitempty"`

	// Cron 表达式(定时任务)。定时触发剧本必填
	Cron *string `json:"cron,omitempty"`

	// 定时重复类型(second--秒, hour--小时,day--天,week-周)。定时触发剧本必填
	ScheduleType *string `json:"schedule_type,omitempty"`

	// 剧本开始执行类型,IMMEDIATELY--创建完成立即执行, CUSTOM--自定义执行时间。定时触发剧本必填
	StartType *string `json:"start_type,omitempty"`

	// 剧本结束执行类型,FOREVER--一直执行, CUSTOM--自定义结束时间。定时触发剧本必填
	EndType *string `json:"end_type,omitempty"`

	// 定时结束时间。定时触发剧本必填
	EndTime *string `json:"end_time,omitempty"`

	// 执行时间段 2021-01-30T23:00:00Z+0800。定时触发剧本必填
	RepeatRange *string `json:"repeat_range,omitempty"`

	// 是否只执行一次。定时触发剧本必填
	OnlyOnce *bool `json:"only_once,omitempty"`

	// 执行队列类型(PARALLEL-新任务与之前任务并行)。定时触发剧本必填
	ExecutionType *string `json:"execution_type,omitempty"`
}

ConditionInfo 剧本触发规则详情

func (ConditionInfo) String

func (o ConditionInfo) String() string

type ConditionItem

type ConditionItem struct {

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

	// 条件详情
	Detail *string `json:"detail,omitempty"`

	// 条件表达式数据
	Data *[]string `json:"data,omitempty"`
}

ConditionItem 条件定义

func (ConditionItem) String

func (o ConditionItem) String() string

type CopyPlaybookInfo

type CopyPlaybookInfo struct {

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

CopyPlaybookInfo 复制剧本信息

func (CopyPlaybookInfo) String

func (o CopyPlaybookInfo) String() string

type CopyPlaybookVersionRequest

type CopyPlaybookVersionRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

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

CopyPlaybookVersionRequest Request Object

func (CopyPlaybookVersionRequest) String

type CopyPlaybookVersionResponse

type CopyPlaybookVersionResponse struct {

	// 错误码
	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:"-"`
}

CopyPlaybookVersionResponse Response Object

func (CopyPlaybookVersionResponse) String

type CreateAction

type CreateAction struct {

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

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

	// 类型,默认AOP_WORKFLOW.
	ActionType string `json:"action_type"`

	// 剧本动作ID
	ActionId string `json:"action_id"`

	// 排序方式
	SortOrder *string `json:"sort_order,omitempty"`
}

func (CreateAction) String

func (o CreateAction) String() string

type CreateAlertRequest

type CreateAlertRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

CreateAlertRequest Request Object

func (CreateAlertRequest) String

func (o CreateAlertRequest) String() string

type CreateAlertRequestBody

type CreateAlertRequestBody struct {
	DataObject *Alert `json:"data_object"`
}

CreateAlertRequestBody 创建告警请求body体

func (CreateAlertRequestBody) String

func (o CreateAlertRequestBody) String() string

type CreateAlertResponse

type CreateAlertResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

CreateAlertResponse Response Object

func (CreateAlertResponse) String

func (o CreateAlertResponse) String() string

type CreateAlertRuleRequest

type CreateAlertRuleRequest struct {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

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

CreateAlertRuleRequest Request Object

func (CreateAlertRuleRequest) String

func (o CreateAlertRuleRequest) String() string

type CreateAlertRuleRequestBody

type CreateAlertRuleRequestBody struct {

	// 数据管道 ID。Pipe ID.
	PipeId string `json:"pipe_id"`

	// 告警规则名称。Alert rule name.
	RuleName string `json:"rule_name"`

	// 描述。Description.
	Description *string `json:"description,omitempty"`

	// 查询语句。Query.
	Query string `json:"query"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 自定义扩展信息。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"`

	// 告警触发规则。Alert 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
}

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 {

	// 告警规则 ID。Alert rule ID.
	RuleId *string `json:"rule_id,omitempty"`

	// 数据管道 ID。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"`

	// 告警规则名称。Alert rule name.
	RuleName *string `json:"rule_name,omitempty"`

	// 查询语句。Query.
	Query *string `json:"query,omitempty"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 自定义扩展信息。Custom properties.
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// 告警分组。Event grouping.
	EventGrouping *bool `json:"event_grouping,omitempty"`

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

	// 告警触发规则。Alert triggers.
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

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

CreateAlertRuleResponse 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
}

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 {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

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

CreateAlertRuleSimulationRequest Request Object

func (CreateAlertRuleSimulationRequest) String

type CreateAlertRuleSimulationRequestBody

type CreateAlertRuleSimulationRequestBody struct {

	// 数据管道 ID。Pipe ID.
	PipeId string `json:"pipe_id"`

	// 查询语句。Query.
	Query string `json:"query"`

	// 查询语法,SQL。Query type. SQL.
	QueryType *CreateAlertRuleSimulationRequestBodyQueryType `json:"query_type,omitempty"`

	// 开始时间。Start time.
	From int64 `json:"from"`

	// 结束时间。End time.
	To int64 `json:"to"`

	// 告警分组。Event grouping.
	EventGrouping *bool `json:"event_grouping,omitempty"`

	// 告警触发规则。Alert 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 CreateAlertRuleSimulationRequestBodyQueryTypeEnum

type CreateAlertRuleSimulationRequestBodyQueryTypeEnum struct {
	SQL CreateAlertRuleSimulationRequestBodyQueryType
}

func GetCreateAlertRuleSimulationRequestBodyQueryTypeEnum

func GetCreateAlertRuleSimulationRequestBodyQueryTypeEnum() CreateAlertRuleSimulationRequestBodyQueryTypeEnum

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:"-"`
}

CreateAlertRuleSimulationResponse Response Object

func (CreateAlertRuleSimulationResponse) String

type CreateBatchOrderAlertsRequest

type CreateBatchOrderAlertsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

CreateBatchOrderAlertsRequest Request Object

func (CreateBatchOrderAlertsRequest) String

type CreateBatchOrderAlertsResponse

type CreateBatchOrderAlertsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

CreateBatchOrderAlertsResponse Response Object

func (CreateBatchOrderAlertsResponse) String

type CreateDataobjectRelationsRequest added in v0.1.64

type CreateDataobjectRelationsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

	// 关联主体dataobject所属数据类,小写复数,如告警为alerts,事件为incidents
	DataclassType string `json:"dataclass_type"`

	// 关联主体dataobject的id
	DataObjectId string `json:"data_object_id"`

	// 被关联的dataobject所属数据类,小写复数,如告警为alerts,事件为incidents
	RelatedDataclassType string `json:"related_dataclass_type"`

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

CreateDataobjectRelationsRequest Request Object

func (CreateDataobjectRelationsRequest) String added in v0.1.64

type CreateDataobjectRelationsRequestBody added in v0.1.64

type CreateDataobjectRelationsRequestBody struct {

	// 关联dataobject的ID列表
	Ids *[]string `json:"ids,omitempty"`
}

CreateDataobjectRelationsRequestBody 关联dataobject列表请求body体

func (CreateDataobjectRelationsRequestBody) String added in v0.1.64

type CreateDataobjectRelationsResponse added in v0.1.64

type CreateDataobjectRelationsResponse 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:"-"`
}

CreateDataobjectRelationsResponse Response Object

func (CreateDataobjectRelationsResponse) String added in v0.1.64

type CreateDataspaceRequest added in v0.1.68

type CreateDataspaceRequest struct {

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

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

CreateDataspaceRequest Request Object

func (CreateDataspaceRequest) String added in v0.1.68

func (o CreateDataspaceRequest) String() string

type CreateDataspaceRequestBody added in v0.1.68

type CreateDataspaceRequestBody struct {

	// 数据空间名称
	DataspaceName string `json:"dataspace_name"`

	// 描述
	Description string `json:"description"`
}

func (CreateDataspaceRequestBody) String added in v0.1.68

type CreateDataspaceResponse added in v0.1.68

type CreateDataspaceResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateDataspaceResponse Response Object

func (CreateDataspaceResponse) String added in v0.1.68

func (o CreateDataspaceResponse) String() string

type CreateIncidentRequest

type CreateIncidentRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

CreateIncidentRequest Request Object

func (CreateIncidentRequest) String

func (o CreateIncidentRequest) String() string

type CreateIncidentRequestBody

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

CreateIncidentRequestBody 创建事件请求body体

func (CreateIncidentRequestBody) String

func (o CreateIncidentRequestBody) String() string

type CreateIncidentResponse

type CreateIncidentResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

CreateIncidentResponse Response Object

func (CreateIncidentResponse) String

func (o CreateIncidentResponse) String() string

type CreateIndicatorDetail

type CreateIndicatorDetail struct {
	DataSource *CreateIndicatorDetailDataSource `json:"data_source"`

	// 威胁度
	Verdict string `json:"verdict"`

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

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

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

	// 值
	Value string `json:"value"`

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

	Environment *CreateIndicatorDetailEnvironment `json:"environment"`

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

	// 首次发生时间
	FirstReportTime string `json:"first_report_time"`

	// 最近发生时间
	LastReportTime *string `json:"last_report_time,omitempty"`

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

	IndicatorType *CreateIndicatorDetailIndicatorType `json:"indicator_type"`

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

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

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

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

	// 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"`
}

CreateIndicatorDetail 情报详情信息

func (CreateIndicatorDetail) String

func (o CreateIndicatorDetail) String() string

type CreateIndicatorDetailDataSource added in v0.1.64

type CreateIndicatorDetailDataSource struct {

	// current page count
	SourceType int32 `json:"source_type"`

	// Id value
	DomainId string `json:"domain_id"`

	// Id value
	ProjectId string `json:"project_id"`

	// Id value
	RegionId string `json:"region_id"`

	// Id value
	ProductName string `json:"product_name"`

	// Id value
	ProductFeature string `json:"product_feature"`
}

CreateIndicatorDetailDataSource 数据源信息

func (CreateIndicatorDetailDataSource) String added in v0.1.64

type CreateIndicatorDetailEnvironment added in v0.1.64

type CreateIndicatorDetailEnvironment struct {

	// 环境供应商,如:HWC/AWS等
	VendorType string `json:"vendor_type"`

	// 租户ID
	DomainId string `json:"domain_id"`

	// 区域ID
	RegionId string `json:"region_id"`

	// 项目ID
	ProjectId string `json:"project_id"`
}

CreateIndicatorDetailEnvironment 环境信息

func (CreateIndicatorDetailEnvironment) String added in v0.1.64

type CreateIndicatorDetailIndicatorType

type CreateIndicatorDetailIndicatorType struct {

	// 指标类型
	IndicatorType string `json:"indicator_type"`

	// 情报类型ID
	Id string `json:"id"`

	// 目录
	Category string `json:"category"`

	// 布局ID
	LayoutId string `json:"layout_id"`
}

CreateIndicatorDetailIndicatorType 指标类型统计数据

func (CreateIndicatorDetailIndicatorType) String

type CreateIndicatorRequest

type CreateIndicatorRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

CreateIndicatorRequest Request Object

func (CreateIndicatorRequest) String

func (o CreateIndicatorRequest) String() string

type CreateIndicatorResponse

type CreateIndicatorResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

CreateIndicatorResponse Response Object

func (CreateIndicatorResponse) String

func (o CreateIndicatorResponse) String() string

type CreatePipeRequest added in v0.1.68

type CreatePipeRequest struct {

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

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

CreatePipeRequest Request Object

func (CreatePipeRequest) String added in v0.1.68

func (o CreatePipeRequest) String() string

type CreatePipeRequestBody added in v0.1.68

type CreatePipeRequestBody struct {

	// 工作空间ID
	DataspaceId string `json:"dataspace_id"`

	// 数据管道名称
	PipeName string `json:"pipe_name"`

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

	// 数据的保存时间,单位为天;默认30天,取值范围为1~3600
	StoragePeriod int32 `json:"storage_period"`

	// 数据管道分区个数;默认创建1个,最大支持创建64个分区
	Shards int32 `json:"shards"`

	// 时间戳字段
	TimestampField *string `json:"timestamp_field,omitempty"`

	// 索引字段映射;每个key对象承载一个字段的信息;存在多个key对象,key可变,表示字段名称;可嵌套
	Mapping map[string]KeyIndex `json:"mapping,omitempty"`
}

func (CreatePipeRequestBody) String added in v0.1.68

func (o CreatePipeRequestBody) String() string

type CreatePipeResponse added in v0.1.68

type CreatePipeResponse struct {

	// 用户domainId
	DomainId *string `json:"domain_id,omitempty"`

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 数据空间id
	DataspaceId *string `json:"dataspace_id,omitempty"`

	// 数据空间名称
	DataspaceName *string `json:"dataspace_name,omitempty"`

	// 管道id
	PipeId *string `json:"pipe_id,omitempty"`

	// 管道名称
	PipeName *string `json:"pipe_name,omitempty"`

	// 管道类型(system-defined,系统预定义)、1(user-defined,用户自定义)
	PipeType *string `json:"pipe_type,omitempty"`

	// 描述信息
	Description *string `json:"description,omitempty"`

	// 索引存储天数
	StoragePeriod *int32 `json:"storage_period,omitempty"`

	// 索引分片数量
	Shards *int32 `json:"shards,omitempty"`

	// 创建者
	CreateBy *string `json:"create_by,omitempty"`

	// 创建时间
	CreateTime *int32 `json:"create_time,omitempty"`

	// 更新者
	UpdateBy *string `json:"update_by,omitempty"`

	// 更新时间
	UpdateTime     *int32 `json:"update_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreatePipeResponse Response Object

func (CreatePipeResponse) String added in v0.1.68

func (o CreatePipeResponse) String() string

type CreatePlaybookActionRequest

type CreatePlaybookActionRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

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

CreatePlaybookActionRequest 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:"-"`
}

CreatePlaybookActionResponse Response Object

func (CreatePlaybookActionResponse) String

type CreatePlaybookApproveRequest

type CreatePlaybookApproveRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 版本ID
	VersionId string `json:"version_id"`

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

CreatePlaybookApproveRequest Request Object

func (CreatePlaybookApproveRequest) String

type CreatePlaybookApproveResponse

type CreatePlaybookApproveResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 响应消息
	Message *string `json:"message,omitempty"`

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

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

CreatePlaybookApproveResponse Response Object

func (CreatePlaybookApproveResponse) String

type CreatePlaybookInfo

type CreatePlaybookInfo struct {

	// 剧本名称
	Name string `json:"name"`

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 是否启用,默认传false
	Enabled *bool `json:"enabled,omitempty"`
}

CreatePlaybookInfo 剧本创建参数信息

func (CreatePlaybookInfo) String

func (o CreatePlaybookInfo) String() string

type CreatePlaybookRequest

type CreatePlaybookRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

CreatePlaybookRequest Request Object

func (CreatePlaybookRequest) String

func (o CreatePlaybookRequest) String() string

type CreatePlaybookResponse

type CreatePlaybookResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

CreatePlaybookResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

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

CreatePlaybookRuleRequest Request Object

func (CreatePlaybookRuleRequest) String

func (o CreatePlaybookRuleRequest) String() string

type CreatePlaybookRuleResponse

type CreatePlaybookRuleResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

CreatePlaybookRuleResponse Response Object

func (CreatePlaybookRuleResponse) String

type CreatePlaybookVersionInfo

type CreatePlaybookVersionInfo struct {

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

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

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

	// 关联流程列表
	Actions *[]ActionInfo `json:"actions,omitempty"`

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

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

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

	// 触发方式. EVENT--事件触发, TIMER--定时触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 标识数据对象是否创建时触发剧本
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// 标识数据对象是否更新时触发剧本
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// 标识数据对象是否删除时触发剧本
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// 执行策略. 目前仅支持异步并发执行,对应值为ASYNC
	ActionStrategy *string `json:"action_strategy,omitempty"`
}

CreatePlaybookVersionInfo 创建剧本版本请求参数

func (CreatePlaybookVersionInfo) String

func (o CreatePlaybookVersionInfo) String() string

type CreatePlaybookVersionRequest

type CreatePlaybookVersionRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本ID
	PlaybookId string `json:"playbook_id"`

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

CreatePlaybookVersionRequest Request Object

func (CreatePlaybookVersionRequest) String

type CreatePlaybookVersionResponse

type CreatePlaybookVersionResponse struct {

	// 错误码
	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:"-"`
}

CreatePlaybookVersionResponse Response Object

func (CreatePlaybookVersionResponse) String

type CreateRuleInfo

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

CreateRuleInfo 创建剧本触发规则参数

func (CreateRuleInfo) String

func (o CreateRuleInfo) String() string

type DataClassRefPojo

type DataClassRefPojo struct {

	// 数据类ID
	Id string `json:"id"`

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

DataClassRefPojo 数据类对象信息

func (DataClassRefPojo) String

func (o DataClassRefPojo) String() string

type DataClassResponseBody added in v0.1.68

type DataClassResponseBody struct {

	// 数据类ID
	Id *string `json:"id,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 创建者ID
	CreatorId *string `json:"creator_id,omitempty"`

	// 创建者名称
	CreatorName *string `json:"creator_name,omitempty"`

	// 修改者ID
	ModifierId *string `json:"modifier_id,omitempty"`

	// 修改这名称
	ModifierName *string `json:"modifier_name,omitempty"`

	// 订阅包版本
	CloudPackVersion *string `json:"cloud_pack_version,omitempty"`

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 租户ID
	ProjectId *string `json:"project_id,omitempty"`

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

	// domain id
	DomainId *string `json:"domain_id,omitempty"`

	// 数据类名称
	Name *string `json:"name,omitempty"`

	// 数据类业务编码
	BusinessCode *string `json:"business_code,omitempty"`

	// 数据类描述
	Description *string `json:"description,omitempty"`

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

	// 父级id
	ParentId *string `json:"parent_id,omitempty"`

	// 子类型数量
	TypeNum float32 `json:"type_num,omitempty"`
}

DataClassResponseBody 数据类详情

func (DataClassResponseBody) String added in v0.1.68

func (o DataClassResponseBody) String() string

type DataObject added in v0.1.64

type DataObject struct {

	// 告警对象的版本,该字段的值必须为华为云SSA服务确定的官方发布版本之一
	Version *string `json:"version,omitempty"`

	// 事件唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

	// 数据投递后,被委托用户的domain_id
	DomainId *string `json:"domain_id,omitempty"`

	// 数据投递后,被委托用户的region_id
	RegionId *string `json:"region_id,omitempty"`

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

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

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

	// 首次发现时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// 最近发现时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// 记录时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CreateTime *string `json:"create_time,omitempty"`

	// 接收时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	ArriveTime *string `json:"arrive_time,omitempty"`

	// 告警标题
	Title *string `json:"title,omitempty"`

	// 告警描述信息
	Description *string `json:"description,omitempty"`

	// 告警URL链接,指向数据源产品中有关当前事件说明的页面
	SourceUrl *string `json:"source_url,omitempty"`

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

	// 事件的置信度。置信度的定义旨在说明识别的行为或问题的可能性。 取值范围:0-100,0表示置信度为0%,100表示置信度为100%
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级,取值范围:Tips | Low | Medium | High | Fatal 说明: 0: Tips – 未发现任何问题。 1: Low – 无需针对问题执行任何操作。 2: Medium – 问题需要处理,但不紧急。 3: High – 问题必须优先处理。 4: Fatal – 问题必须立即处理,以防止产生进一步的损害
	Severity *DataObjectSeverity `json:"severity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。 取值范围:0-100,0表示资源不关键,100表示最关键资源
	Criticality *int32 `json:"criticality,omitempty"`

	AlertType *AlertAlertType `json:"alert_type,omitempty"`

	// 网络信息
	NetworkList *[]AlertNetworkList `json:"network_list,omitempty"`

	// 受影响资源
	ResourceList *[]AlertResourceList `json:"resource_list,omitempty"`

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

	// 验证状态,标识事件的准确性。可选类型如下: Unknown – 未知 True_Positive – 确认 False_Positive – 误报 默认填写Unknown
	VerificationState *DataObjectVerificationState `json:"verification_state,omitempty"`

	// 事件处理状态,可选类型如下: Open – 打开,默认 Block – 阻塞 Closed – 关闭 默认填写Open
	HandleStatus *DataObjectHandleStatus `json:"handle_status,omitempty"`

	// 约束闭环时间:设置风险接受持续时间。单位:小时
	Sla *int32 `json:"sla,omitempty"`

	// 更新时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	UpdateTime *string `json:"update_time,omitempty"`

	// 关闭时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号 Prepartion|Detection and Analysis|Containm,Eradication& Recovery|Post-Incident-Activity
	IpdrrPhase *DataObjectIpdrrPhase `json:"ipdrr_phase,omitempty"`

	// 调试字段
	Simulation *string `json:"simulation,omitempty"`

	// 告警调查员
	Actor *string `json:"actor,omitempty"`

	// 责任人、服务责任人
	Owner *string `json:"owner,omitempty"`

	// 创建人
	Creator *string `json:"creator,omitempty"`

	// 关闭原因: 误检 - False detection 已解决 - Resolved 重复 - Repeated 其他 - Other
	CloseReason *DataObjectCloseReason `json:"close_reason,omitempty"`

	// 关闭评论
	CloseComment *string `json:"close_comment,omitempty"`

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

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

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

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

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

DataObject 告警实体信息

func (DataObject) String added in v0.1.64

func (o DataObject) String() string

type DataObjectCloseReason added in v0.1.64

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

func (DataObjectCloseReason) MarshalJSON added in v0.1.64

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

func (*DataObjectCloseReason) UnmarshalJSON added in v0.1.64

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

func (DataObjectCloseReason) Value added in v0.1.64

func (c DataObjectCloseReason) Value() string

type DataObjectCloseReasonEnum added in v0.1.64

type DataObjectCloseReasonEnum struct {
	FALSE_DETECTION DataObjectCloseReason
	RESOLVED        DataObjectCloseReason
	REPEATED        DataObjectCloseReason
	OTHER           DataObjectCloseReason
}

func GetDataObjectCloseReasonEnum added in v0.1.64

func GetDataObjectCloseReasonEnum() DataObjectCloseReasonEnum

type DataObjectDetail added in v0.1.64

type DataObjectDetail struct {

	// 记录时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CreateTime *string `json:"create_time,omitempty"`

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

	DataclassRef *AlertDetailDataclassRef `json:"dataclass_ref,omitempty"`

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

	// 事件唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

	// 当前项目的id
	ProjectId *string `json:"project_id,omitempty"`

	// 更新时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	UpdateTime *string `json:"update_time,omitempty"`

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

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

func (DataObjectDetail) String added in v0.1.64

func (o DataObjectDetail) String() string

type DataObjectHandleStatus added in v0.1.64

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

func (DataObjectHandleStatus) MarshalJSON added in v0.1.64

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

func (*DataObjectHandleStatus) UnmarshalJSON added in v0.1.64

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

func (DataObjectHandleStatus) Value added in v0.1.64

func (c DataObjectHandleStatus) Value() string

type DataObjectHandleStatusEnum added in v0.1.64

type DataObjectHandleStatusEnum struct {
	OPEN   DataObjectHandleStatus
	BLOCK  DataObjectHandleStatus
	CLOSED DataObjectHandleStatus
}

func GetDataObjectHandleStatusEnum added in v0.1.64

func GetDataObjectHandleStatusEnum() DataObjectHandleStatusEnum

type DataObjectIpdrrPhase added in v0.1.64

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

func (DataObjectIpdrrPhase) MarshalJSON added in v0.1.64

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

func (*DataObjectIpdrrPhase) UnmarshalJSON added in v0.1.64

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

func (DataObjectIpdrrPhase) Value added in v0.1.64

func (c DataObjectIpdrrPhase) Value() string

type DataObjectIpdrrPhaseEnum added in v0.1.64

type DataObjectIpdrrPhaseEnum struct {
	PREPARTION                   DataObjectIpdrrPhase
	DETECTION_AND_ANALYSIS       DataObjectIpdrrPhase
	CONTAINMERADICATION_RECOVERY DataObjectIpdrrPhase
	POST_INCIDENT_ACTIVITY       DataObjectIpdrrPhase
}

func GetDataObjectIpdrrPhaseEnum added in v0.1.64

func GetDataObjectIpdrrPhaseEnum() DataObjectIpdrrPhaseEnum

type DataObjectSeverity added in v0.1.64

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

func (DataObjectSeverity) MarshalJSON added in v0.1.64

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

func (*DataObjectSeverity) UnmarshalJSON added in v0.1.64

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

func (DataObjectSeverity) Value added in v0.1.64

func (c DataObjectSeverity) Value() string

type DataObjectSeverityEnum added in v0.1.64

type DataObjectSeverityEnum struct {
	TIPS   DataObjectSeverity
	LOW    DataObjectSeverity
	MEDIUM DataObjectSeverity
	HIGH   DataObjectSeverity
	FATAL  DataObjectSeverity
}

func GetDataObjectSeverityEnum added in v0.1.64

func GetDataObjectSeverityEnum() DataObjectSeverityEnum

type DataObjectVerificationState added in v0.1.64

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

func (DataObjectVerificationState) MarshalJSON added in v0.1.64

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

func (*DataObjectVerificationState) UnmarshalJSON added in v0.1.64

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

func (DataObjectVerificationState) Value added in v0.1.64

type DataObjectVerificationStateEnum added in v0.1.64

type DataObjectVerificationStateEnum struct {
	UNKNOWN        DataObjectVerificationState
	TRUE_POSITIVE  DataObjectVerificationState
	FALSE_POSITIVE DataObjectVerificationState
}

func GetDataObjectVerificationStateEnum added in v0.1.64

func GetDataObjectVerificationStateEnum() DataObjectVerificationStateEnum

type DataResponse

type DataResponse struct {

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

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

DataResponse indicator batch operation response

func (DataResponse) String

func (o DataResponse) String() string

type DataclassInfoRef

type DataclassInfoRef struct {

	// 数据类ID
	Id *string `json:"id,omitempty"`

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

DataclassInfoRef 数据类信息

func (DataclassInfoRef) String

func (o DataclassInfoRef) String() string

type DataobjectInfo

type DataobjectInfo struct {

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

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

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

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

	// 数据内容
	Content *string `json:"content,omitempty"`
}

DataobjectInfo 数据对象详情

func (DataobjectInfo) String

func (o DataobjectInfo) String() string

type DataobjectSearch

type DataobjectSearch struct {

	// 分页大小
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 排序字段:create_time | update_time
	SortBy *string `json:"sort_by,omitempty"`

	// 排序方式:DESC | ASC
	Order *DataobjectSearchOrder `json:"order,omitempty"`

	// 搜索开始时间,例如:2023-02-20T00:00:00.000Z
	FromDate *string `json:"from_date,omitempty"`

	// 搜索结束时间,例如:2023-02-27T23:59:59.999Z
	ToDate *string `json:"to_date,omitempty"`

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

DataobjectSearch 搜索告警列表条件

func (DataobjectSearch) String

func (o DataobjectSearch) String() string

type DataobjectSearchCondition

type DataobjectSearchCondition struct {

	// 表达式列表
	Conditions *[]DataobjectSearchConditionConditions `json:"conditions,omitempty"`

	// 表达式名称列表
	Logics *[]string `json:"logics,omitempty"`
}

DataobjectSearchCondition 搜索条件表达式

func (DataobjectSearchCondition) String

func (o DataobjectSearchCondition) String() string

type DataobjectSearchConditionConditions added in v0.1.64

type DataobjectSearchConditionConditions struct {

	// 表达式名称
	Name *string `json:"name,omitempty"`

	// 表达式内容列表
	Data *[]string `json:"data,omitempty"`
}

func (DataobjectSearchConditionConditions) String added in v0.1.64

type DataobjectSearchOrder added in v0.1.64

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

func (DataobjectSearchOrder) MarshalJSON added in v0.1.64

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

func (*DataobjectSearchOrder) UnmarshalJSON added in v0.1.64

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

func (DataobjectSearchOrder) Value added in v0.1.64

func (c DataobjectSearchOrder) Value() string

type DataobjectSearchOrderEnum added in v0.1.64

type DataobjectSearchOrderEnum struct {
	DESC DataobjectSearchOrder
	ASC  DataobjectSearchOrder
}

func GetDataobjectSearchOrderEnum added in v0.1.64

func GetDataobjectSearchOrderEnum() DataobjectSearchOrderEnum

type DeleteAlertRequest

type DeleteAlertRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

DeleteAlertRequest Request Object

func (DeleteAlertRequest) String

func (o DeleteAlertRequest) String() string

type DeleteAlertRequestBody added in v0.1.64

type DeleteAlertRequestBody struct {

	// 删除告警的ID列表
	BatchIds *[]string `json:"batch_ids,omitempty"`
}

DeleteAlertRequestBody 删除告警请求body体

func (DeleteAlertRequestBody) String added in v0.1.64

func (o DeleteAlertRequestBody) String() string

type DeleteAlertResponse

type DeleteAlertResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

DeleteAlertResponse Response Object

func (DeleteAlertResponse) String

func (o DeleteAlertResponse) String() string

type DeleteAlertRuleRequest

type DeleteAlertRuleRequest struct {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

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

DeleteAlertRuleRequest Request Object

func (DeleteAlertRuleRequest) String

func (o DeleteAlertRuleRequest) String() string

type DeleteAlertRuleResponse

type DeleteAlertRuleResponse struct {

	// 告警规则 ID。Alert 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:"-"`
}

DeleteAlertRuleResponse Response Object

func (DeleteAlertRuleResponse) String

func (o DeleteAlertRuleResponse) String() string

type DeleteDataobjectRelationsRequest added in v0.1.64

type DeleteDataobjectRelationsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

	// 关联主体dataobject所属数据类,小写复数,如告警为alerts,事件为incidents
	DataclassType string `json:"dataclass_type"`

	// 关联主体dataobject的id
	DataObjectId string `json:"data_object_id"`

	// 被关联的dataobject所属数据类,小写复数,如告警为alerts,事件为incidents
	RelatedDataclassType string `json:"related_dataclass_type"`

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

DeleteDataobjectRelationsRequest Request Object

func (DeleteDataobjectRelationsRequest) String added in v0.1.64

type DeleteDataobjectRelationsResponse added in v0.1.64

type DeleteDataobjectRelationsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

DeleteDataobjectRelationsResponse Response Object

func (DeleteDataobjectRelationsResponse) String added in v0.1.64

type DeleteIncidentRequest

type DeleteIncidentRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

DeleteIncidentRequest Request Object

func (DeleteIncidentRequest) String

func (o DeleteIncidentRequest) String() string

type DeleteIncidentRequestBody added in v0.1.64

type DeleteIncidentRequestBody struct {

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

DeleteIncidentRequestBody 删除事件请求body体

func (DeleteIncidentRequestBody) String added in v0.1.64

func (o DeleteIncidentRequestBody) String() string

type DeleteIncidentResponse

type DeleteIncidentResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

DeleteIncidentResponse Response Object

func (DeleteIncidentResponse) String

func (o DeleteIncidentResponse) String() string

type DeleteIncidentResponseBodyData added in v0.1.64

type DeleteIncidentResponseBodyData struct {

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

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

DeleteIncidentResponseBodyData 批量删除事件返回对象

func (DeleteIncidentResponseBodyData) String added in v0.1.64

type DeleteIndicatorRequest

type DeleteIndicatorRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

DeleteIndicatorRequest Request Object

func (DeleteIndicatorRequest) String

func (o DeleteIndicatorRequest) String() string

type DeleteIndicatorRequestBody

type DeleteIndicatorRequestBody struct {

	// 指标ID列表
	BatchIds *[]string `json:"batch_ids,omitempty"`
}

DeleteIndicatorRequestBody 删除指标请求参数

func (DeleteIndicatorRequestBody) String

type DeleteIndicatorResponse

type DeleteIndicatorResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

DeleteIndicatorResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

	// 剧本动作ID
	ActionId string `json:"action_id"`
}

DeletePlaybookActionRequest Request Object

func (DeletePlaybookActionRequest) String

type DeletePlaybookActionResponse

type DeletePlaybookActionResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 响应消息
	Message *string `json:"message,omitempty"`

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

DeletePlaybookActionResponse Response Object

func (DeletePlaybookActionResponse) String

type DeletePlaybookRequest

type DeletePlaybookRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

DeletePlaybookRequest Request Object

func (DeletePlaybookRequest) String

func (o DeletePlaybookRequest) String() string

type DeletePlaybookResponse

type DeletePlaybookResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

DeletePlaybookResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

	// 规则ID
	RuleId string `json:"rule_id"`
}

DeletePlaybookRuleRequest Request Object

func (DeletePlaybookRuleRequest) String

func (o DeletePlaybookRuleRequest) String() string

type DeletePlaybookRuleResponse

type DeletePlaybookRuleResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 响应消息
	Message *string `json:"message,omitempty"`

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

DeletePlaybookRuleResponse Response Object

func (DeletePlaybookRuleResponse) String

type DeletePlaybookVersionRequest

type DeletePlaybookVersionRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`
}

DeletePlaybookVersionRequest Request Object

func (DeletePlaybookVersionRequest) String

type DeletePlaybookVersionResponse

type DeletePlaybookVersionResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 响应消息
	Message *string `json:"message,omitempty"`

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

DeletePlaybookVersionResponse Response Object

func (DeletePlaybookVersionResponse) String

type DisableAlertRuleRequest

type DisableAlertRuleRequest struct {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

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

DisableAlertRuleRequest Request Object

func (DisableAlertRuleRequest) String

func (o DisableAlertRuleRequest) String() string

type DisableAlertRuleResponse

type DisableAlertRuleResponse struct {

	// 告警规则 ID。Alert 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:"-"`
}

DisableAlertRuleResponse 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 {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

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

EnableAlertRuleRequest Request Object

func (EnableAlertRuleRequest) String

func (o EnableAlertRuleRequest) String() string

type EnableAlertRuleResponse

type EnableAlertRuleResponse struct {

	// 告警规则 ID。Alert 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:"-"`
}

EnableAlertRuleResponse 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 FieldResponseBody added in v0.1.68

type FieldResponseBody struct {

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

	// 订阅包版本
	CloudPackVersion *string `json:"cloud_pack_version,omitempty"`

	// 关联业务id
	BusinessId *string `json:"business_id,omitempty"`

	// 关联业务
	BusinessType *string `json:"business_type,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 字段业务编码
	BusinessCode *string `json:"business_code,omitempty"`

	// 字段key
	FieldKey *string `json:"field_key,omitempty"`

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

	// 字段描述
	Description *string `json:"description,omitempty"`

	// 默认值
	DefaultValue *string `json:"default_value,omitempty"`

	// 显示类型
	DisplayType *string `json:"display_type,omitempty"`

	// 字段类型,如shorttext,radio,grid等
	FieldType *string `json:"field_type,omitempty"`

	// 附加json
	ExtraJson *string `json:"extra_json,omitempty"`

	// 工具提示
	FieldTooltip *string `json:"field_tooltip,omitempty"`

	// 输入输出类型
	IuType *string `json:"iu_type,omitempty"`

	// 使用业务
	UsedBy *string `json:"used_by,omitempty"`

	// json模式
	JsonSchema *string `json:"json_schema,omitempty"`

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

	// 大小写敏感,true敏感,false不敏感
	CaseSensitive *bool `json:"case_sensitive,omitempty"`

	// 只读模式,true只读,false非只读
	ReadOnly *bool `json:"read_only,omitempty"`

	// 是否必填,true必填,false非必填
	Required *bool `json:"required,omitempty"`

	// 可搜索,true可搜索,false非可搜索
	Searchable *bool `json:"searchable,omitempty"`

	// 可见,true可见,false非可见
	Visible *bool `json:"visible,omitempty"`

	// 可维护,true可维护,false非可维护
	Maintainable *bool `json:"maintainable,omitempty"`

	// 可编辑,true可编辑,false非可编辑
	Editable *bool `json:"editable,omitempty"`

	// 可创建,true可创建,false非可创建
	Creatable *bool `json:"creatable,omitempty"`

	// 是否展示在分类映射外的其他地方
	Mapping *bool `json:"mapping,omitempty"`

	// 目标api
	TargetApi *string `json:"target_api,omitempty"`

	// Creator id value
	CreatorId *string `json:"creator_id,omitempty"`

	// Creator name value
	CreatorName *string `json:"creator_name,omitempty"`

	// Modifier id value
	ModifierId *string `json:"modifier_id,omitempty"`

	// Modifier name value
	ModifierName *string `json:"modifier_name,omitempty"`

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

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

FieldResponseBody 字段详情

func (FieldResponseBody) String added in v0.1.68

func (o FieldResponseBody) String() string

type Incident

type Incident struct {

	// 事件对象的版本,该字段的值必须为华为云SSA服务确定的官方发布版本之一
	Version *string `json:"version,omitempty"`

	// 事件唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

	// 数据投递后,被委托用户的domain_id
	DomainId *string `json:"domain_id,omitempty"`

	// 数据投递后,被委托用户的region_id
	RegionId *string `json:"region_id,omitempty"`

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

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

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

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

	// 首次发现时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	FirstObservedTime *string `json:"first_observed_time,omitempty"`

	// 最近发现时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	LastObservedTime *string `json:"last_observed_time,omitempty"`

	// 记录时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CreateTime *string `json:"create_time,omitempty"`

	// 接收时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	ArriveTime *string `json:"arrive_time,omitempty"`

	// 事件标题
	Title *string `json:"title,omitempty"`

	// 事件描述信息
	Description *string `json:"description,omitempty"`

	// 事件URL链接,指向数据源产品中有关当前事件说明的页面
	SourceUrl *string `json:"source_url,omitempty"`

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

	// 事件的置信度。置信度的定义旨在说明识别的行为或问题的可能性。 取值范围:0-100,0表示置信度为0%,100表示置信度为100%
	Confidence *int32 `json:"confidence,omitempty"`

	// 严重性等级,取值范围:Tips | Low | Medium | High | Fatal 说明: 0: Tips – 未发现任何问题。 1: Low – 无需针对问题执行任何操作。 2: Medium – 问题需要处理,但不紧急。 3: High – 问题必须优先处理。 4: Fatal – 问题必须立即处理,以防止产生进一步的损害
	Severity *IncidentSeverity `json:"severity,omitempty"`

	// 关键性,是指事件涉及的资源的重要性级别。 取值范围:0-100,0表示资源不关键,100表示最关键资源
	Criticality *int32 `json:"criticality,omitempty"`

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

	// 网络信息
	NetworkList *[]AlertNetworkList `json:"network_list,omitempty"`

	// 受影响资源
	ResourceList *[]AlertResourceList `json:"resource_list,omitempty"`

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

	// 验证状态,标识事件的准确性。可选类型如下: Unknown – 未知 True_Positive – 确认 False_Positive – 误报 默认填写Unknown
	VerificationState *IncidentVerificationState `json:"verification_state,omitempty"`

	// 事件处理状态,可选类型如下: Open – 打开,默认 Block – 阻塞 Closed – 关闭 默认填写Open
	HandleStatus *IncidentHandleStatus `json:"handle_status,omitempty"`

	// 约束闭环时间:设置风险接受持续时间。单位:小时
	Sla *int32 `json:"sla,omitempty"`

	// 更新时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	UpdateTime *string `json:"update_time,omitempty"`

	// 关闭时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CloseTime *string `json:"close_time,omitempty"`

	// 周期/处置阶段编号 Prepartion|Detection and Analysis|Containm,Eradication& Recovery|Post-Incident-Activity
	IpdrrPhase *IncidentIpdrrPhase `json:"ipdrr_phase,omitempty"`

	// 调试字段
	Simulation *string `json:"simulation,omitempty"`

	// 事件调查员
	Actor *string `json:"actor,omitempty"`

	// 责任人、服务责任人
	Owner *string `json:"owner,omitempty"`

	// 创建人
	Creator *string `json:"creator,omitempty"`

	// 关闭原因: 误检 - False detection 已解决 - Resolved 重复 - Repeated 其他 - Other
	CloseReason *IncidentCloseReason `json:"close_reason,omitempty"`

	// 关闭评论
	CloseComment *string `json:"close_comment,omitempty"`

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

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

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

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

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

	// 事件管理列表的布局字段
	SystemAlertTable *interface{} `json:"system_alert_table,omitempty"`
}

Incident 事件实体信息

func (Incident) String

func (o Incident) String() string

type IncidentCloseReason added in v0.1.64

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

func (IncidentCloseReason) MarshalJSON added in v0.1.64

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

func (*IncidentCloseReason) UnmarshalJSON added in v0.1.64

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

func (IncidentCloseReason) Value added in v0.1.64

func (c IncidentCloseReason) Value() string

type IncidentCloseReasonEnum added in v0.1.64

type IncidentCloseReasonEnum struct {
	FALSE_DETECTION IncidentCloseReason
	RESOLVED        IncidentCloseReason
	REPEATED        IncidentCloseReason
	OTHER           IncidentCloseReason
}

func GetIncidentCloseReasonEnum added in v0.1.64

func GetIncidentCloseReasonEnum() IncidentCloseReasonEnum

type IncidentDetail

type IncidentDetail struct {

	// 记录时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为事件发生时区,无法解析时区的时间,默认时区填东八区
	CreateTime *string `json:"create_time,omitempty"`

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

	DataclassRef *AlertDetailDataclassRef `json:"dataclass_ref,omitempty"`

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

	// 事件唯一标识,UUID格式,最大36个字符
	Id *string `json:"id,omitempty"`

	// 当前项目的id
	ProjectId *string `json:"project_id,omitempty"`

	// 更新时间,格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。时区信息为告警发生时区,无法解析时区的时间,默认时区填东八区
	UpdateTime *string `json:"update_time,omitempty"`

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

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

func (IncidentDetail) String

func (o IncidentDetail) String() string

type IncidentEnvironment

type IncidentEnvironment struct {

	// 环境供应商:HWCP/HWC/AWS/Azure/GCP
	VendorType *string `json:"vendor_type,omitempty"`

	// 租户id
	DomainId *string `json:"domain_id,omitempty"`

	// 区域id,全局服务global
	RegionId *string `json:"region_id,omitempty"`

	// 数据投递前的源工作空间id,在源空间下值为null,投递后为被委托用户的id
	CrossWorkspaceId *string `json:"cross_workspace_id,omitempty"`

	// 项目id, 全局服务默认null
	ProjectId *string `json:"project_id,omitempty"`
}

IncidentEnvironment 事件产生的环境坐标信息

func (IncidentEnvironment) String

func (o IncidentEnvironment) String() string

type IncidentHandleStatus added in v0.1.64

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

func (IncidentHandleStatus) MarshalJSON added in v0.1.64

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

func (*IncidentHandleStatus) UnmarshalJSON added in v0.1.64

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

func (IncidentHandleStatus) Value added in v0.1.64

func (c IncidentHandleStatus) Value() string

type IncidentHandleStatusEnum added in v0.1.64

type IncidentHandleStatusEnum struct {
	OPEN   IncidentHandleStatus
	BLOCK  IncidentHandleStatus
	CLOSED IncidentHandleStatus
}

func GetIncidentHandleStatusEnum added in v0.1.64

func GetIncidentHandleStatusEnum() IncidentHandleStatusEnum

type IncidentIncidentType added in v0.1.64

type IncidentIncidentType struct {

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

	// 事件类型
	IncidentType *string `json:"incident_type,omitempty"`
}

IncidentIncidentType 事件分类,详细定义参考《告警事件类型定义》

func (IncidentIncidentType) String added in v0.1.64

func (o IncidentIncidentType) String() string

type IncidentIpdrrPhase added in v0.1.64

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

func (IncidentIpdrrPhase) MarshalJSON added in v0.1.64

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

func (*IncidentIpdrrPhase) UnmarshalJSON added in v0.1.64

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

func (IncidentIpdrrPhase) Value added in v0.1.64

func (c IncidentIpdrrPhase) Value() string

type IncidentIpdrrPhaseEnum added in v0.1.64

type IncidentIpdrrPhaseEnum struct {
	PREPARTION                   IncidentIpdrrPhase
	DETECTION_AND_ANALYSIS       IncidentIpdrrPhase
	CONTAINMERADICATION_RECOVERY IncidentIpdrrPhase
	POST_INCIDENT_ACTIVITY       IncidentIpdrrPhase
}

func GetIncidentIpdrrPhaseEnum added in v0.1.64

func GetIncidentIpdrrPhaseEnum() IncidentIpdrrPhaseEnum

type IncidentSeverity added in v0.1.64

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

func (IncidentSeverity) MarshalJSON added in v0.1.64

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

func (*IncidentSeverity) UnmarshalJSON added in v0.1.64

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

func (IncidentSeverity) Value added in v0.1.64

func (c IncidentSeverity) Value() string

type IncidentSeverityEnum added in v0.1.64

type IncidentSeverityEnum struct {
	TIPS   IncidentSeverity
	LOW    IncidentSeverity
	MEDIUM IncidentSeverity
	HIGH   IncidentSeverity
	FATAL  IncidentSeverity
}

func GetIncidentSeverityEnum added in v0.1.64

func GetIncidentSeverityEnum() IncidentSeverityEnum

type IncidentVerificationState added in v0.1.64

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

func (IncidentVerificationState) MarshalJSON added in v0.1.64

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

func (*IncidentVerificationState) UnmarshalJSON added in v0.1.64

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

func (IncidentVerificationState) Value added in v0.1.64

type IncidentVerificationStateEnum added in v0.1.64

type IncidentVerificationStateEnum struct {
	UNKNOWN        IncidentVerificationState
	TRUE_POSITIVE  IncidentVerificationState
	FALSE_POSITIVE IncidentVerificationState
}

func GetIncidentVerificationStateEnum added in v0.1.64

func GetIncidentVerificationStateEnum() IncidentVerificationStateEnum

type IndicatorBatchOperateResponse

type IndicatorBatchOperateResponse struct {

	// 成功ID列表
	SuccessIds []string `json:"success_ids"`

	// 失败ID列表
	ErrorIds *[]string `json:"error_ids,omitempty"`
}

IndicatorBatchOperateResponse 情报响应参数

func (IndicatorBatchOperateResponse) String

type IndicatorCreateRequest

type IndicatorCreateRequest struct {
	DataObject *CreateIndicatorDetail `json:"data_object"`
}

IndicatorCreateRequest 创建指标请求参数

func (IndicatorCreateRequest) String

func (o IndicatorCreateRequest) String() string

type IndicatorDataObjectDetail

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

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

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

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

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

	// 首次发生时间
	FirstReportTime *string `json:"first_report_time,omitempty"`

	// 是否删除
	IsDeleted *bool `json:"is_deleted,omitempty"`

	// 最近发生时间
	LastReportTime *string `json:"last_report_time,omitempty"`

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

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

	// 情报ID
	Id *string `json:"id,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 是否作废
	Revoked *bool `json:"revoked,omitempty"`

	// 状态, Open--打开,Closed--关闭, Revoked--作废
	Status *string `json:"status,omitempty"`

	// 威胁度, Black--黑,White--白,Gray--灰
	Verdict *string `json:"verdict,omitempty"`

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

	// 置信度,取值范围是80-100
	Confidence *int32 `json:"confidence,omitempty"`
}

IndicatorDataObjectDetail 情报详情

func (IndicatorDataObjectDetail) String

func (o IndicatorDataObjectDetail) String() string

type IndicatorDataObjectDetailDataSource added in v0.1.64

type IndicatorDataObjectDetailDataSource struct {

	// 数据源类型,取值范围如下:1 - 华为产品 2 - 第三方产品 3 - 租户私有产品
	SourceType *int32 `json:"source_type,omitempty"`

	// 租户ID
	DomainId *string `json:"domain_id,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`
}

IndicatorDataObjectDetailDataSource 数据源信息

func (IndicatorDataObjectDetailDataSource) String added in v0.1.64

type IndicatorDataObjectDetailEnvironment added in v0.1.64

type IndicatorDataObjectDetailEnvironment struct {

	// 环境供应商(如HWC,AWS,Azure等)
	VendorType *string `json:"vendor_type,omitempty"`

	// 租户ID
	DomainId *string `json:"domain_id,omitempty"`

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`

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

IndicatorDataObjectDetailEnvironment 环境信息

func (IndicatorDataObjectDetailEnvironment) String added in v0.1.64

type IndicatorDataObjectDetailIndicatorType added in v0.1.64

type IndicatorDataObjectDetailIndicatorType struct {

	// 情报类型
	IndicatorType *string `json:"indicator_type,omitempty"`

	// 情报类型ID
	Id *string `json:"id,omitempty"`

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

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

IndicatorDataObjectDetailIndicatorType 情报类型对象

func (IndicatorDataObjectDetailIndicatorType) String added in v0.1.64

type IndicatorDetail

type IndicatorDetail struct {

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

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

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

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

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	DataclassRef *DataClassRefPojo `json:"dataclass_ref,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`
}

IndicatorDetail 情报详情信息

func (IndicatorDetail) String

func (o IndicatorDetail) String() string

type IndicatorListSearchRequest

type IndicatorListSearchRequest struct {

	// 指标ID列表
	Ids *[]string `json:"ids,omitempty"`

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

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

	Condition *DataobjectSearchCondition `json:"condition"`

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

	// request limit size
	Limit int32 `json:"limit"`

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

	// 查询起始时间,例如:2024-01-20T00:00:00.000Z+0800
	FromDate *string `json:"from_date,omitempty"`

	// 查询截止时间,例如:2024-01-26T23:59:59.999Z+0800
	ToDate *string `json:"to_date,omitempty"`
}

IndicatorListSearchRequest indicator list query request

func (IndicatorListSearchRequest) String

type KeyIndex added in v0.1.68

type KeyIndex struct {

	// 字段类型;text 全文索引字段、keyword 结构化字段、long Long、integer Integer、double Double、float Float、date 时间字段
	Type *KeyIndexType `json:"type,omitempty"`

	// 是否包含中文
	IsChineseExist *bool `json:"is_chinese_exist,omitempty"`

	// 嵌套结构
	Properties map[string]KeyIndex `json:"properties,omitempty"`
}

func (KeyIndex) String added in v0.1.68

func (o KeyIndex) String() string

type KeyIndexType added in v0.1.68

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

func (KeyIndexType) MarshalJSON added in v0.1.68

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

func (*KeyIndexType) UnmarshalJSON added in v0.1.68

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

func (KeyIndexType) Value added in v0.1.68

func (c KeyIndexType) Value() string

type KeyIndexTypeEnum added in v0.1.68

type KeyIndexTypeEnum struct {
	TEXT    KeyIndexType
	KEYWORD KeyIndexType
	LONG    KeyIndexType
	INTEGER KeyIndexType
	DOUBLE  KeyIndexType
	FLOAT   KeyIndexType
	DATE    KeyIndexType
}

func GetKeyIndexTypeEnum added in v0.1.68

func GetKeyIndexTypeEnum() KeyIndexTypeEnum

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:"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 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 *[]ListAlertRspNetworkList `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 *string `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
	Creator *string `json:"creator,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 *[]ListAlertRspProcess `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"`
}

ListAlertRsp 告警详情

func (ListAlertRsp) String

func (o ListAlertRsp) String() string

type ListAlertRspNetworkList added in v0.1.64

type ListAlertRspNetworkList 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 *int32 `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 (ListAlertRspNetworkList) String added in v0.1.64

func (o ListAlertRspNetworkList) String() string

type ListAlertRspProcess added in v0.1.64

type ListAlertRspProcess struct {

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

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

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

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

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

func (ListAlertRspProcess) String added in v0.1.64

func (o ListAlertRspProcess) String() string

type ListAlertRuleMetricsRequest

type ListAlertRuleMetricsRequest struct {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`
}

ListAlertRuleMetricsRequest Request Object

func (ListAlertRuleMetricsRequest) String

type ListAlertRuleMetricsResponse

type ListAlertRuleMetricsResponse struct {

	// 指标类型,分组数量。Metric category. GROUP_COUNT.
	Category *ListAlertRuleMetricsResponseCategory `json:"category,omitempty"`

	// 指标值。Metric value.
	Metric map[string]float32 `json:"metric,omitempty"`

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

ListAlertRuleMetricsResponse Response Object

func (ListAlertRuleMetricsResponse) String

type ListAlertRuleMetricsResponseCategory added in v0.1.64

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

func (ListAlertRuleMetricsResponseCategory) MarshalJSON added in v0.1.64

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

func (*ListAlertRuleMetricsResponseCategory) UnmarshalJSON added in v0.1.64

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

func (ListAlertRuleMetricsResponseCategory) Value added in v0.1.64

type ListAlertRuleMetricsResponseCategoryEnum added in v0.1.64

type ListAlertRuleMetricsResponseCategoryEnum struct {
	GROUP_COUNT ListAlertRuleMetricsResponseCategory
}

func GetListAlertRuleMetricsResponseCategoryEnum added in v0.1.64

func GetListAlertRuleMetricsResponseCategoryEnum() ListAlertRuleMetricsResponseCategoryEnum

type ListAlertRuleTemplatesRequest

type ListAlertRuleTemplatesRequest struct {

	// 工作空间 ID。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 direction, asc, desc。
	SortDir *ListAlertRuleTemplatesRequestSortDir `json:"sort_dir,omitempty"`

	// 严重程度,提示、低危、中危、高危、致命。Severity. TIPS, LOW, MEDIUM, HIGH, FATAL
	Severity *[]ListAlertRuleTemplatesRequestSeverity `json:"severity,omitempty"`
}

ListAlertRuleTemplatesRequest 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"`

	// 告警规则模板。Alert rule templates.
	Records *[]AlertRuleTemplate `json:"records,omitempty"`

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

ListAlertRuleTemplatesResponse Response Object

func (ListAlertRuleTemplatesResponse) String

type ListAlertRulesRequest

type ListAlertRulesRequest struct {

	// 工作空间 ID。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 direction, asc, desc。
	SortDir *ListAlertRulesRequestSortDir `json:"sort_dir,omitempty"`

	// 数据管道 ID。Pipe ID.
	PipeId *string `json:"pipe_id,omitempty"`

	// 告警规则名称。Alert rule name.
	RuleName *string `json:"rule_name,omitempty"`

	// 告警规则 ID。Alert 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"`
}

ListAlertRulesRequest 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"`

	// 告警模型。Alert rules.
	Records *[]AlertRule `json:"records,omitempty"`

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

ListAlertRulesResponse Response Object

func (ListAlertRulesResponse) String

func (o ListAlertRulesResponse) String() string

type ListAlertsRequest

type ListAlertsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

ListAlertsRequest Request Object

func (ListAlertsRequest) String

func (o ListAlertsRequest) String() string

type ListAlertsResponse

type ListAlertsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	// 告警总数
	Total *int32 `json:"total,omitempty"`

	// 分页大小
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 是否成功
	Success *bool `json:"success,omitempty"`

	// 告警列表
	Data *[]ListAlertDetail `json:"data,omitempty"`

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

ListAlertsResponse Response Object

func (ListAlertsResponse) String

func (o ListAlertsResponse) String() string

type ListDataclassFieldsRequest added in v0.1.68

type ListDataclassFieldsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

	// 偏移量
	Offset float32 `json:"offset,omitempty"`

	// 数据量
	Limit float32 `json:"limit,omitempty"`

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

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

	// 数据类id
	DataclassId string `json:"dataclass_id"`

	// 字段分类
	FieldCategory *string `json:"field_category,omitempty"`

	// 是否展示在分类映射外的其他地方
	Mapping *bool `json:"mapping,omitempty"`
}

ListDataclassFieldsRequest Request Object

func (ListDataclassFieldsRequest) String added in v0.1.68

type ListDataclassFieldsResponse added in v0.1.68

type ListDataclassFieldsResponse struct {

	// list of informations of field
	FieldDetails *[]FieldResponseBody `json:"field_details,omitempty"`

	// 数据总量
	Total float32 `json:"total,omitempty"`

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

ListDataclassFieldsResponse Response Object

func (ListDataclassFieldsResponse) String added in v0.1.68

type ListDataclassRequest added in v0.1.68

type ListDataclassRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

	// 偏移量
	Offset float32 `json:"offset,omitempty"`

	// 数据量
	Limit float32 `json:"limit,omitempty"`

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

	// 业务编码
	BusinessCode *string `json:"business_code,omitempty"`

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

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

ListDataclassRequest Request Object

func (ListDataclassRequest) String added in v0.1.68

func (o ListDataclassRequest) String() string

type ListDataclassResponse added in v0.1.68

type ListDataclassResponse struct {

	// 数据类详情
	DataclassDetails *[]DataClassResponseBody `json:"dataclass_details,omitempty"`

	// 数据总量
	Total float32 `json:"total,omitempty"`

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

ListDataclassResponse Response Object

func (ListDataclassResponse) String added in v0.1.68

func (o ListDataclassResponse) String() string

type ListDataobjectRelationsRequest added in v0.1.64

type ListDataobjectRelationsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

	// 关联主体dataobject所属数据类,小写复数,如告警为alerts,事件为incidents
	DataclassType string `json:"dataclass_type"`

	// 关联主体dataobject的id
	DataObjectId string `json:"data_object_id"`

	// 被关联的dataobject所属数据类,小写复数,如告警为alerts,事件为incidents
	RelatedDataclassType string `json:"related_dataclass_type"`

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

ListDataobjectRelationsRequest Request Object

func (ListDataobjectRelationsRequest) String added in v0.1.64

type ListDataobjectRelationsResponse added in v0.1.64

type ListDataobjectRelationsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	// 告警总数
	Total *int32 `json:"total,omitempty"`

	// 分页大小
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 是否成功
	Success *bool `json:"success,omitempty"`

	// 告警列表
	Data *[]DataObjectDetail `json:"data,omitempty"`

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

ListDataobjectRelationsResponse Response Object

func (ListDataobjectRelationsResponse) String added in v0.1.64

type ListIncidentsRequest

type ListIncidentsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

ListIncidentsRequest Request Object

func (ListIncidentsRequest) String

func (o ListIncidentsRequest) String() string

type ListIncidentsResponse

type ListIncidentsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	// 事件总数
	Total *int32 `json:"total,omitempty"`

	// 分页大小
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 是否成功
	Success *bool `json:"success,omitempty"`

	// 事件列表
	Data *[]IncidentDetail `json:"data,omitempty"`

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

ListIncidentsResponse 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"`

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

ListIndicatorsRequest Request Object

func (ListIndicatorsRequest) String

func (o ListIndicatorsRequest) String() string

type ListIndicatorsResponse

type ListIndicatorsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 指标列表数据
	Data *[]IndicatorDetail `json:"data,omitempty"`

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

ListIndicatorsResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

	// 分页查询参数,用于指定一次查询最多的结果数,从1开始
	Limit int32 `json:"limit"`

	// 分页查询参数。用于指定查询结果的起始位置,从0开始
	Offset int32 `json:"offset"`
}

ListPlaybookActionsRequest Request Object

func (ListPlaybookActionsRequest) String

type ListPlaybookActionsResponse

type ListPlaybookActionsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 分页大小
	Size *int32 `json:"size,omitempty"`

	// 当前页数
	Page *int32 `json:"page,omitempty"`

	// 剧本动作列表信息
	Data *[]ActionInfo `json:"data,omitempty"`

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

ListPlaybookActionsResponse Response Object

func (ListPlaybookActionsResponse) String

type ListPlaybookApprovesRequest

type ListPlaybookApprovesRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 审核类型。(PLAYBOOK-剧本, AOP_WORKFLOW--流程)
	ApproveType *string `json:"approve_type,omitempty"`
}

ListPlaybookApprovesRequest Request Object

func (ListPlaybookApprovesRequest) String

type ListPlaybookApprovesResponse

type ListPlaybookApprovesResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 响应消息
	Message *string `json:"message,omitempty"`

	// 剧本审核详情
	Data *[]ApproveOpinionDetail `json:"data,omitempty"`

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

ListPlaybookApprovesResponse Response Object

func (ListPlaybookApprovesResponse) String

type ListPlaybookAuditLogsRequest

type ListPlaybookAuditLogsRequest struct {

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

	// 工作空间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 *ListPlaybookAuditLogsRequestSortDir `json:"sort_dir,omitempty"`

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

ListPlaybookAuditLogsRequest 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 {

	// 总条数
	Count *int32 `json:"count,omitempty"`

	// 审计日志列表信息
	AuditLogs *[]AuditLogInfo `json:"audit_logs,omitempty"`

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

ListPlaybookAuditLogsResponse Response Object

func (ListPlaybookAuditLogsResponse) String

type ListPlaybookInstancesRequest

type ListPlaybookInstancesRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本实例状态. (RUNNING--运行中、FINISHED--成功、FAILED--失败、RETRYING--重试中、TERMINATING--终止中、TERMINATED--已终止)
	Status *string `json:"status,omitempty"`

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

	// 剧本名称
	PlaybookName *string `json:"playbook_name,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 数据对象名称
	DataobjectName *string `json:"dataobject_name,omitempty"`

	// 触发类型. TIMER--定时触发, EVENT--事件触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 查询起始时间
	FromDate *string `json:"from_date,omitempty"`

	// 查询结束时间
	ToDate *string `json:"to_date,omitempty"`

	// 分页查询参数,用于指定一次查询最多的结果数,从1开始
	Limit int32 `json:"limit"`

	// 分页查询参数。用于指定查询结果的起始位置,从0开始
	Offset int32 `json:"offset"`
}

ListPlaybookInstancesRequest Request Object

func (ListPlaybookInstancesRequest) String

type ListPlaybookInstancesResponse

type ListPlaybookInstancesResponse struct {

	// 总数
	Count *int32 `json:"count,omitempty"`

	// 剧本实例列表信息
	Instances *[]PlaybookInstanceInfo `json:"instances,omitempty"`

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

ListPlaybookInstancesResponse Response Object

func (ListPlaybookInstancesResponse) String

type ListPlaybookVersionsRequest

type ListPlaybookVersionsRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本ID
	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"`

	// 分页查询参数。用于指定查询结果的起始位置,从0开始
	Offset *int32 `json:"offset,omitempty"`

	// 分页查询参数,用于指定一次查询最多的结果数,从1开始
	Limit *int32 `json:"limit,omitempty"`
}

ListPlaybookVersionsRequest Request Object

func (ListPlaybookVersionsRequest) String

type ListPlaybookVersionsResponse

type ListPlaybookVersionsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	// 分页查询数据大小
	Size *int32 `json:"size,omitempty"`

	// 当前页码
	Page *int32 `json:"page,omitempty"`

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 剧本版本列表信息
	Data *[]PlaybookVersionListEntity `json:"data,omitempty"`

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

ListPlaybookVersionsResponse Response Object

func (ListPlaybookVersionsResponse) String

type ListPlaybooksRequest

type ListPlaybooksRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 搜索关键字
	SearchTxt *string `json:"search_txt,omitempty"`

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

	// 分页查询参数。用于指定查询结果的起始位置,从0开始
	Offset int32 `json:"offset"`

	// 分页查询参数,用于指定一次查询最多的结果数,从1开始
	Limit int32 `json:"limit"`

	// 剧本描述
	Description *string `json:"description,omitempty"`

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

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

ListPlaybooksRequest Request Object

func (ListPlaybooksRequest) String

func (o ListPlaybooksRequest) String() string

type ListPlaybooksResponse

type ListPlaybooksResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 响应消息信息
	Message *string `json:"message,omitempty"`

	// 总条数
	Total *int32 `json:"total,omitempty"`

	// 分页查询数据大小
	Size *int32 `json:"size,omitempty"`

	// 当前页码
	Page *int32 `json:"page,omitempty"`

	// 剧本列表信息
	Data *[]PlaybookInfo `json:"data,omitempty"`

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

ListPlaybooksResponse Response Object

func (ListPlaybooksResponse) String

func (o ListPlaybooksResponse) String() string

type ListWorkflowsRequest added in v0.1.68

type ListWorkflowsRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

	// 偏移量
	Offset float32 `json:"offset,omitempty"`

	// 数据量
	Limit float32 `json:"limit,omitempty"`

	// 排序顺序,asc:升序,desc:降序
	Order *ListWorkflowsRequestOrder `json:"order,omitempty"`

	// 排序字段,create_time:创建时间,category:类型分类名称
	Sortby *ListWorkflowsRequestSortby `json:"sortby,omitempty"`

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

	// 最新版本号
	LastVersion *bool `json:"last_version,omitempty"`

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

	// 流程描述
	Description *string `json:"description,omitempty"`

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

	// 数据类名称
	DataclassName *string `json:"dataclass_name,omitempty"`

	// 流程类型
	AopType *string `json:"aop_type,omitempty"`
}

ListWorkflowsRequest Request Object

func (ListWorkflowsRequest) String added in v0.1.68

func (o ListWorkflowsRequest) String() string

type ListWorkflowsRequestOrder added in v0.1.68

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

func (ListWorkflowsRequestOrder) MarshalJSON added in v0.1.68

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

func (*ListWorkflowsRequestOrder) UnmarshalJSON added in v0.1.68

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

func (ListWorkflowsRequestOrder) Value added in v0.1.68

type ListWorkflowsRequestOrderEnum added in v0.1.68

type ListWorkflowsRequestOrderEnum struct {
	ASC  ListWorkflowsRequestOrder
	DESC ListWorkflowsRequestOrder
}

func GetListWorkflowsRequestOrderEnum added in v0.1.68

func GetListWorkflowsRequestOrderEnum() ListWorkflowsRequestOrderEnum

type ListWorkflowsRequestSortby added in v0.1.68

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

func (ListWorkflowsRequestSortby) MarshalJSON added in v0.1.68

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

func (*ListWorkflowsRequestSortby) UnmarshalJSON added in v0.1.68

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

func (ListWorkflowsRequestSortby) Value added in v0.1.68

type ListWorkflowsRequestSortbyEnum added in v0.1.68

type ListWorkflowsRequestSortbyEnum struct {
	CATEGORY    ListWorkflowsRequestSortby
	CREATE_TIME ListWorkflowsRequestSortby
}

func GetListWorkflowsRequestSortbyEnum added in v0.1.68

func GetListWorkflowsRequestSortbyEnum() ListWorkflowsRequestSortbyEnum

type ListWorkflowsResponse added in v0.1.68

type ListWorkflowsResponse struct {

	// 返回码
	Code *string `json:"code,omitempty"`

	// 数据总条数
	Total *int32 `json:"total,omitempty"`

	// 当前页大小
	Offset *int32 `json:"offset,omitempty"`

	// 当前页码
	Limit *int32 `json:"limit,omitempty"`

	// 请求ID
	Message *string `json:"message,omitempty"`

	// 是否成功
	Success *bool `json:"success,omitempty"`

	// 流程信息列表
	Data *[]AopWorkflowInfo `json:"data,omitempty"`

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

ListWorkflowsResponse Response Object

func (ListWorkflowsResponse) String added in v0.1.68

func (o ListWorkflowsResponse) String() string

type ModifyActionInfo

type ModifyActionInfo struct {

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

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

	// 类型,默认AOP_WORKFLOW.
	ActionType *string `json:"action_type,omitempty"`

	// 剧本动作ID
	ActionId *string `json:"action_id,omitempty"`

	// 排序方式
	SortOrder *string `json:"sort_order,omitempty"`
}

ModifyActionInfo Action info

func (ModifyActionInfo) String

func (o ModifyActionInfo) String() string

type ModifyPlaybookInfo

type ModifyPlaybookInfo struct {

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

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

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

	// 启用的剧本版本ID
	ActiveVersionId *string `json:"active_version_id,omitempty"`
}

ModifyPlaybookInfo Information of playbook

func (ModifyPlaybookInfo) String

func (o ModifyPlaybookInfo) String() string

type ModifyPlaybookVersionInfo

type ModifyPlaybookVersionInfo struct {

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

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

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

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

	// 是否启用触发条件过滤器
	RuleEnable *bool `json:"rule_enable,omitempty"`

	// 是否激活。(false:未激活, true:已激活)
	Enabled *bool `json:"enabled,omitempty"`

	// 状态(APPROVING:审核中,EDITING-编辑中,UNPASSED-审核未通过,PUBLISHED-已发布)
	Status *string `json:"status,omitempty"`

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

	// 触发方式. EVENT--事件触发, TIMER--定时触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 数据对象是否创建时触发剧本
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// 数据对象是否更新时触发剧本
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// 数据对象是否删除时触发剧本
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// 执行策略. 目前仅支持异步并发执行,对应值为ASYNC
	ActionStrategy *string `json:"action_strategy,omitempty"`
}

ModifyPlaybookVersionInfo 剧本版本信息

func (ModifyPlaybookVersionInfo) String

func (o ModifyPlaybookVersionInfo) String() string

type ModifyRuleInfo

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

ModifyRuleInfo Information of rule

func (ModifyRuleInfo) String

func (o ModifyRuleInfo) String() string

type OperationPlaybookInfo

type OperationPlaybookInfo struct {

	// 操作类型。重试: RETRY  终止: TERMINATE
	Operation *string `json:"operation,omitempty"`
}

OperationPlaybookInfo 操作剧本实例请求参数

func (OperationPlaybookInfo) String

func (o OperationPlaybookInfo) String() string

type OrderAlert

type OrderAlert struct {

	// 转事件的告警id列表
	Ids *[]string `json:"ids,omitempty"`

	IncidentContent *OrderAlertIncidentContent `json:"incident_content,omitempty"`
}

OrderAlert 告警批量转事件body体

func (OrderAlert) String

func (o OrderAlert) String() string

type OrderAlertIncidentContent

type OrderAlertIncidentContent struct {

	// 事件名称
	Title *string `json:"title,omitempty"`

	IncidentType *OrderAlertIncidentContentIncidentType `json:"incident_type,omitempty"`
}

OrderAlertIncidentContent 事件内容

func (OrderAlertIncidentContent) String

func (o OrderAlertIncidentContent) String() string

type OrderAlertIncidentContentIncidentType

type OrderAlertIncidentContentIncidentType struct {

	// 事件类型id
	Id *string `json:"id,omitempty"`

	// 事件类型父类
	Category *string `json:"category,omitempty"`

	// 事件类型子类
	IncidentType *string `json:"incident_type,omitempty"`
}

OrderAlertIncidentContentIncidentType 事件类型

func (OrderAlertIncidentContentIncidentType) String

type PlaybookInfo

type PlaybookInfo struct {

	// 剧本ID
	Id *string `json:"id,omitempty"`

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

	// 描述信息
	Description *string `json:"description,omitempty"`

	// 剧本创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 剧本更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 剧本版本ID
	VersionId *string `json:"version_id,omitempty"`

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

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

	// 审核用户角色
	ApproveRole *string `json:"approve_role,omitempty"`

	// 用户角色
	UserRole *string `json:"user_role,omitempty"`

	// 编辑用户角色
	EditRole *string `json:"edit_role,omitempty"`

	// 所有者ID
	OwnerId *string `json:"owner_id,omitempty"`

	// 版本号
	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"`
}

PlaybookInfo 剧本详情信息

func (PlaybookInfo) String

func (o PlaybookInfo) String() string

type PlaybookInfoRef

type PlaybookInfoRef struct {

	// 剧本ID
	Id *string `json:"id,omitempty"`

	// 剧本版本ID
	VersionId *string `json:"version_id,omitempty"`

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

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

PlaybookInfoRef 剧本信息

func (PlaybookInfoRef) String

func (o PlaybookInfoRef) String() string

type PlaybookInstanceInfo

type PlaybookInstanceInfo struct {

	// 剧本实例ID
	Id *string `json:"id,omitempty"`

	// 剧本实例名称
	Name *string `json:"name,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

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

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

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

	// 剧本实例状态. (RUNNING--运行中、FINISHED--成功、FAILED--失败、RETRYING--重试中、TERMINATING--终止中、TERMINATED--已终止)
	Status *string `json:"status,omitempty"`

	// 触发类型. TIMER--定时触发, EVENT--事件触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 创建时间
	StartTime *string `json:"start_time,omitempty"`

	// 更新时间
	EndTime *string `json:"end_time,omitempty"`
}

PlaybookInstanceInfo 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"`
}

PlaybookInstanceMonitorDetail 剧本运行监控详情

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"`
}

PlaybookInstanceRunStatistics 剧本实例运行数据

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"`
}

PlaybookStatisticDetail 剧本状态统计信息

func (PlaybookStatisticDetail) String

func (o PlaybookStatisticDetail) String() string

type PlaybookVersionInfo

type PlaybookVersionInfo struct {

	// 剧本版本ID
	Id *string `json:"id,omitempty"`

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

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 创建者ID
	CreatorId *string `json:"creator_id,omitempty"`

	// 修改者ID
	ModifierId *string `json:"modifier_id,omitempty"`

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

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

	// 是否启用。(true--已启用,false-未启用)
	Enabled *bool `json:"enabled,omitempty"`

	// 剧本版本状态,编辑中:EDITING  审核中:APPROVING  不通过:UNPASSED 已发布:PUBLISHED
	Status *string `json:"status,omitempty"`

	// 执行策略. 目前仅支持异步并发执行,对应值为ASYNC
	ActionStrategy *string `json:"action_strategy,omitempty"`

	// 剧本关联流程列表信息
	Actions *[]ActionInfo `json:"actions,omitempty"`

	// 是否启用触发条件过滤器
	RuleEnable *bool `json:"rule_enable,omitempty"`

	Rules *RuleInfo `json:"rules,omitempty"`

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

	// 剧本触发方式(EVENT--事件触发,TIMER--定时触发)
	TriggerType *string `json:"trigger_type,omitempty"`

	// 标识数据对象是否创建时触发剧本
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// 标识数据对象是否更新时触发剧本
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// 标识数据对象是否删除时触发剧本
	DataobjectDelete *bool `json:"dataobject_delete,omitempty"`

	// 版本类型(0--草稿版本,1--正式版本)
	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"`
}

PlaybookVersionInfo 剧本版本详情信息

func (PlaybookVersionInfo) String

func (o PlaybookVersionInfo) String() string

type PlaybookVersionListEntity

type PlaybookVersionListEntity struct {

	// 剧本版本ID
	Id *string `json:"id,omitempty"`

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

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 创建者ID
	CreatorId *string `json:"creator_id,omitempty"`

	// 修改者ID
	ModifierId *string `json:"modifier_id,omitempty"`

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

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

	// 是否激活
	Enabled *bool `json:"enabled,omitempty"`

	// 状态. (EDITING--编辑中, APPROVING--审核中, UNPASSED--审核不通过, PUBLISHED--审核通过)
	Status *string `json:"status,omitempty"`

	// 执行策略. 目前仅支持异步并发执行,对应值为ASYNC
	ActionStrategy *string `json:"action_strategy,omitempty"`

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

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

	// 触发方式. EVENT--事件触发, TIMER--定时触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 标识数据对象是否创建时触发剧本
	DataobjectCreate *bool `json:"dataobject_create,omitempty"`

	// 标识数据对象是否更新时触发剧本
	DataobjectUpdate *bool `json:"dataobject_update,omitempty"`

	// 标识数据对象是否删除时触发剧本
	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"`
}

PlaybookVersionListEntity 剧本版本详情信息

func (PlaybookVersionListEntity) String

func (o PlaybookVersionListEntity) String() string

type RuleInfo

type RuleInfo struct {

	// 规则ID
	Id *string `json:"id,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 触发规则
	Rule *string `json:"rule,omitempty"`
}

RuleInfo 剧本触发规格信息

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"`

	// 时间窗口间隔。Period 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 ShowAlertDetailDataclassRef

type ShowAlertDetailDataclassRef struct {

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

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

ShowAlertDetailDataclassRef dataclass对象

func (ShowAlertDetailDataclassRef) String

type ShowAlertRequest

type ShowAlertRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

ShowAlertRequest Request Object

func (ShowAlertRequest) String

func (o ShowAlertRequest) String() string

type ShowAlertResponse

type ShowAlertResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ShowAlertResponse Response Object

func (ShowAlertResponse) String

func (o ShowAlertResponse) 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"`
}

ShowAlertRspDatasource 数据源信息

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"`
}

ShowAlertRspEnvironment 环境信息

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"`
}

ShowAlertRspMalware 恶意软件

func (ShowAlertRspMalware) String

func (o ShowAlertRspMalware) 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"`
}

ShowAlertRspRemediation 补救措施

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 {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

	// 告警规则 ID。Alert rule ID.
	RuleId string `json:"rule_id"`
}

ShowAlertRuleRequest Request Object

func (ShowAlertRuleRequest) String

func (o ShowAlertRuleRequest) String() string

type ShowAlertRuleResponse

type ShowAlertRuleResponse struct {

	// 告警规则 ID。Alert rule ID.
	RuleId *string `json:"rule_id,omitempty"`

	// 数据管道 ID。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"`

	// 告警规则名称。Alert rule name.
	RuleName *string `json:"rule_name,omitempty"`

	// 查询语句。Query.
	Query *string `json:"query,omitempty"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 自定义扩展信息。Custom properties.
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// 告警分组。Event grouping.
	EventGrouping *bool `json:"event_grouping,omitempty"`

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

	// 告警触发规则。Alert triggers.
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

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

ShowAlertRuleResponse 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
}

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 {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

	// 告警规则模板 ID。Alert rule template ID.
	TemplateId string `json:"template_id"`
}

ShowAlertRuleTemplateRequest Request Object

func (ShowAlertRuleTemplateRequest) String

type ShowAlertRuleTemplateResponse

type ShowAlertRuleTemplateResponse struct {

	// 告警规则模板 ID。Alert rule template ID.
	TemplateId *string `json:"template_id,omitempty"`

	// 更新时间。Update time.
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 告警规则模板名称。Alert rule 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"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 告警触发规则。Alert triggers.
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

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

ShowAlertRuleTemplateResponse 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 ShowAlertRuleTemplateResponseQueryTypeEnum

type ShowAlertRuleTemplateResponseQueryTypeEnum struct {
	SQL ShowAlertRuleTemplateResponseQueryType
}

func GetShowAlertRuleTemplateResponseQueryTypeEnum

func GetShowAlertRuleTemplateResponseQueryTypeEnum() ShowAlertRuleTemplateResponseQueryTypeEnum

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 ShowIncidentRequest

type ShowIncidentRequest struct {

	// 内容类型
	ContentType string `json:"content-type"`

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

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

ShowIncidentRequest Request Object

func (ShowIncidentRequest) String

func (o ShowIncidentRequest) String() string

type ShowIncidentResponse

type ShowIncidentResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

	Data           *IncidentDetail `json:"data,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowIncidentResponse 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"`

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 情报指标ID
	IndicatorId string `json:"indicator_id"`
}

ShowIndicatorDetailRequest Request Object

func (ShowIndicatorDetailRequest) String

type ShowIndicatorDetailResponse

type ShowIndicatorDetailResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ShowIndicatorDetailResponse Response Object

func (ShowIndicatorDetailResponse) String

type ShowPlaybookInstanceRequest

type ShowPlaybookInstanceRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

ShowPlaybookInstanceRequest Request Object

func (ShowPlaybookInstanceRequest) String

type ShowPlaybookInstanceResponse

type ShowPlaybookInstanceResponse struct {

	// 剧本实例ID
	Id *string `json:"id,omitempty"`

	// 剧本实例名称
	Name *string `json:"name,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

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

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

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

	// 剧本实例状态. (RUNNING--运行中、FINISHED--成功、FAILED--失败、RETRYING--重试中、TERMINATING--终止中、TERMINATED--已终止)
	Status *string `json:"status,omitempty"`

	// 触发类型. TIMER--定时触发, EVENT--事件触发
	TriggerType *string `json:"trigger_type,omitempty"`

	// 创建时间
	StartTime *string `json:"start_time,omitempty"`

	// 更新时间
	EndTime *string `json:"end_time,omitempty"`

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

ShowPlaybookInstanceResponse Response Object

func (ShowPlaybookInstanceResponse) String

type ShowPlaybookMonitorsRequest

type ShowPlaybookMonitorsRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本ID
	PlaybookId string `json:"playbook_id"`

	// 开始时间。格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。例如:2021-01-30T23:00:00Z+0800。时区信息为剧本实例产生的时区,无法解析时区的时间,默认时区填东八区。
	StartTime string `json:"start_time"`

	// 统计剧本版本类型(ALL:全部,VALID:有效的,DELETED:已删除)
	VersionQueryType ShowPlaybookMonitorsRequestVersionQueryType `json:"version_query_type"`

	// 结束时间。格式ISO8601:YYYY-MM-DDTHH:mm:ss.ms+timezone。例如:2021-01-30T23:00:00Z+0800。时区信息为剧本实例产生的时区,无法解析时区的时间,默认时区填东八区。
	EndTime string `json:"end_time"`
}

ShowPlaybookMonitorsRequest Request Object

func (ShowPlaybookMonitorsRequest) String

type ShowPlaybookMonitorsRequestVersionQueryType added in v0.1.64

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

func (ShowPlaybookMonitorsRequestVersionQueryType) MarshalJSON added in v0.1.64

func (*ShowPlaybookMonitorsRequestVersionQueryType) UnmarshalJSON added in v0.1.64

func (ShowPlaybookMonitorsRequestVersionQueryType) Value added in v0.1.64

type ShowPlaybookMonitorsRequestVersionQueryTypeEnum added in v0.1.64

type ShowPlaybookMonitorsRequestVersionQueryTypeEnum struct {
	ALLVALIDDELETED ShowPlaybookMonitorsRequestVersionQueryType
}

func GetShowPlaybookMonitorsRequestVersionQueryTypeEnum added in v0.1.64

func GetShowPlaybookMonitorsRequestVersionQueryTypeEnum() ShowPlaybookMonitorsRequestVersionQueryTypeEnum

type ShowPlaybookMonitorsResponse

type ShowPlaybookMonitorsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ShowPlaybookMonitorsResponse Response Object

func (ShowPlaybookMonitorsResponse) String

type ShowPlaybookRequest

type ShowPlaybookRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

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

ShowPlaybookRequest Request Object

func (ShowPlaybookRequest) String

func (o ShowPlaybookRequest) String() string

type ShowPlaybookResponse

type ShowPlaybookResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ShowPlaybookResponse 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
	WorkspaceId string `json:"workspace_id"`

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

	// version Id value
	RuleId string `json:"rule_id"`
}

ShowPlaybookRuleRequest Request Object

func (ShowPlaybookRuleRequest) String

func (o ShowPlaybookRuleRequest) String() string

type ShowPlaybookRuleResponse

type ShowPlaybookRuleResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ShowPlaybookRuleResponse 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
	WorkspaceId string `json:"workspace_id"`
}

ShowPlaybookStatisticsRequest Request Object

func (ShowPlaybookStatisticsRequest) String

type ShowPlaybookStatisticsResponse

type ShowPlaybookStatisticsResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

ShowPlaybookStatisticsResponse Response Object

func (ShowPlaybookStatisticsResponse) String

type ShowPlaybookTopologyRequest

type ShowPlaybookTopologyRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本实例ID
	InstanceId string `json:"instance_id"`
}

ShowPlaybookTopologyRequest Request Object

func (ShowPlaybookTopologyRequest) String

type ShowPlaybookTopologyResponse

type ShowPlaybookTopologyResponse struct {

	// 总数
	Count *int32 `json:"count,omitempty"`

	// 流程实例列表
	ActionInstances *[]ActionInstanceInfo `json:"action_instances,omitempty"`

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

ShowPlaybookTopologyResponse Response Object

func (ShowPlaybookTopologyResponse) String

type ShowPlaybookVersionRequest

type ShowPlaybookVersionRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`
}

ShowPlaybookVersionRequest Request Object

func (ShowPlaybookVersionRequest) String

type ShowPlaybookVersionResponse

type ShowPlaybookVersionResponse struct {

	// 错误码
	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:"-"`
}

ShowPlaybookVersionResponse Response Object

func (ShowPlaybookVersionResponse) String

type UpdateAlertRuleRequest

type UpdateAlertRuleRequest struct {

	// 工作空间 ID。Workspace ID.
	WorkspaceId string `json:"workspace_id"`

	// 告警规则 ID。Alert rule ID.
	RuleId string `json:"rule_id"`

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

UpdateAlertRuleRequest Request Object

func (UpdateAlertRuleRequest) String

func (o UpdateAlertRuleRequest) String() string

type UpdateAlertRuleRequestBody

type UpdateAlertRuleRequestBody struct {

	// 告警规则名称。Alert rule name.
	RuleName *string `json:"rule_name,omitempty"`

	// 描述。Description.
	Description *string `json:"description,omitempty"`

	// 查询语句。Query.
	Query *string `json:"query,omitempty"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 自定义扩展信息。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"`

	// 告警触发规则。Alert 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
}

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 {

	// 告警规则 ID。Alert rule ID.
	RuleId *string `json:"rule_id,omitempty"`

	// 数据管道 ID。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"`

	// 告警规则名称。Alert rule name.
	RuleName *string `json:"rule_name,omitempty"`

	// 查询语句。Query.
	Query *string `json:"query,omitempty"`

	// 查询语法,SQL。Query type. SQL.
	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"`

	// 自定义扩展信息。Custom properties.
	CustomProperties map[string]string `json:"custom_properties,omitempty"`

	// 告警分组。Event grouping.
	EventGrouping *bool `json:"event_grouping,omitempty"`

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

	// 告警触发规则。Alert triggers.
	Triggers *[]AlertRuleTrigger `json:"triggers,omitempty"`

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

UpdateAlertRuleResponse 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
}

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"`

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 情报ID
	IndicatorId string `json:"indicator_id"`

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

UpdateIndicatorRequest Request Object

func (UpdateIndicatorRequest) String

func (o UpdateIndicatorRequest) String() string

type UpdateIndicatorRequestBody

type UpdateIndicatorRequestBody struct {
	DataObject *IndicatorDataObjectDetail `json:"data_object,omitempty"`
}

UpdateIndicatorRequestBody update indicator request body

func (UpdateIndicatorRequestBody) String

type UpdateIndicatorResponse

type UpdateIndicatorResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

UpdateIndicatorResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

	// 剧本动作ID
	ActionId string `json:"action_id"`

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

UpdatePlaybookActionRequest 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:"-"`
}

UpdatePlaybookActionResponse Response Object

func (UpdatePlaybookActionResponse) String

type UpdatePlaybookRequest

type UpdatePlaybookRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本ID
	PlaybookId string `json:"playbook_id"`

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

UpdatePlaybookRequest Request Object

func (UpdatePlaybookRequest) String

func (o UpdatePlaybookRequest) String() string

type UpdatePlaybookResponse

type UpdatePlaybookResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

UpdatePlaybookResponse 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
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

	// 剧本规则ID
	RuleId string `json:"rule_id"`

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

UpdatePlaybookRuleRequest Request Object

func (UpdatePlaybookRuleRequest) String

func (o UpdatePlaybookRuleRequest) String() string

type UpdatePlaybookRuleResponse

type UpdatePlaybookRuleResponse struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`

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

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

UpdatePlaybookRuleResponse Response Object

func (UpdatePlaybookRuleResponse) String

type UpdatePlaybookVersionRequest

type UpdatePlaybookVersionRequest struct {

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

	// 工作空间ID
	WorkspaceId string `json:"workspace_id"`

	// 剧本版本ID
	VersionId string `json:"version_id"`

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

UpdatePlaybookVersionRequest Request Object

func (UpdatePlaybookVersionRequest) String

type UpdatePlaybookVersionResponse

type UpdatePlaybookVersionResponse struct {

	// 错误码
	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:"-"`
}

UpdatePlaybookVersionResponse 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