model

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfigBaseLogInfo added in v0.0.71

type AccessConfigBaseLogInfo struct {

	// 日志组ID
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志流ID
	LogStreamId *string `json:"log_stream_id,omitempty"`
}

日志接入基础日志信息。

func (AccessConfigBaseLogInfo) String added in v0.0.71

func (o AccessConfigBaseLogInfo) String() string

type AccessConfigBaseLogInfoCreate added in v0.0.71

type AccessConfigBaseLogInfoCreate struct {

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`
}

日志接入基础日志信息。

func (AccessConfigBaseLogInfoCreate) String added in v0.0.71

type AccessConfigDeatil added in v0.0.71

type AccessConfigDeatil struct {

	// 采集路径。 1. 路径必须以/或者字母:\\\\开头 2. 不能包含特殊字符<> ' | \" 且不能只输入/ 3. 第一级目录不支持通配符*:不能以/_**   /_*开头 4.**只能出现一次
	Paths *[]string `json:"paths,omitempty"`

	// 采集路径黑名单。 1. 路径必须以/或者字母:\\\\开头 2. 不能包含特殊字符<> ' | \" 且不能只输入/ 3. 第一级目录不支持通配符*:不能以/_**   /_*开头 4.**只能出现一次
	BlackPaths *[]string `json:"black_paths,omitempty"`

	Format *AccessConfigFormat `json:"format,omitempty"`

	WindowsLogInfo *AccessConfigWindowsLogInfo `json:"windows_log_info,omitempty"`
}

日志接入详细信息

func (AccessConfigDeatil) String added in v0.0.71

func (o AccessConfigDeatil) String() string

type AccessConfigDeatilCreate added in v0.0.71

type AccessConfigDeatilCreate struct {

	// 采集路径。 1. 路径必须以/或者字母:\\\\开头 2. 不能包含特殊字符<> ' | \" 且不能只输入/ 3. 第一级目录不支持通配符*:不能以/_**   /_*开头 4.**只能出现一次
	Paths []string `json:"paths"`

	// 采集路径黑名单。 1. 路径必须以/或者字母:\\\\开头 2. 不能包含特殊字符<> ' | \" 且不能只输入/ 3. 第一级目录不支持通配符*:不能以/_**   /_*开头 4.**只能出现一次
	BlackPaths *[]string `json:"black_paths,omitempty"`

	Format *AccessConfigFormatCreate `json:"format"`

	WindowsLogInfo *AccessConfigWindowsLogInfoCreate `json:"windows_log_info,omitempty"`
}

日志接入详细信息

func (AccessConfigDeatilCreate) String added in v0.0.71

func (o AccessConfigDeatilCreate) String() string

type AccessConfigFormat added in v0.0.71

type AccessConfigFormat struct {
	Single *AccessConfigFormatSingle `json:"single,omitempty"`

	Multi *AccessConfigFormatMutil `json:"multi,omitempty"`
}

日志格式

func (AccessConfigFormat) String added in v0.0.71

func (o AccessConfigFormat) String() string

type AccessConfigFormatCreate added in v0.0.71

type AccessConfigFormatCreate struct {
	Single *AccessConfigFormatSingleCreate `json:"single,omitempty"`

	Multi *AccessConfigFormatMutilCreate `json:"multi,omitempty"`
}

日志格式

func (AccessConfigFormatCreate) String added in v0.0.71

func (o AccessConfigFormatCreate) String() string

type AccessConfigFormatMutil added in v0.0.71

type AccessConfigFormatMutil struct {

	// 单行日志。time:日志时间,regular:正则模式。
	Mode AccessConfigFormatMutilMode `json:"mode"`

	// 日志时间。 当mode为\"regular\",则输入正则表达式 当mode为\"time\",则时间通配符:用日志打印时间来标识一条日志数据,通过时间通配符来匹配日志,每条日志的行首显示日志的打印时间;如果日志中的时间格式为:2019-01-01 23:59:59,时间通配符应该填写为:YYYY-MM-DD hh:mm:ss;如果日志中的时间格式为:19-1-1 23:59:59,时间通配符应该填写为:YY-M-D hh:mm:ss
	Value string `json:"value"`
}

日志接入格式多行日志

func (AccessConfigFormatMutil) String added in v0.0.71

func (o AccessConfigFormatMutil) String() string

type AccessConfigFormatMutilCreate added in v0.0.71

type AccessConfigFormatMutilCreate struct {

	// 单行日志。time:日志时间,regular:正则模式。
	Mode *AccessConfigFormatMutilCreateMode `json:"mode,omitempty"`

	// 日志时间。 当mode为\"regular\",则输入正则表达式 当mode为\"time\",则时间通配符:用日志打印时间来标识一条日志数据,通过时间通配符来匹配日志,每条日志的行首显示日志的打印时间;如果日志中的时间格式为:2019-01-01 23:59:59,时间通配符应该填写为:YYYY-MM-DD hh:mm:ss;如果日志中的时间格式为:19-1-1 23:59:59,时间通配符应该填写为:YY-M-D hh:mm:ss
	Value *string `json:"value,omitempty"`
}

日志接入格式多行日志

func (AccessConfigFormatMutilCreate) String added in v0.0.71

type AccessConfigFormatMutilCreateMode added in v0.0.71

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

func (AccessConfigFormatMutilCreateMode) MarshalJSON added in v0.0.71

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

func (*AccessConfigFormatMutilCreateMode) UnmarshalJSON added in v0.0.71

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

func (AccessConfigFormatMutilCreateMode) Value added in v0.0.90

type AccessConfigFormatMutilCreateModeEnum added in v0.0.71

type AccessConfigFormatMutilCreateModeEnum struct {
	TIME    AccessConfigFormatMutilCreateMode
	REGULAR AccessConfigFormatMutilCreateMode
}

func GetAccessConfigFormatMutilCreateModeEnum added in v0.0.71

func GetAccessConfigFormatMutilCreateModeEnum() AccessConfigFormatMutilCreateModeEnum

type AccessConfigFormatMutilMode added in v0.0.71

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

func (AccessConfigFormatMutilMode) MarshalJSON added in v0.0.71

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

func (*AccessConfigFormatMutilMode) UnmarshalJSON added in v0.0.71

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

func (AccessConfigFormatMutilMode) Value added in v0.0.90

type AccessConfigFormatMutilModeEnum added in v0.0.71

type AccessConfigFormatMutilModeEnum struct {
	TIME    AccessConfigFormatMutilMode
	REGULAR AccessConfigFormatMutilMode
}

func GetAccessConfigFormatMutilModeEnum added in v0.0.71

func GetAccessConfigFormatMutilModeEnum() AccessConfigFormatMutilModeEnum

type AccessConfigFormatSingle added in v0.0.71

type AccessConfigFormatSingle struct {

	// 单行日志。system:系统时间,wildcard:时间通配符。
	Mode AccessConfigFormatSingleMode `json:"mode"`

	// 日志时间。 当mode为”system”,则填入当前时间戳。 当mode为\"wildcard\",则时间通配符:用日志打印时间来标识一条日志数据,通过时间通配符来匹配日志,每条日志的行首显示日志的打印时间;如果日志中的时间格式为:2019-01-01 23:59:59,时间通配符应该填写为:YYYY-MM-DD hh:mm:ss;如果日志中的时间格式为:19-1-1 23:59:59,时间通配符应该填写为:YY-M-D hh:mm:ss
	Value string `json:"value"`
}

日志接入格式单行日志

func (AccessConfigFormatSingle) String added in v0.0.71

func (o AccessConfigFormatSingle) String() string

type AccessConfigFormatSingleCreate added in v0.0.71

type AccessConfigFormatSingleCreate struct {

	// 单行日志。system:系统时间,wildcard:时间通配符。
	Mode *AccessConfigFormatSingleCreateMode `json:"mode,omitempty"`

	// 日志时间。 当mode为”system”,则填入当前时间戳。 当mode为\"wildcard\",则时间通配符:用日志打印时间来标识一条日志数据,通过时间通配符来匹配日志,每条日志的行首显示日志的打印时间;如果日志中的时间格式为:2019-01-01 23:59:59,时间通配符应该填写为:YYYY-MM-DD hh:mm:ss;如果日志中的时间格式为:19-1-1 23:59:59,时间通配符应该填写为:YY-M-D hh:mm:ss
	Value *string `json:"value,omitempty"`
}

日志接入格式单行日志

func (AccessConfigFormatSingleCreate) String added in v0.0.71

type AccessConfigFormatSingleCreateMode added in v0.0.71

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

func (AccessConfigFormatSingleCreateMode) MarshalJSON added in v0.0.71

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

func (*AccessConfigFormatSingleCreateMode) UnmarshalJSON added in v0.0.71

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

func (AccessConfigFormatSingleCreateMode) Value added in v0.0.90

type AccessConfigFormatSingleCreateModeEnum added in v0.0.71

type AccessConfigFormatSingleCreateModeEnum struct {
	SYSTEM   AccessConfigFormatSingleCreateMode
	WILDCARD AccessConfigFormatSingleCreateMode
}

func GetAccessConfigFormatSingleCreateModeEnum added in v0.0.71

func GetAccessConfigFormatSingleCreateModeEnum() AccessConfigFormatSingleCreateModeEnum

type AccessConfigFormatSingleMode added in v0.0.71

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

func (AccessConfigFormatSingleMode) MarshalJSON added in v0.0.71

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

func (*AccessConfigFormatSingleMode) UnmarshalJSON added in v0.0.71

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

func (AccessConfigFormatSingleMode) Value added in v0.0.90

type AccessConfigFormatSingleModeEnum added in v0.0.71

type AccessConfigFormatSingleModeEnum struct {
	SYSTEM   AccessConfigFormatSingleMode
	WILDCARD AccessConfigFormatSingleMode
}

func GetAccessConfigFormatSingleModeEnum added in v0.0.71

func GetAccessConfigFormatSingleModeEnum() AccessConfigFormatSingleModeEnum

type AccessConfigHostGroupIdList added in v0.0.71

type AccessConfigHostGroupIdList struct {

	// 主机组ID列表
	HostGroupIdList []string `json:"host_group_id_list"`
}

日志接入主机组ID列表

func (AccessConfigHostGroupIdList) String added in v0.0.71

type AccessConfigHostGroupIdListCreate added in v0.0.71

type AccessConfigHostGroupIdListCreate struct {

	// 主机组ID列表
	HostGroupIdList []string `json:"host_group_id_list"`
}

日志接入主机组ID列表

func (AccessConfigHostGroupIdListCreate) String added in v0.0.71

type AccessConfigInfo added in v0.0.71

type AccessConfigInfo struct {

	// 日志接入ID
	AccessConfigId *string `json:"access_config_id,omitempty"`

	// 日志接入名称
	AccessConfigName *string `json:"access_config_name,omitempty"`

	// 日志接入类型。AGENT:主机接入
	AccessConfigType *AccessConfigInfoAccessConfigType `json:"access_config_type,omitempty"`

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

	AccessConfigDetail *AccessConfigDeatil `json:"access_config_detail,omitempty"`

	LogInfo *AccessConfigQueryLogInfo `json:"log_info,omitempty"`

	HostGroupInfo *AccessConfigHostGroupIdList `json:"host_group_info,omitempty"`

	AccessConfigTag *[]AccessConfigTag `json:"access_config_tag,omitempty"`
}

日志接入配置

func (AccessConfigInfo) String added in v0.0.71

func (o AccessConfigInfo) String() string

type AccessConfigInfoAccessConfigType added in v0.0.71

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

func (AccessConfigInfoAccessConfigType) MarshalJSON added in v0.0.71

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

func (*AccessConfigInfoAccessConfigType) UnmarshalJSON added in v0.0.71

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

func (AccessConfigInfoAccessConfigType) Value added in v0.0.90

type AccessConfigInfoAccessConfigTypeEnum added in v0.0.71

type AccessConfigInfoAccessConfigTypeEnum struct {
	AGENT AccessConfigInfoAccessConfigType
}

func GetAccessConfigInfoAccessConfigTypeEnum added in v0.0.71

func GetAccessConfigInfoAccessConfigTypeEnum() AccessConfigInfoAccessConfigTypeEnum

type AccessConfigQueryLogInfo added in v0.0.71

type AccessConfigQueryLogInfo struct {

	// 日志组ID
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志流ID
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`
}

日志接入日志详情

func (AccessConfigQueryLogInfo) String added in v0.0.71

func (o AccessConfigQueryLogInfo) String() string

type AccessConfigTag added in v0.0.76

type AccessConfigTag struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

func (AccessConfigTag) String added in v0.0.76

func (o AccessConfigTag) String() string

type AccessConfigTimeOffset added in v0.0.71

type AccessConfigTimeOffset struct {

	// 偏移时间。 当\"unit\"选择\"day\"时,范围为1~7天。 当\"unit\"选择\"hour\"时,范围为1~168小时。 当\"unit\"选择\"sec\"时,范围为1~604800秒。
	Offset int64 `json:"offset"`

	// 偏移时间单位。day :天,hour:小时,sec:秒
	Unit AccessConfigTimeOffsetUnit `json:"unit"`
}

日志接入偏移时间

func (AccessConfigTimeOffset) String added in v0.0.71

func (o AccessConfigTimeOffset) String() string

type AccessConfigTimeOffsetCreate added in v0.0.71

type AccessConfigTimeOffsetCreate struct {

	// 偏移时间。 当\"unit\"选择\"day\"时,范围为1~7天。 当\"unit\"选择\"hour\"时,范围为1~168小时。 当\"unit\"选择\"sec\"时,范围为1~604800秒。
	Offset int64 `json:"offset"`

	// 偏移时间单位。day :天,hour:小时,sec:秒
	Unit AccessConfigTimeOffsetCreateUnit `json:"unit"`
}

日志接入偏移时间

func (AccessConfigTimeOffsetCreate) String added in v0.0.71

type AccessConfigTimeOffsetCreateUnit added in v0.0.71

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

func (AccessConfigTimeOffsetCreateUnit) MarshalJSON added in v0.0.71

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

func (*AccessConfigTimeOffsetCreateUnit) UnmarshalJSON added in v0.0.71

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

func (AccessConfigTimeOffsetCreateUnit) Value added in v0.0.90

type AccessConfigTimeOffsetCreateUnitEnum added in v0.0.71

type AccessConfigTimeOffsetCreateUnitEnum struct {
	DAY  AccessConfigTimeOffsetCreateUnit
	HOUR AccessConfigTimeOffsetCreateUnit
	SEC  AccessConfigTimeOffsetCreateUnit
}

func GetAccessConfigTimeOffsetCreateUnitEnum added in v0.0.71

func GetAccessConfigTimeOffsetCreateUnitEnum() AccessConfigTimeOffsetCreateUnitEnum

type AccessConfigTimeOffsetUnit added in v0.0.71

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

func (AccessConfigTimeOffsetUnit) MarshalJSON added in v0.0.71

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

func (*AccessConfigTimeOffsetUnit) UnmarshalJSON added in v0.0.71

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

func (AccessConfigTimeOffsetUnit) Value added in v0.0.90

type AccessConfigTimeOffsetUnitEnum added in v0.0.71

type AccessConfigTimeOffsetUnitEnum struct {
	DAY  AccessConfigTimeOffsetUnit
	HOUR AccessConfigTimeOffsetUnit
	SEC  AccessConfigTimeOffsetUnit
}

func GetAccessConfigTimeOffsetUnitEnum added in v0.0.71

func GetAccessConfigTimeOffsetUnitEnum() AccessConfigTimeOffsetUnitEnum

type AccessConfigWindowsLogInfo added in v0.0.71

type AccessConfigWindowsLogInfo struct {

	// 采集Windows事件日志类型。Application:应用系统,System:系统,Security:安全,Setup:启动
	Categorys *[]AccessConfigWindowsLogInfoCategorys `json:"categorys,omitempty"`

	TimeOffset *AccessConfigTimeOffset `json:"time_offset,omitempty"`

	// 事件等级。information:info,warning:告警,error:错误,critical:关键,verbose:冗长
	EventLevel *[]AccessConfigWindowsLogInfoEventLevel `json:"event_level,omitempty"`
}

日志接入采集Windows事件日志

func (AccessConfigWindowsLogInfo) String added in v0.0.71

type AccessConfigWindowsLogInfoCategorys added in v0.0.71

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

func (AccessConfigWindowsLogInfoCategorys) MarshalJSON added in v0.0.71

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

func (*AccessConfigWindowsLogInfoCategorys) UnmarshalJSON added in v0.0.71

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

func (AccessConfigWindowsLogInfoCategorys) Value added in v0.0.90

type AccessConfigWindowsLogInfoCategorysEnum added in v0.0.71

type AccessConfigWindowsLogInfoCategorysEnum struct {
	APPLICATION AccessConfigWindowsLogInfoCategorys
	SYSTEM      AccessConfigWindowsLogInfoCategorys
	SECURITY    AccessConfigWindowsLogInfoCategorys
	SETUP       AccessConfigWindowsLogInfoCategorys
}

func GetAccessConfigWindowsLogInfoCategorysEnum added in v0.0.71

func GetAccessConfigWindowsLogInfoCategorysEnum() AccessConfigWindowsLogInfoCategorysEnum

type AccessConfigWindowsLogInfoCreate added in v0.0.71

type AccessConfigWindowsLogInfoCreate struct {

	// 采集Windows事件日志类型。Application:应用系统,System:系统,Security:安全,Setup:启动
	Categorys []AccessConfigWindowsLogInfoCreateCategorys `json:"categorys"`

	TimeOffset *AccessConfigTimeOffsetCreate `json:"time_offset"`

	// 事件等级。information:info,warning:告警,error:错误,critical:关键,verbose:冗长
	EventLevel []AccessConfigWindowsLogInfoCreateEventLevel `json:"event_level"`
}

日志接入采集Windows事件日志

func (AccessConfigWindowsLogInfoCreate) String added in v0.0.71

type AccessConfigWindowsLogInfoCreateCategorys added in v0.0.71

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

func (AccessConfigWindowsLogInfoCreateCategorys) MarshalJSON added in v0.0.71

func (*AccessConfigWindowsLogInfoCreateCategorys) UnmarshalJSON added in v0.0.71

func (AccessConfigWindowsLogInfoCreateCategorys) Value added in v0.0.90

type AccessConfigWindowsLogInfoCreateCategorysEnum added in v0.0.71

func GetAccessConfigWindowsLogInfoCreateCategorysEnum added in v0.0.71

func GetAccessConfigWindowsLogInfoCreateCategorysEnum() AccessConfigWindowsLogInfoCreateCategorysEnum

type AccessConfigWindowsLogInfoCreateEventLevel added in v0.0.71

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

func (AccessConfigWindowsLogInfoCreateEventLevel) MarshalJSON added in v0.0.71

func (*AccessConfigWindowsLogInfoCreateEventLevel) UnmarshalJSON added in v0.0.71

func (AccessConfigWindowsLogInfoCreateEventLevel) Value added in v0.0.90

type AccessConfigWindowsLogInfoEventLevel added in v0.0.71

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

func (AccessConfigWindowsLogInfoEventLevel) MarshalJSON added in v0.0.71

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

func (*AccessConfigWindowsLogInfoEventLevel) UnmarshalJSON added in v0.0.71

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

func (AccessConfigWindowsLogInfoEventLevel) Value added in v0.0.90

type AccessConfigWindowsLogInfoEventLevelEnum added in v0.0.71

func GetAccessConfigWindowsLogInfoEventLevelEnum added in v0.0.71

func GetAccessConfigWindowsLogInfoEventLevelEnum() AccessConfigWindowsLogInfoEventLevelEnum

type Annotations added in v0.0.68

type Annotations struct {

	// 告警列表详情
	Message string `json:"message"`

	// 日志组/流id,名称
	LogInfo string `json:"log_info"`

	// 当前值
	CurrentValue string `json:"current_value"`

	// (sql/关键词)告警详情原始数据
	OldAnnotations string `json:"old_annotations"`
}

func (Annotations) String added in v0.0.68

func (o Annotations) String() string

type AomMappingLogStreamInfo added in v0.0.68

type AomMappingLogStreamInfo struct {

	// 日志组id
	TargetLogGroupId string `json:"target_log_group_id"`

	// 目标日志组名称。
	TargetLogGroupName string `json:"target_log_group_name"`

	// 日志流id
	TargetLogStreamId string `json:"target_log_stream_id"`

	// 目标日志组名称。
	TargetLogStreamName string `json:"target_log_stream_name"`
}

func (AomMappingLogStreamInfo) String added in v0.0.68

func (o AomMappingLogStreamInfo) String() string

type AomMappingRequestInfo added in v0.0.68

type AomMappingRequestInfo struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 接入规则名称
	RuleName string `json:"rule_name"`

	// 接入规则id
	RuleId *string `json:"rule_id,omitempty"`

	RuleInfo *AomMappingRuleInfo `json:"rule_info"`
}

func (AomMappingRequestInfo) String added in v0.0.68

func (o AomMappingRequestInfo) String() string

type AomMappingRuleInfo added in v0.0.68

type AomMappingRuleInfo struct {

	// 集群id
	ClusterId string `json:"cluster_id"`

	// 集群名称
	ClusterName string `json:"cluster_name"`

	// 日志流前缀
	DeploymentsPrefix *string `json:"deployments_prefix,omitempty"`

	// 工作负载
	Deployments []string `json:"deployments"`

	// 命名空间
	Namespace string `json:"namespace"`

	// 容器名称
	ContainerName *string `json:"container_name,omitempty"`

	// 接入规则详情
	Files []AomMappingfilesInfo `json:"files"`
}

func (AomMappingRuleInfo) String added in v0.0.68

func (o AomMappingRuleInfo) String() string

type AomMappingRuleResp added in v0.0.68

type AomMappingRuleResp struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 接入规则名称
	RuleName string `json:"rule_name"`

	// 接入规则id
	RuleId string `json:"rule_id"`

	RuleInfo *AomMappingRuleInfo `json:"rule_info"`
}

func (AomMappingRuleResp) String added in v0.0.68

func (o AomMappingRuleResp) String() string

type AomMappingfilesInfo added in v0.0.68

type AomMappingfilesInfo struct {

	// 路径名
	FileName string `json:"file_name"`

	LogStreamInfo *AomMappingLogStreamInfo `json:"log_stream_info"`
}

func (AomMappingfilesInfo) String added in v0.0.68

func (o AomMappingfilesInfo) String() string

type BriefStructTemplateModel added in v0.0.78

type BriefStructTemplateModel struct {

	// 模板创建/更新时间
	CreateTime int64 `json:"create_time"`

	// 模板id
	Id string `json:"id"`

	// 模板名称
	TemplateName string `json:"template_name"`

	// 结构化类型,当前支持regex,json,split,nginx
	TemplateType BriefStructTemplateModelTemplateType `json:"template_type"`

	// 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	ProjectId string `json:"project_id"`
}

结构化模板简略对象

func (BriefStructTemplateModel) String added in v0.0.78

func (o BriefStructTemplateModel) String() string

type BriefStructTemplateModelTemplateType added in v0.0.78

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

func (BriefStructTemplateModelTemplateType) MarshalJSON added in v0.0.78

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

func (*BriefStructTemplateModelTemplateType) UnmarshalJSON added in v0.0.78

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

func (BriefStructTemplateModelTemplateType) Value added in v0.0.90

type BriefStructTemplateModelTemplateTypeEnum added in v0.0.78

func GetBriefStructTemplateModelTemplateTypeEnum added in v0.0.78

func GetBriefStructTemplateModelTemplateTypeEnum() BriefStructTemplateModelTemplateTypeEnum

type ChangeAlarmRuleStatus added in v0.0.69

type ChangeAlarmRuleStatus struct {

	// 告警规则ID
	AlarmRuleId string `json:"alarm_rule_id"`

	// 状态(RUNNING/STOPPING)
	Status string `json:"status"`

	// 类型
	Type string `json:"type"`
}

改变告警规则状态

func (ChangeAlarmRuleStatus) String added in v0.0.69

func (o ChangeAlarmRuleStatus) String() string

type ChartConfig added in v0.0.68

type ChartConfig struct {

	// 是否开启排序
	CanSort bool `json:"can_sort"`

	// 是否开启搜索
	CanSearch bool `json:"can_search"`

	// 每页显示数量
	PageSize int32 `json:"page_size"`
}

func (ChartConfig) String added in v0.0.68

func (o ChartConfig) String() string

type CreateAccessConfigRequest added in v0.0.71

type CreateAccessConfigRequest struct {
	Body *CreateAccessConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateAccessConfigRequest) String added in v0.0.71

func (o CreateAccessConfigRequest) String() string

type CreateAccessConfigRequestBody added in v0.0.71

type CreateAccessConfigRequestBody struct {

	// 日志接入名称
	AccessConfigName string `json:"access_config_name"`

	// 日志接入类型。AGENT:主机接入类型
	AccessConfigType CreateAccessConfigRequestBodyAccessConfigType `json:"access_config_type"`

	AccessConfigDetail *AccessConfigDeatilCreate `json:"access_config_detail"`

	LogInfo *AccessConfigBaseLogInfoCreate `json:"log_info"`

	HostGroupInfo *AccessConfigHostGroupIdListCreate `json:"host_group_info,omitempty"`

	AccessConfigTag *[]AccessConfigTag `json:"access_config_tag,omitempty"`
}

创建日志接入请求体

func (CreateAccessConfigRequestBody) String added in v0.0.71

type CreateAccessConfigRequestBodyAccessConfigType added in v0.0.71

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

func (CreateAccessConfigRequestBodyAccessConfigType) MarshalJSON added in v0.0.71

func (*CreateAccessConfigRequestBodyAccessConfigType) UnmarshalJSON added in v0.0.71

func (CreateAccessConfigRequestBodyAccessConfigType) Value added in v0.0.90

type CreateAccessConfigRequestBodyAccessConfigTypeEnum added in v0.0.71

type CreateAccessConfigRequestBodyAccessConfigTypeEnum struct {
	AGENT CreateAccessConfigRequestBodyAccessConfigType
}

func GetCreateAccessConfigRequestBodyAccessConfigTypeEnum added in v0.0.71

func GetCreateAccessConfigRequestBodyAccessConfigTypeEnum() CreateAccessConfigRequestBodyAccessConfigTypeEnum

type CreateAccessConfigResponse added in v0.0.71

type CreateAccessConfigResponse struct {

	// 日志接入ID
	AccessConfigId *string `json:"access_config_id,omitempty"`

	// 日志接入名称
	AccessConfigName *string `json:"access_config_name,omitempty"`

	// 日志接入类型。AGENT:主机接入
	AccessConfigType *CreateAccessConfigResponseAccessConfigType `json:"access_config_type,omitempty"`

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

	AccessConfigDetail *AccessConfigDeatil `json:"access_config_detail,omitempty"`

	LogInfo *AccessConfigQueryLogInfo `json:"log_info,omitempty"`

	HostGroupInfo *AccessConfigHostGroupIdList `json:"host_group_info,omitempty"`

	AccessConfigTag *[]AccessConfigTag `json:"access_config_tag,omitempty"`
	HttpStatusCode  int                `json:"-"`
}

Response Object

func (CreateAccessConfigResponse) String added in v0.0.71

type CreateAccessConfigResponseAccessConfigType added in v0.0.71

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

func (CreateAccessConfigResponseAccessConfigType) MarshalJSON added in v0.0.71

func (*CreateAccessConfigResponseAccessConfigType) UnmarshalJSON added in v0.0.71

func (CreateAccessConfigResponseAccessConfigType) Value added in v0.0.90

type CreateAccessConfigResponseAccessConfigTypeEnum added in v0.0.71

type CreateAccessConfigResponseAccessConfigTypeEnum struct {
	AGENT CreateAccessConfigResponseAccessConfigType
}

func GetCreateAccessConfigResponseAccessConfigTypeEnum added in v0.0.71

func GetCreateAccessConfigResponseAccessConfigTypeEnum() CreateAccessConfigResponseAccessConfigTypeEnum

type CreateAomMappingRulesRequest added in v0.0.68

type CreateAomMappingRulesRequest struct {

	// 是否开启自动映射
	IsBatch bool `json:"isBatch"`

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

Request Object

func (CreateAomMappingRulesRequest) String added in v0.0.68

type CreateAomMappingRulesResponse added in v0.0.68

type CreateAomMappingRulesResponse struct {
	Body           *[]AomMappingRuleResp `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (CreateAomMappingRulesResponse) String added in v0.0.68

type CreateDashBoardReqBody added in v0.1.19

type CreateDashBoardReqBody struct {

	// 仪表盘分组名称
	GroupName *string `json:"group_name,omitempty"`

	// 仪表盘名称
	Title string `json:"title"`
}

func (CreateDashBoardReqBody) String added in v0.1.19

func (o CreateDashBoardReqBody) String() string

type CreateDashBoardRequest added in v0.1.19

type CreateDashBoardRequest struct {
	Body *CreateDashBoardReqBody `json:"body,omitempty"`
}

Request Object

func (CreateDashBoardRequest) String added in v0.1.19

func (o CreateDashBoardRequest) String() string

type CreateDashBoardResponse added in v0.1.19

type CreateDashBoardResponse struct {

	// 仪表盘图表
	Charts *[]string `json:"charts,omitempty"`

	// 过滤条件
	Filters *[]string `json:"filters,omitempty"`

	// 日志组名称
	GroupName *string `json:"group_name,omitempty"`

	// 仪表盘id
	Id *string `json:"id,omitempty"`

	// 最近修改时间
	LastUpdateTime *string `json:"last_update_time,omitempty"`

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

	// 仪表盘名称
	Title *string `json:"title,omitempty"`

	// 是否使用模板
	UseSystemTemplate *string `json:"useSystemTemplate,omitempty"`
	HttpStatusCode    int     `json:"-"`
}

Response Object

func (CreateDashBoardResponse) String added in v0.1.19

func (o CreateDashBoardResponse) String() string

type CreateDashboardGroupReq added in v0.1.19

type CreateDashboardGroupReq struct {

	// 仪表盘分组名称
	GroupName string `json:"group_name"`
}

func (CreateDashboardGroupReq) String added in v0.1.19

func (o CreateDashboardGroupReq) String() string

type CreateDashboardGroupRequest added in v0.1.19

type CreateDashboardGroupRequest struct {
	Body *CreateDashboardGroupReq `json:"body,omitempty"`
}

Request Object

func (CreateDashboardGroupRequest) String added in v0.1.19

type CreateDashboardGroupResponse added in v0.1.19

type CreateDashboardGroupResponse struct {

	// 响应结果
	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDashboardGroupResponse) String added in v0.1.19

type CreateHostGroupRequest added in v0.0.71

type CreateHostGroupRequest struct {
	Body *CreateHostGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateHostGroupRequest) String added in v0.0.71

func (o CreateHostGroupRequest) String() string

type CreateHostGroupRequestBody added in v0.0.71

type CreateHostGroupRequestBody struct {

	// 主机组名称
	HostGroupName string `json:"host_group_name"`

	// 主机组类型。windows:windows类型,linux:linux类型
	HostGroupType CreateHostGroupRequestBodyHostGroupType `json:"host_group_type"`

	// 主机组ID列表。主机类型必须与主机组类型一致
	HostIdList *[]string `json:"host_id_list,omitempty"`

	// 标签信息。KEY不能重复
	HostGroupTag *[]HostGroupTag `json:"host_group_tag,omitempty"`
}

创建主机组请求体

func (CreateHostGroupRequestBody) String added in v0.0.71

type CreateHostGroupRequestBodyHostGroupType added in v0.0.71

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

func (CreateHostGroupRequestBodyHostGroupType) MarshalJSON added in v0.0.71

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

func (*CreateHostGroupRequestBodyHostGroupType) UnmarshalJSON added in v0.0.71

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

func (CreateHostGroupRequestBodyHostGroupType) Value added in v0.0.90

type CreateHostGroupRequestBodyHostGroupTypeEnum added in v0.0.71

type CreateHostGroupRequestBodyHostGroupTypeEnum struct {
	LINUX   CreateHostGroupRequestBodyHostGroupType
	WINDOWS CreateHostGroupRequestBodyHostGroupType
}

func GetCreateHostGroupRequestBodyHostGroupTypeEnum added in v0.0.71

func GetCreateHostGroupRequestBodyHostGroupTypeEnum() CreateHostGroupRequestBodyHostGroupTypeEnum

type CreateHostGroupResponse added in v0.0.71

type CreateHostGroupResponse struct {

	// 主机组ID
	HostGroupId *string `json:"host_group_id,omitempty"`

	// 主机组名称
	HostGroupName *string `json:"host_group_name,omitempty"`

	// 主机组类型。linux:linux类型,windows:windows类型
	HostGroupType *CreateHostGroupResponseHostGroupType `json:"host_group_type,omitempty"`

	// 主机ID列表
	HostIdList *[]string `json:"host_id_list,omitempty"`

	// 标签信息
	HostGroupTag *[]HostGroupTag `json:"host_group_tag,omitempty"`

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

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

Response Object

func (CreateHostGroupResponse) String added in v0.0.71

func (o CreateHostGroupResponse) String() string

type CreateHostGroupResponseHostGroupType added in v0.0.71

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

func (CreateHostGroupResponseHostGroupType) MarshalJSON added in v0.0.71

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

func (*CreateHostGroupResponseHostGroupType) UnmarshalJSON added in v0.0.71

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

func (CreateHostGroupResponseHostGroupType) Value added in v0.0.90

type CreateHostGroupResponseHostGroupTypeEnum added in v0.0.71

type CreateHostGroupResponseHostGroupTypeEnum struct {
	LINUX   CreateHostGroupResponseHostGroupType
	WINDOWS CreateHostGroupResponseHostGroupType
}

func GetCreateHostGroupResponseHostGroupTypeEnum added in v0.0.71

func GetCreateHostGroupResponseHostGroupTypeEnum() CreateHostGroupResponseHostGroupTypeEnum

type CreateKeywordsAlarmRuleRequest added in v0.0.68

type CreateKeywordsAlarmRuleRequest struct {
	Body *CreateKeywordsAlarmRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateKeywordsAlarmRuleRequest) String added in v0.0.68

type CreateKeywordsAlarmRuleRequestBody added in v0.0.68

type CreateKeywordsAlarmRuleRequestBody struct {

	// 关键词告警名称
	KeywordsAlarmRuleName string `json:"keywords_alarm_rule_name"`

	// 关键词告警信息描述
	KeywordsAlarmRuleDescription *string `json:"keywords_alarm_rule_description,omitempty"`

	// 关键词详细信息
	KeywordsRequests []KeywordsRequest `json:"keywords_requests"`

	Frequency *Frequency `json:"frequency"`

	// 告警级别
	KeywordsAlarmLevel CreateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel `json:"keywords_alarm_level"`

	// 是否发送
	KeywordsAlarmSend bool `json:"keywords_alarm_send"`

	// domainId
	DomainId string `json:"domain_id"`

	// 通知主题
	NotificationSaveRule *NotificationSaveRule `json:"notification_save_rule,omitempty"`

	// 触发条件:触发次数;默认为1
	TriggerConditionCount *int32 `json:"trigger_condition_count,omitempty"`

	// 触发条件:触发周期;默认为1
	TriggerConditionFrequency *int32 `json:"trigger_condition_frequency,omitempty"`

	// 是否打开恢复通知;默认false
	WhetherRecoveryPolicy *bool `json:"whether_recovery_policy,omitempty"`

	// 恢复策略周期;默认为3
	RecoveryPolicy *int32 `json:"recovery_policy,omitempty"`
}

func (CreateKeywordsAlarmRuleRequestBody) String added in v0.0.68

type CreateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel added in v0.0.68

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

func (CreateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel) MarshalJSON added in v0.0.68

func (*CreateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel) UnmarshalJSON added in v0.0.68

func (CreateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel) Value added in v0.0.90

type CreateKeywordsAlarmRuleResponse added in v0.0.68

type CreateKeywordsAlarmRuleResponse struct {

	// 告警规则id
	KeywordsAlarmRuleId *string `json:"keywords_alarm_rule_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

Response Object

func (CreateKeywordsAlarmRuleResponse) String added in v0.0.68

type CreateLogDumpObsRequest

type CreateLogDumpObsRequest struct {
	Body *CreateLogDumpObsRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateLogDumpObsRequest) String

func (o CreateLogDumpObsRequest) String() string

type CreateLogDumpObsRequestBody

type CreateLogDumpObsRequestBody struct {

	// 日志组id。
	LogGroupId string `json:"log_group_id"`

	// 日志流id列表, 可以指定一个或多个日志流进行obs周期性转储
	LogStreamIds []string `json:"log_stream_ids"`

	// obs 桶名称。
	ObsBucketName string `json:"obs_bucket_name"`

	// 周期性转储, 必须填 cycle。
	Type string `json:"type"`

	// 转储格式 RAW/JSON, 默认为 RAW。
	StorageFormat string `json:"storage_format"`

	// 是否开启转储 true/false, 默认为 true
	SwitchOn *bool `json:"switch_on,omitempty"`

	// 转储至OBS桶中的日志文件前缀。
	PrefixName *string `json:"prefix_name,omitempty"`

	// 自定义文件夹路径。
	DirPrefixName *string `json:"dir_prefix_name,omitempty"`

	// 转储周期的长度, 与 period_unit 拼接后必须在该列表中 [\"2min\",\"5min\",\"30min\",\"1hour\",\"3hour\",\"6hour\",\"12hour\"]。
	Period int32 `json:"period"`

	// 转储周期的单位, 与 period 拼接后必须在该列表中 [\"2min\",\"5min\",\"30min\",\"1hour\",\"3hour\",\"6hour\",\"12hour\"]。
	PeriodUnit string `json:"period_unit"`
}

此参数在请求实体中,采用json字符串格式

func (CreateLogDumpObsRequestBody) String

type CreateLogDumpObsResponse

type CreateLogDumpObsResponse struct {

	// 转储id。
	LogDumpObsId   *string `json:"log_dump_obs_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateLogDumpObsResponse) String

func (o CreateLogDumpObsResponse) String() string

type CreateLogGroupParams

type CreateLogGroupParams struct {

	// 需要创建的日志组名称。
	LogGroupName string `json:"log_group_name"`

	// 日志存储时间(天),取值范围:1-30。
	TtlInDays int32 `json:"ttl_in_days"`
}

创建日志组参数。

func (CreateLogGroupParams) String

func (o CreateLogGroupParams) String() string

type CreateLogGroupRequest

type CreateLogGroupRequest struct {
	Body *CreateLogGroupParams `json:"body,omitempty"`
}

Request Object

func (CreateLogGroupRequest) String

func (o CreateLogGroupRequest) String() string

type CreateLogGroupResponse

type CreateLogGroupResponse struct {

	// 创建的日志组的Id。
	LogGroupId     *string `json:"log_group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateLogGroupResponse) String

func (o CreateLogGroupResponse) String() string

type CreateLogStreamParams

type CreateLogStreamParams struct {

	// 需要创建的日志流名称
	LogStreamName string `json:"log_stream_name"`
}

创建日志流参数。

func (CreateLogStreamParams) String

func (o CreateLogStreamParams) String() string

type CreateLogStreamRequest

type CreateLogStreamRequest struct {

	// 租户想创建的日志流所在的日志组的groupid,一般为36位字符串。
	LogGroupId string `json:"log_group_id"`

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

Request Object

func (CreateLogStreamRequest) String

func (o CreateLogStreamRequest) String() string

type CreateLogStreamResponse

type CreateLogStreamResponse struct {

	// 创建的日志流的Id。
	LogStreamId    *string `json:"log_stream_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateLogStreamResponse) String

func (o CreateLogStreamResponse) String() string

type CreateNotificationTemplateRequest added in v0.0.69

type CreateNotificationTemplateRequest struct {

	// 租户id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	DomainId string `json:"domain_id"`

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

Request Object

func (CreateNotificationTemplateRequest) String added in v0.0.69

type CreateNotificationTemplateRequestBody added in v0.0.69

type CreateNotificationTemplateRequestBody struct {

	// 通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改
	Name string `json:"name"`

	// 保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子)
	Type *[]string `json:"type,omitempty"`

	// 模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024
	Desc string `json:"desc"`

	// 模板来源,目前必填为LTS,否则会筛选不出来
	Source string `json:"source"`

	// 语言,必填,目前可填zh-cn和en-us
	Locale CreateNotificationTemplateRequestBodyLocale `json:"locale"`

	// 模板正文,为一个数组
	Templates []SubTemplate `json:"templates"`
}

创建通知规则请求体

func (CreateNotificationTemplateRequestBody) String added in v0.0.69

type CreateNotificationTemplateRequestBodyLocale added in v0.0.69

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

func (CreateNotificationTemplateRequestBodyLocale) MarshalJSON added in v0.0.69

func (*CreateNotificationTemplateRequestBodyLocale) UnmarshalJSON added in v0.0.69

func (CreateNotificationTemplateRequestBodyLocale) Value added in v0.0.90

type CreateNotificationTemplateRequestBodyLocaleEnum added in v0.0.69

type CreateNotificationTemplateRequestBodyLocaleEnum struct {
	ZH_CN CreateNotificationTemplateRequestBodyLocale
	EN_US CreateNotificationTemplateRequestBodyLocale
}

func GetCreateNotificationTemplateRequestBodyLocaleEnum added in v0.0.69

func GetCreateNotificationTemplateRequestBodyLocaleEnum() CreateNotificationTemplateRequestBodyLocaleEnum

type CreateNotificationTemplateResponse added in v0.0.69

type CreateNotificationTemplateResponse struct {

	// 通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改
	Name *string `json:"name,omitempty"`

	// 保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子)
	Type *[]string `json:"type,omitempty"`

	// 模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024
	Desc *string `json:"desc,omitempty"`

	// 模板来源,目前必填为LTS,否则会筛选不出来
	Source *string `json:"source,omitempty"`

	// 语言,必填,目前可填zh-cn和en-us
	Locale *CreateNotificationTemplateResponseLocale `json:"locale,omitempty"`

	// 模板正文,为一个数组
	Templates      *[]SubTemplate `json:"templates,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateNotificationTemplateResponse) String added in v0.0.69

type CreateNotificationTemplateResponseLocale added in v0.0.69

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

func (CreateNotificationTemplateResponseLocale) MarshalJSON added in v0.0.69

func (*CreateNotificationTemplateResponseLocale) UnmarshalJSON added in v0.0.69

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

func (CreateNotificationTemplateResponseLocale) Value added in v0.0.90

type CreateNotificationTemplateResponseLocaleEnum added in v0.0.69

type CreateNotificationTemplateResponseLocaleEnum struct {
	ZH_CN CreateNotificationTemplateResponseLocale
	EN_US CreateNotificationTemplateResponseLocale
}

func GetCreateNotificationTemplateResponseLocaleEnum added in v0.0.69

func GetCreateNotificationTemplateResponseLocaleEnum() CreateNotificationTemplateResponseLocaleEnum

type CreateSearchCriteriasBody added in v0.1.19

type CreateSearchCriteriasBody struct {

	// 快速查询字段
	Criteria string `json:"criteria"`

	// 企业项目id
	EpsId *string `json:"eps_id,omitempty"`

	// 创建快速查询名称
	Name string `json:"name"`

	// 查询类型 原始日志:ORIGINALLOG 可视化日志: VISUALIZATION
	SearchType string `json:"search_type"`
}

func (CreateSearchCriteriasBody) String added in v0.1.19

func (o CreateSearchCriteriasBody) String() string

type CreateSearchCriteriasRequest added in v0.1.19

type CreateSearchCriteriasRequest struct {

	// 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。  缺省值:None  最小长度:36  最大长度:36
	GroupId string `json:"group_id"`

	// 日志流id
	TopicId string `json:"topic_id"`

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

Request Object

func (CreateSearchCriteriasRequest) String added in v0.1.19

type CreateSearchCriteriasResponse added in v0.1.19

type CreateSearchCriteriasResponse struct {

	// 快速查询id
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSearchCriteriasResponse) String added in v0.1.19

type CreateSqlAlarmRuleRequest added in v0.0.68

type CreateSqlAlarmRuleRequest struct {
	Body *CreateSqlAlarmRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSqlAlarmRuleRequest) String added in v0.0.68

func (o CreateSqlAlarmRuleRequest) String() string

type CreateSqlAlarmRuleRequestBody added in v0.0.68

type CreateSqlAlarmRuleRequestBody struct {

	// SQL告警名称
	SqlAlarmRuleName string `json:"sql_alarm_rule_name"`

	// SQL告警信息描述
	SqlAlarmRuleDescription *string `json:"sql_alarm_rule_description,omitempty"`

	// SQL详细信息
	SqlRequests []SqlRequest `json:"sql_requests"`

	// 告警统计周期
	Frequency *Frequency `json:"frequency"`

	// 条件表达式
	ConditionExpression string `json:"condition_expression"`

	// 告警级别
	SqlAlarmLevel CreateSqlAlarmRuleRequestBodySqlAlarmLevel `json:"sql_alarm_level"`

	// 是否发送
	SqlAlarmSend bool `json:"sql_alarm_send"`

	// domainId
	DomainId string `json:"domain_id"`

	// 通知主题
	NotificationSaveRule *NotificationSaveRule `json:"notification_save_rule,omitempty"`

	// 触发条件:触发次数;默认为1
	TriggerConditionCount *int32 `json:"trigger_condition_count,omitempty"`

	// 触发条件:触发周期;默认为1
	TriggerConditionFrequency *int32 `json:"trigger_condition_frequency,omitempty"`

	// 是否打开恢复通知;默认false
	WhetherRecoveryPolicy *bool `json:"whether_recovery_policy,omitempty"`

	// 恢复策略周期;默认为3
	RecoveryPolicy *int32 `json:"recovery_policy,omitempty"`
}

func (CreateSqlAlarmRuleRequestBody) String added in v0.0.68

type CreateSqlAlarmRuleRequestBodySqlAlarmLevel added in v0.0.68

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

func (CreateSqlAlarmRuleRequestBodySqlAlarmLevel) MarshalJSON added in v0.0.68

func (*CreateSqlAlarmRuleRequestBodySqlAlarmLevel) UnmarshalJSON added in v0.0.68

func (CreateSqlAlarmRuleRequestBodySqlAlarmLevel) Value added in v0.0.90

type CreateSqlAlarmRuleResponse added in v0.0.68

type CreateSqlAlarmRuleResponse struct {

	// 告警规则id
	SqlAlarmRuleId *string `json:"sql_alarm_rule_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSqlAlarmRuleResponse) String added in v0.0.68

type CreateStructConfigRequest added in v0.0.78

type CreateStructConfigRequest struct {
	Body *StructConfig `json:"body,omitempty"`
}

Request Object

func (CreateStructConfigRequest) String added in v0.0.78

func (o CreateStructConfigRequest) String() string

type CreateStructConfigResponse added in v0.0.78

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

Response Object

func (CreateStructConfigResponse) String added in v0.0.78

type CreateStructTemplateRequest added in v0.0.68

type CreateStructTemplateRequest struct {
	Body *LtsStructTemplateInfo `json:"body,omitempty"`
}

Request Object

func (CreateStructTemplateRequest) String added in v0.0.68

type CreateStructTemplateResponse added in v0.0.68

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

Response Object

func (CreateStructTemplateResponse) String added in v0.0.68

type CreateTagsReqbody added in v0.1.19

type CreateTagsReqbody struct {

	// 添加标签方式
	Action string `json:"action"`

	// 是否对外接口调用
	IsOpen bool `json:"is_open"`

	// 标签字段信息
	Tags []TagsBody `json:"tags"`
}

func (CreateTagsReqbody) String added in v0.1.19

func (o CreateTagsReqbody) String() string

type CreateTagsRequest added in v0.1.19

type CreateTagsRequest struct {

	// 资源类型
	ResourceType string `json:"resource_type"`

	// 资源id
	ResourceId string `json:"resource_id"`

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

Request Object

func (CreateTagsRequest) String added in v0.1.19

func (o CreateTagsRequest) String() string

type CreateTagsResponse added in v0.1.19

type CreateTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTagsResponse) String added in v0.1.19

func (o CreateTagsResponse) String() string

type CreateTransferRequest added in v0.0.69

type CreateTransferRequest struct {
	Body *CreateTransferRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTransferRequest) String added in v0.0.69

func (o CreateTransferRequest) String() string

type CreateTransferRequestBody added in v0.0.69

type CreateTransferRequestBody struct {

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 日志流ID集合
	LogStreams []CreateTransferRequestBodyLogStreams `json:"log_streams"`

	LogTransferInfo *CreateTransferRequestBodyLogTransferInfo `json:"log_transfer_info"`
}

创建OBS转储,DIS转储,DMS转储

func (CreateTransferRequestBody) String added in v0.0.69

func (o CreateTransferRequestBody) String() string

type CreateTransferRequestBodyLogStreams added in v0.0.69

type CreateTransferRequestBodyLogStreams struct {

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`
}

func (CreateTransferRequestBodyLogStreams) String added in v0.0.69

type CreateTransferRequestBodyLogTransferInfo added in v0.0.69

type CreateTransferRequestBodyLogTransferInfo struct {

	// 日志转储类型。OBS指OBS日志转储,DIS指DIS日志转储,DMS指DMS日志转储
	LogTransferType string `json:"log_transfer_type"`

	// 日志转储方式。cycle是指周期性转储,realTime是指实时转储。OBS转储只支持\"cycle\",DIS转储和DMS转储只支持\"realTime\"。
	LogTransferMode CreateTransferRequestBodyLogTransferInfoLogTransferMode `json:"log_transfer_mode"`

	// 日志转储格式。只支持\"RAW\", \"JSON\"。RAW是指原始日志格式,JSON是指JSON日志格式。OBS转储和DIS转储支持JSON和RAW,DMS转储仅支持RAW
	LogStorageFormat CreateTransferRequestBodyLogTransferInfoLogStorageFormat `json:"log_storage_format"`

	// 日志转储状态,只支持\"ENABLE\",\"DISABLE\",\"EXCEPTION\"。ENABLE是指日志转储开启状态,DISABLE是指日志转储关闭状态,EXCEPTION是指日志转储异常状态
	LogTransferStatus CreateTransferRequestBodyLogTransferInfoLogTransferStatus `json:"log_transfer_status"`

	LogAgencyTransfer *CreateTransferRequestBodyLogTransferInfoLogAgencyTransfer `json:"log_agency_transfer,omitempty"`

	LogTransferDetail *TransferDetail `json:"log_transfer_detail"`
}

日志转储信息

func (CreateTransferRequestBodyLogTransferInfo) String added in v0.0.69

type CreateTransferRequestBodyLogTransferInfoLogAgencyTransfer added in v0.0.69

type CreateTransferRequestBodyLogTransferInfoLogAgencyTransfer struct {

	// 委托方账号ID
	AgencyDomainId string `json:"agency_domain_id"`

	// 委托方账号名称
	AgencyDomainName string `json:"agency_domain_name"`

	// 委托方配置的委托名称
	AgencyName string `json:"agency_name"`

	// 委托方项目ID
	AgencyProjectId string `json:"agency_project_id"`

	// 被委托方账号ID,实际配置转储的账号ID
	BeAgencyDomainId string `json:"be_agency_domain_id"`

	// 被委托方项目ID,实际配置转储的账号的项目ID
	BeAgencyProjectId string `json:"be_agency_project_id"`
}

委托转储信息。若配置委托转储,则需要输入该参数

func (CreateTransferRequestBodyLogTransferInfoLogAgencyTransfer) String added in v0.0.69

type CreateTransferRequestBodyLogTransferInfoLogStorageFormat added in v0.0.69

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

func (CreateTransferRequestBodyLogTransferInfoLogStorageFormat) MarshalJSON added in v0.0.69

func (*CreateTransferRequestBodyLogTransferInfoLogStorageFormat) UnmarshalJSON added in v0.0.69

func (CreateTransferRequestBodyLogTransferInfoLogStorageFormat) Value added in v0.0.90

type CreateTransferRequestBodyLogTransferInfoLogStorageFormatEnum added in v0.0.69

type CreateTransferRequestBodyLogTransferInfoLogStorageFormatEnum struct {
	JSON CreateTransferRequestBodyLogTransferInfoLogStorageFormat
	RAW  CreateTransferRequestBodyLogTransferInfoLogStorageFormat
}

func GetCreateTransferRequestBodyLogTransferInfoLogStorageFormatEnum added in v0.0.69

func GetCreateTransferRequestBodyLogTransferInfoLogStorageFormatEnum() CreateTransferRequestBodyLogTransferInfoLogStorageFormatEnum

type CreateTransferRequestBodyLogTransferInfoLogTransferMode added in v0.0.69

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

func (CreateTransferRequestBodyLogTransferInfoLogTransferMode) MarshalJSON added in v0.0.69

func (*CreateTransferRequestBodyLogTransferInfoLogTransferMode) UnmarshalJSON added in v0.0.69

func (CreateTransferRequestBodyLogTransferInfoLogTransferMode) Value added in v0.0.90

type CreateTransferRequestBodyLogTransferInfoLogTransferModeEnum added in v0.0.69

type CreateTransferRequestBodyLogTransferInfoLogTransferModeEnum struct {
	CYCLE     CreateTransferRequestBodyLogTransferInfoLogTransferMode
	REAL_TIME CreateTransferRequestBodyLogTransferInfoLogTransferMode
}

func GetCreateTransferRequestBodyLogTransferInfoLogTransferModeEnum added in v0.0.69

func GetCreateTransferRequestBodyLogTransferInfoLogTransferModeEnum() CreateTransferRequestBodyLogTransferInfoLogTransferModeEnum

type CreateTransferRequestBodyLogTransferInfoLogTransferStatus added in v0.0.69

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

func (CreateTransferRequestBodyLogTransferInfoLogTransferStatus) MarshalJSON added in v0.0.69

func (*CreateTransferRequestBodyLogTransferInfoLogTransferStatus) UnmarshalJSON added in v0.0.69

func (CreateTransferRequestBodyLogTransferInfoLogTransferStatus) Value added in v0.0.90

type CreateTransferResponse added in v0.0.69

type CreateTransferResponse struct {

	// 日志组ID
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流ID集合
	LogStreams *[]CreateTransferResponseBodyLogStreams `json:"log_streams,omitempty"`

	// 日志转储ID
	LogTransferId *string `json:"log_transfer_id,omitempty"`

	LogTransferInfo *CreateTransferResponseBodyLogTransferInfo `json:"log_transfer_info,omitempty"`
	HttpStatusCode  int                                        `json:"-"`
}

Response Object

func (CreateTransferResponse) String added in v0.0.69

func (o CreateTransferResponse) String() string

type CreateTransferResponseBody added in v0.0.69

type CreateTransferResponseBody struct {

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 日志组名称
	LogGroupName string `json:"log_group_name"`

	// 日志流ID集合
	LogStreams []CreateTransferResponseBodyLogStreams `json:"log_streams"`

	// 日志转储ID
	LogTransferId string `json:"log_transfer_id"`

	LogTransferInfo *CreateTransferResponseBodyLogTransferInfo `json:"log_transfer_info"`
}

func (CreateTransferResponseBody) String added in v0.0.69

type CreateTransferResponseBodyLogStreams added in v0.0.69

type CreateTransferResponseBodyLogStreams struct {

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

	// 日志流名称
	LogStreamName string `json:"log_stream_name"`
}

func (CreateTransferResponseBodyLogStreams) String added in v0.0.69

type CreateTransferResponseBodyLogTransferInfo added in v0.0.69

type CreateTransferResponseBodyLogTransferInfo struct {
	LogAgencyTransfer *CreateTransferResponseBodyLogTransferInfoLogAgencyTransfer `json:"log_agency_transfer,omitempty"`

	// 日志转储创建时间
	LogCreateTime int64 `json:"log_create_time"`

	// 日志转储格式。只支持\"RAW\", \"JSON\"。RAW是指原始日志格式,JSON是指JSON日志格式。OBS转储和DIS转储支持JSON和RAW,DMS转储仅支持RAW
	LogStorageFormat CreateTransferResponseBodyLogTransferInfoLogStorageFormat `json:"log_storage_format"`

	// 日志转储详细信息
	LogTransferDetail *TransferDetail `json:"log_transfer_detail"`

	// 日志转储方式。cycle是指周期性转储,realTime是指实时转储。OBS转储只支持\"cycle\",DIS转储和DMS转储只支持\"realTime\"。
	LogTransferMode CreateTransferResponseBodyLogTransferInfoLogTransferMode `json:"log_transfer_mode"`

	// 日志转储状态,ENABLE是指日志转储开启状态,DISABLE是指日志转储关闭状态,EXCEPTION是指日志转储异常状态
	LogTransferStatus CreateTransferResponseBodyLogTransferInfoLogTransferStatus `json:"log_transfer_status"`

	// 日志转储类型。OBS指OBS日志转储,DIS指DIS日志转储,DMS指DMS日志转储
	LogTransferType CreateTransferResponseBodyLogTransferInfoLogTransferType `json:"log_transfer_type"`
}

日志转储信息

func (CreateTransferResponseBodyLogTransferInfo) String added in v0.0.69

type CreateTransferResponseBodyLogTransferInfoLogAgencyTransfer added in v0.0.69

type CreateTransferResponseBodyLogTransferInfoLogAgencyTransfer struct {

	// 委托方账号ID
	AgencyDomainId string `json:"agency_domain_id"`

	// 委托方账号名称
	AgencyDomainName string `json:"agency_domain_name"`

	// 委托方配置的委托名称
	AgencyName string `json:"agency_name"`

	// 委托方项目ID
	AgencyProjectId string `json:"agency_project_id"`

	// 被委托方账号ID,实际配置转储的账号ID
	BeAgencyDomainId string `json:"be_agency_domain_id"`

	// 被委托方项目ID,实际配置转储的账号的项目ID
	BeAgencyProjectId string `json:"be_agency_project_id"`
}

委托转储信息。若转储为委托转储,则会返回该参数

func (CreateTransferResponseBodyLogTransferInfoLogAgencyTransfer) String added in v0.0.69

type CreateTransferResponseBodyLogTransferInfoLogStorageFormat added in v0.0.69

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

func (CreateTransferResponseBodyLogTransferInfoLogStorageFormat) MarshalJSON added in v0.0.69

func (*CreateTransferResponseBodyLogTransferInfoLogStorageFormat) UnmarshalJSON added in v0.0.69

func (CreateTransferResponseBodyLogTransferInfoLogStorageFormat) Value added in v0.0.90

type CreateTransferResponseBodyLogTransferInfoLogStorageFormatEnum added in v0.0.69

type CreateTransferResponseBodyLogTransferInfoLogStorageFormatEnum struct {
	JSON CreateTransferResponseBodyLogTransferInfoLogStorageFormat
	RAW  CreateTransferResponseBodyLogTransferInfoLogStorageFormat
}

func GetCreateTransferResponseBodyLogTransferInfoLogStorageFormatEnum added in v0.0.69

func GetCreateTransferResponseBodyLogTransferInfoLogStorageFormatEnum() CreateTransferResponseBodyLogTransferInfoLogStorageFormatEnum

type CreateTransferResponseBodyLogTransferInfoLogTransferMode added in v0.0.69

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

func (CreateTransferResponseBodyLogTransferInfoLogTransferMode) MarshalJSON added in v0.0.69

func (*CreateTransferResponseBodyLogTransferInfoLogTransferMode) UnmarshalJSON added in v0.0.69

func (CreateTransferResponseBodyLogTransferInfoLogTransferMode) Value added in v0.0.90

type CreateTransferResponseBodyLogTransferInfoLogTransferModeEnum added in v0.0.69

type CreateTransferResponseBodyLogTransferInfoLogTransferModeEnum struct {
	CYCLE     CreateTransferResponseBodyLogTransferInfoLogTransferMode
	REAL_TIME CreateTransferResponseBodyLogTransferInfoLogTransferMode
}

func GetCreateTransferResponseBodyLogTransferInfoLogTransferModeEnum added in v0.0.69

func GetCreateTransferResponseBodyLogTransferInfoLogTransferModeEnum() CreateTransferResponseBodyLogTransferInfoLogTransferModeEnum

type CreateTransferResponseBodyLogTransferInfoLogTransferStatus added in v0.0.69

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

func (CreateTransferResponseBodyLogTransferInfoLogTransferStatus) MarshalJSON added in v0.0.69

func (*CreateTransferResponseBodyLogTransferInfoLogTransferStatus) UnmarshalJSON added in v0.0.69

func (CreateTransferResponseBodyLogTransferInfoLogTransferStatus) Value added in v0.0.90

type CreateTransferResponseBodyLogTransferInfoLogTransferType added in v0.0.69

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

func (CreateTransferResponseBodyLogTransferInfoLogTransferType) MarshalJSON added in v0.0.69

func (*CreateTransferResponseBodyLogTransferInfoLogTransferType) UnmarshalJSON added in v0.0.69

func (CreateTransferResponseBodyLogTransferInfoLogTransferType) Value added in v0.0.90

type CreatefavoriteReqbody added in v0.1.19

type CreatefavoriteReqbody struct {

	// 企业项目id
	EpsId *string `json:"eps_id,omitempty"`

	// 收藏资源id
	FavoriteResourceId string `json:"favorite_resource_id"`

	// 收藏资源类型
	FavoriteResourceType string `json:"favorite_resource_type"`

	// 日志组id
	LogGroupId string `json:"log_group_id"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流id
	LogStreamId string `json:"log_stream_id"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`
}

func (CreatefavoriteReqbody) String added in v0.1.19

func (o CreatefavoriteReqbody) String() string

type CreatefavoriteRequest added in v0.1.19

type CreatefavoriteRequest struct {
	Body *CreatefavoriteReqbody `json:"body,omitempty"`
}

Request Object

func (CreatefavoriteRequest) String added in v0.1.19

func (o CreatefavoriteRequest) String() string

type CreatefavoriteResponse added in v0.1.19

type CreatefavoriteResponse struct {

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

	// 企业项目id
	EpsId *string `json:"eps_id,omitempty"`

	// 收藏资源id
	FavoriteResourceId *string `json:"favorite_resource_id,omitempty"`

	// 收藏资源类型
	FavoriteResourceType *string `json:"favorite_resource_type,omitempty"`

	// 日志组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`

	// 项目id
	ProjectId      *string `json:"project_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreatefavoriteResponse) String added in v0.1.19

func (o CreatefavoriteResponse) String() string

type DeleteAccessConfigRequest added in v0.0.71

type DeleteAccessConfigRequest struct {
	Body *DeleteAccessConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteAccessConfigRequest) String added in v0.0.71

func (o DeleteAccessConfigRequest) String() string

type DeleteAccessConfigRequestBody added in v0.0.71

type DeleteAccessConfigRequestBody struct {

	// 日志接入ID列表
	AccessConfigIdList []string `json:"access_config_id_list"`
}

删除日志接入请求体

func (DeleteAccessConfigRequestBody) String added in v0.0.71

type DeleteAccessConfigResponse added in v0.0.71

type DeleteAccessConfigResponse struct {

	// 日志接入列表
	Result *[]AccessConfigInfo `json:"result,omitempty"`

	// 日志接入总数
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (DeleteAccessConfigResponse) String added in v0.0.71

type DeleteActiveAlarmsRequest added in v0.0.68

type DeleteActiveAlarmsRequest struct {

	// domainId
	DomainId string `json:"domain_id"`

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

Request Object

func (DeleteActiveAlarmsRequest) String added in v0.0.68

func (o DeleteActiveAlarmsRequest) String() string

type DeleteActiveAlarmsRequestBody added in v0.0.68

type DeleteActiveAlarmsRequestBody struct {

	// 主题信息
	Events []Event `json:"events"`
}

func (DeleteActiveAlarmsRequestBody) String added in v0.0.68

type DeleteActiveAlarmsResponse added in v0.0.68

type DeleteActiveAlarmsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteActiveAlarmsResponse) String added in v0.0.68

type DeleteAomMappingRulesRequest added in v0.0.68

type DeleteAomMappingRulesRequest struct {

	// 接入lts规则id
	Id string `json:"id"`
}

Request Object

func (DeleteAomMappingRulesRequest) String added in v0.0.68

type DeleteAomMappingRulesResponse added in v0.0.68

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

Response Object

func (DeleteAomMappingRulesResponse) String added in v0.0.68

type DeleteHostGroupRequest added in v0.0.71

type DeleteHostGroupRequest struct {
	Body *DeleteHostGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteHostGroupRequest) String added in v0.0.71

func (o DeleteHostGroupRequest) String() string

type DeleteHostGroupRequestBody added in v0.0.71

type DeleteHostGroupRequestBody struct {

	// 主机组ID列表
	HostGroupIdList []string `json:"host_group_id_list"`
}

删除主机组请求体

func (DeleteHostGroupRequestBody) String added in v0.0.71

type DeleteHostGroupResponse added in v0.0.71

type DeleteHostGroupResponse struct {

	// 主机组详细信息
	Result *[]GetHostGroupInfo `json:"result,omitempty"`

	// 删除主机组数量
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (DeleteHostGroupResponse) String added in v0.0.71

func (o DeleteHostGroupResponse) String() string

type DeleteKeywordsAlarmRuleRequest added in v0.0.68

type DeleteKeywordsAlarmRuleRequest struct {

	// 关键词告警规则id
	KeywordsAlarmRuleId string `json:"keywords_alarm_rule_id"`
}

Request Object

func (DeleteKeywordsAlarmRuleRequest) String added in v0.0.68

type DeleteKeywordsAlarmRuleResponse added in v0.0.68

type DeleteKeywordsAlarmRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteKeywordsAlarmRuleResponse) String added in v0.0.68

type DeleteLogGroupRequest

type DeleteLogGroupRequest struct {

	// 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html
	LogGroupId string `json:"log_group_id"`
}

Request Object

func (DeleteLogGroupRequest) String

func (o DeleteLogGroupRequest) String() string

type DeleteLogGroupResponse

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

Response Object

func (DeleteLogGroupResponse) String

func (o DeleteLogGroupResponse) String() string

type DeleteLogStreamRequest

type DeleteLogStreamRequest struct {

	// 租户想删除的日志流所在的日志组的groupid,一般为36位字符串。
	LogGroupId string `json:"log_group_id"`

	// 需要删除的日志流ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	LogStreamId string `json:"log_stream_id"`
}

Request Object

func (DeleteLogStreamRequest) String

func (o DeleteLogStreamRequest) String() string

type DeleteLogStreamResponse

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

Response Object

func (DeleteLogStreamResponse) String

func (o DeleteLogStreamResponse) String() string

type DeleteNotificationTemplateBody added in v0.0.69

type DeleteNotificationTemplateBody struct {

	// 待删除模板名称数组
	TemplateNames []string `json:"template_names"`
}

删除通知模板参数体

func (DeleteNotificationTemplateBody) String added in v0.0.69

type DeleteNotificationTemplateRequest added in v0.0.69

type DeleteNotificationTemplateRequest struct {

	// 账号id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	DomainId string `json:"domain_id"`

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

Request Object

func (DeleteNotificationTemplateRequest) String added in v0.0.69

type DeleteNotificationTemplateResponse added in v0.0.69

type DeleteNotificationTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNotificationTemplateResponse) String added in v0.0.69

type DeleteSearchCriterias added in v0.1.19

type DeleteSearchCriterias struct {

	// 企业项目id
	EpsId *string `json:"eps_id,omitempty"`

	// 快速查询id
	Id string `json:"id"`
}

func (DeleteSearchCriterias) String added in v0.1.19

func (o DeleteSearchCriterias) String() string

type DeleteSearchCriteriasRequest added in v0.1.19

type DeleteSearchCriteriasRequest struct {

	// 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。  缺省值:None  最小长度:36  最大长度:36
	GroupId string `json:"group_id"`

	// 日志流id
	TopicId string `json:"topic_id"`

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

Request Object

func (DeleteSearchCriteriasRequest) String added in v0.1.19

type DeleteSearchCriteriasResponse added in v0.1.19

type DeleteSearchCriteriasResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSearchCriteriasResponse) String added in v0.1.19

type DeleteSqlAlarmRuleRequest added in v0.0.68

type DeleteSqlAlarmRuleRequest struct {

	// Sql告警规则id
	SqlAlarmRuleId string `json:"sql_alarm_rule_id"`
}

Request Object

func (DeleteSqlAlarmRuleRequest) String added in v0.0.68

func (o DeleteSqlAlarmRuleRequest) String() string

type DeleteSqlAlarmRuleResponse added in v0.0.68

type DeleteSqlAlarmRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteSqlAlarmRuleResponse) String added in v0.0.68

type DeleteStructTemplateReqBody added in v0.0.68

type DeleteStructTemplateReqBody struct {

	// 结构化规则ID
	Id string `json:"id"`
}

删除结构化配置参数

func (DeleteStructTemplateReqBody) String added in v0.0.68

type DeleteStructTemplateRequest added in v0.0.68

type DeleteStructTemplateRequest struct {
	Body *DeleteStructTemplateReqBody `json:"body,omitempty"`
}

Request Object

func (DeleteStructTemplateRequest) String added in v0.0.68

type DeleteStructTemplateResponse added in v0.0.68

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

Response Object

func (DeleteStructTemplateResponse) String added in v0.0.68

type DeleteTransferRequest added in v0.0.69

type DeleteTransferRequest struct {

	// 日志转储ID。获取ID有3种方式: 1. 调用查询日志转储接口,返回值有日志转储ID  2. 调用新增日志转储接口,返回值有日志转储ID 3. 调用删除日志转储接口,返回值有日志转储ID
	LogTransferId string `json:"log_transfer_id"`
}

Request Object

func (DeleteTransferRequest) String added in v0.0.69

func (o DeleteTransferRequest) String() string

type DeleteTransferResponse added in v0.0.69

type DeleteTransferResponse struct {

	// 日志组ID
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流ID集合
	LogStreams *[]CreateTransferResponseBodyLogStreams `json:"log_streams,omitempty"`

	// 日志转储ID
	LogTransferId *string `json:"log_transfer_id,omitempty"`

	LogTransferInfo *CreateTransferResponseBodyLogTransferInfo `json:"log_transfer_info,omitempty"`
	HttpStatusCode  int                                        `json:"-"`
}

Response Object

func (DeleteTransferResponse) String added in v0.0.69

func (o DeleteTransferResponse) String() string

type DeletefavoriteRequest added in v0.1.19

type DeletefavoriteRequest struct {

	// 收藏资源id
	FavResId string `json:"fav_res_id"`
}

Request Object

func (DeletefavoriteRequest) String added in v0.1.19

func (o DeletefavoriteRequest) String() string

type DeletefavoriteResponse added in v0.1.19

type DeletefavoriteResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletefavoriteResponse) String added in v0.1.19

func (o DeletefavoriteResponse) String() string

type DemoField added in v0.0.78

type DemoField struct {

	// 字段名称
	FieldName string `json:"field_name"`

	// 字段示例内容
	Content *string `json:"content,omitempty"`

	// 字段数据类型。 可选范围:string、long、float
	Type DemoFieldType `json:"type"`

	// 是否开启快速分析
	IsAnalysis *bool `json:"is_analysis,omitempty"`

	// 手动正则及分隔符方式中字段序号
	Index *int32 `json:"index,omitempty"`

	// 描叙多层级json中字段间的层级关系
	Relation *string `json:"relation,omitempty"`

	// json及nginx方式中字段自定义别名
	UserDefinedName *string `json:"user_defined_name,omitempty"`
}

示例字段对象

func (DemoField) String added in v0.0.78

func (o DemoField) String() string

type DemoFieldType added in v0.0.78

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

func (DemoFieldType) MarshalJSON added in v0.0.78

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

func (*DemoFieldType) UnmarshalJSON added in v0.0.78

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

func (DemoFieldType) Value added in v0.0.90

func (c DemoFieldType) Value() string

type DemoFieldTypeEnum added in v0.0.78

type DemoFieldTypeEnum struct {
	STRING DemoFieldType
	LONG   DemoFieldType
	FLOAT  DemoFieldType
}

func GetDemoFieldTypeEnum added in v0.0.78

func GetDemoFieldTypeEnum() DemoFieldTypeEnum

type DisableLogCollectionRequest

type DisableLogCollectionRequest struct {
}

Request Object

func (DisableLogCollectionRequest) String

type DisableLogCollectionResponse

type DisableLogCollectionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DisableLogCollectionResponse) String

type EnableLogCollectionRequest

type EnableLogCollectionRequest struct {
}

Request Object

func (EnableLogCollectionRequest) String

type EnableLogCollectionResponse

type EnableLogCollectionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (EnableLogCollectionResponse) String

type Event added in v0.0.68

type Event struct {
	Metadata *Metadata `json:"metadata"`

	// 告警产生时间(时间戳)
	StartsAt int64 `json:"starts_at"`
}

func (Event) String added in v0.0.68

func (o Event) String() string

type Events added in v0.0.68

type Events struct {
	Annotations *Annotations `json:"annotations"`

	Metadata *Metadata `json:"metadata"`

	// 到达时间(时间戳)
	ArrivesAt int64 `json:"arrives_at"`

	// 告警清除时间(时间戳)
	EndsAt int64 `json:"ends_at"`

	// 告警id
	Id string `json:"id"`

	// 告警产生时间(时间戳)
	StartsAt int64 `json:"starts_at"`

	// 告警自动清除时间(时间戳)
	Timeout int64 `json:"timeout"`

	// 告警规则类型(SQL/关键词)
	Type string `json:"type"`
}

func (Events) String added in v0.0.68

func (o Events) String() string

type FieldModel added in v0.0.78

type FieldModel struct {

	// 字段名称
	FieldName string `json:"field_name"`

	// 是否开启快速分析。
	IsAnalysis *bool `json:"is_analysis,omitempty"`
}

创建结构化模板中的字段模型

func (FieldModel) String added in v0.0.78

func (o FieldModel) String() string

type Frequency added in v0.0.68

type Frequency struct {

	// 时间类型
	Type FrequencyType `json:"type"`

	// 当字段type为\"CRON\"时取该字段
	CronExpr *string `json:"cron_expr,omitempty"`

	// 当字段type为\"DAILY\"或者\"WEEKLY\"时取该字段
	HourOfDay *int32 `json:"hour_of_day,omitempty"`

	// 当字段type为\"WEEKLY\"时取该字段(周日~周六)
	DayOfWeek *int32 `json:"day_of_week,omitempty"`

	// 当字段type为\"FIXED_RATE\"时取该字段(当fixed_rate_unit单位为minute,最大值60;当fixed_rate_unit单位为hour,最大值24)
	FixedRate *int32 `json:"fixed_rate,omitempty"`

	// 时间单位
	FixedRateUnit *FrequencyFixedRateUnit `json:"fixed_rate_unit,omitempty"`
}

func (Frequency) String added in v0.0.68

func (o Frequency) String() string

type FrequencyFixedRateUnit added in v0.0.68

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

func (FrequencyFixedRateUnit) MarshalJSON added in v0.0.68

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

func (*FrequencyFixedRateUnit) UnmarshalJSON added in v0.0.68

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

func (FrequencyFixedRateUnit) Value added in v0.0.90

func (c FrequencyFixedRateUnit) Value() string

type FrequencyFixedRateUnitEnum added in v0.0.68

type FrequencyFixedRateUnitEnum struct {
	MINUTE FrequencyFixedRateUnit
	HOUR   FrequencyFixedRateUnit
}

func GetFrequencyFixedRateUnitEnum added in v0.0.68

func GetFrequencyFixedRateUnitEnum() FrequencyFixedRateUnitEnum

type FrequencyType added in v0.0.68

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

func (FrequencyType) MarshalJSON added in v0.0.68

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

func (*FrequencyType) UnmarshalJSON added in v0.0.68

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

func (FrequencyType) Value added in v0.0.90

func (c FrequencyType) Value() string

type FrequencyTypeEnum added in v0.0.68

type FrequencyTypeEnum struct {
	CRON       FrequencyType
	HOURLY     FrequencyType
	DAILY      FrequencyType
	WEEKLY     FrequencyType
	FIXED_RATE FrequencyType
}

func GetFrequencyTypeEnum added in v0.0.68

func GetFrequencyTypeEnum() FrequencyTypeEnum

type GetAccessConfigListRequestBody added in v0.0.71

type GetAccessConfigListRequestBody struct {

	// 接入配置名称列表
	AccessConfigNameList []string `json:"access_config_name_list"`

	// 主机组名称列表
	HostGroupNameList []string `json:"host_group_name_list"`

	// 日志组名称列表
	LogGroupNameList []string `json:"log_group_name_list"`

	// 日志流名称列表
	LogStreamNameList []string `json:"log_stream_name_list"`

	AccessConfigTagList *[]AccessConfigTag `json:"access_config_tag_list,omitempty"`
}

查询日志接入列表请求体

func (GetAccessConfigListRequestBody) String added in v0.0.71

type GetHostGroupInfo added in v0.0.71

type GetHostGroupInfo struct {

	// 主机组ID
	HostGroupId *string `json:"host_group_id,omitempty"`

	// 主机组名称
	HostGroupName *string `json:"host_group_name,omitempty"`

	// 主机组类型。linux:linux类型,windows:windows类型
	HostGroupType *GetHostGroupInfoHostGroupType `json:"host_group_type,omitempty"`

	// 主机ID列表
	HostIdList *[]string `json:"host_id_list,omitempty"`

	// 标签信息
	HostGroupTag *[]HostGroupTag `json:"host_group_tag,omitempty"`

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

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

主机组详细信息

func (GetHostGroupInfo) String added in v0.0.71

func (o GetHostGroupInfo) String() string

type GetHostGroupInfoHostGroupType added in v0.0.71

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

func (GetHostGroupInfoHostGroupType) MarshalJSON added in v0.0.71

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

func (*GetHostGroupInfoHostGroupType) UnmarshalJSON added in v0.0.71

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

func (GetHostGroupInfoHostGroupType) Value added in v0.0.90

type GetHostGroupInfoHostGroupTypeEnum added in v0.0.71

type GetHostGroupInfoHostGroupTypeEnum struct {
	LINUX   GetHostGroupInfoHostGroupType
	WINDOWS GetHostGroupInfoHostGroupType
}

func GetGetHostGroupInfoHostGroupTypeEnum added in v0.0.71

func GetGetHostGroupInfoHostGroupTypeEnum() GetHostGroupInfoHostGroupTypeEnum

type GetHostGroupListFilter added in v0.0.71

type GetHostGroupListFilter struct {

	// 主机组类型。windows:windows类型,linux:linux类型
	HostGroupType *GetHostGroupListFilterHostGroupType `json:"host_group_type,omitempty"`

	// 主机组名称列表。
	HostGroupNameList *[]string `json:"host_group_name_list,omitempty"`

	// 主机名称列表。
	HostNameList *[]string `json:"host_name_list,omitempty"`

	HostGroupTag *GetHostGroupListTag `json:"host_group_tag,omitempty"`
}

主机组过滤参数

func (GetHostGroupListFilter) String added in v0.0.71

func (o GetHostGroupListFilter) String() string

type GetHostGroupListFilterHostGroupType added in v0.0.71

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

func (GetHostGroupListFilterHostGroupType) MarshalJSON added in v0.0.71

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

func (*GetHostGroupListFilterHostGroupType) UnmarshalJSON added in v0.0.71

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

func (GetHostGroupListFilterHostGroupType) Value added in v0.0.90

type GetHostGroupListFilterHostGroupTypeEnum added in v0.0.71

type GetHostGroupListFilterHostGroupTypeEnum struct {
	WINDOWS GetHostGroupListFilterHostGroupType
	LINUX   GetHostGroupListFilterHostGroupType
}

func GetGetHostGroupListFilterHostGroupTypeEnum added in v0.0.71

func GetGetHostGroupListFilterHostGroupTypeEnum() GetHostGroupListFilterHostGroupTypeEnum

type GetHostGroupListRequestBody added in v0.0.71

type GetHostGroupListRequestBody struct {

	// 主机组ID
	HostGroupIdList []string `json:"host_group_id_list"`

	Filter *GetHostGroupListFilter `json:"filter"`
}

func (GetHostGroupListRequestBody) String added in v0.0.71

type GetHostGroupListTag added in v0.0.71

type GetHostGroupListTag struct {

	// 标签类型。AND:标签过滤的逻辑为与,OR:标签过滤的逻辑为或
	TagType *GetHostGroupListTagTagType `json:"tag_type,omitempty"`

	// 主机组标签
	TagList *[]HostGroupTag `json:"tag_list,omitempty"`
}

主机组标签信息

func (GetHostGroupListTag) String added in v0.0.71

func (o GetHostGroupListTag) String() string

type GetHostGroupListTagTagType added in v0.0.71

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

func (GetHostGroupListTagTagType) MarshalJSON added in v0.0.71

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

func (*GetHostGroupListTagTagType) UnmarshalJSON added in v0.0.71

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

func (GetHostGroupListTagTagType) Value added in v0.0.90

type GetHostGroupListTagTagTypeEnum added in v0.0.71

type GetHostGroupListTagTagTypeEnum struct {
	AND GetHostGroupListTagTagType
	OR  GetHostGroupListTagTagType
}

func GetGetHostGroupListTagTagTypeEnum added in v0.0.71

func GetGetHostGroupListTagTagTypeEnum() GetHostGroupListTagTagTypeEnum

type GetHostListFilter added in v0.0.71

type GetHostListFilter struct {

	// 主机名称列表。可以根据主机名称列表,进行批量过滤。
	HostNameList *[]string `json:"host_name_list,omitempty"`

	// 主机ID列表。可以根据主机IP列表,进行批量过滤。
	HostIpList *[]string `json:"host_ip_list,omitempty"`

	// 主机状态。可以根据主机状态进行过滤。 uninstall:未安装 running:运行 offline:离线 error:异常 plugin error:插件错误 installing:安装中 install-fail:安装失败 upgrading:升级中 upgrading-transient:升级中 upgrade failed:升级失败 upgrade-fail:升级失败 uninstalling:卸载中 uninstalling-transient:卸载中 authentication error:鉴权失败
	HostStatus *GetHostListFilterHostStatus `json:"host_status,omitempty"`

	// 主机版本。可以根据主机版本进行过滤。
	HostVersion *string `json:"host_version,omitempty"`
}

查询主机信息过滤参数

func (GetHostListFilter) String added in v0.0.71

func (o GetHostListFilter) String() string

type GetHostListFilterHostStatus added in v0.0.71

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

func (GetHostListFilterHostStatus) MarshalJSON added in v0.0.71

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

func (*GetHostListFilterHostStatus) UnmarshalJSON added in v0.0.71

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

func (GetHostListFilterHostStatus) Value added in v0.0.90

type GetHostListFilterHostStatusEnum added in v0.0.71

func GetGetHostListFilterHostStatusEnum added in v0.0.71

func GetGetHostListFilterHostStatusEnum() GetHostListFilterHostStatusEnum

type GetHostListInfo added in v0.0.71

type GetHostListInfo struct {

	// 主机ID
	HostId *string `json:"host_id,omitempty"`

	// 主机IP
	HostIp *string `json:"host_ip,omitempty"`

	// 主机名称
	HostName *string `json:"host_name,omitempty"`

	// 主机状态。 uninstall:未安装 running:运行 offline:离线 error:异常 plugin error:插件错误 installing:安装中 install-fail:安装失败 upgrading:升级中 upgrading-transient:升级中 upgrade failed:升级失败 upgrade-fail:升级失败 uninstalling:卸载中 uninstalling-transient:卸载中 authentication error:鉴权失败
	HostStatus *GetHostListInfoHostStatus `json:"host_status,omitempty"`

	// 主机类型。linux:linux类型,windows:windows类型
	HostType *GetHostListInfoHostType `json:"host_type,omitempty"`

	// 主机版本
	HostVersion *string `json:"host_version,omitempty"`

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

主机详细信息

func (GetHostListInfo) String added in v0.0.71

func (o GetHostListInfo) String() string

type GetHostListInfoHostStatus added in v0.0.71

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

func (GetHostListInfoHostStatus) MarshalJSON added in v0.0.71

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

func (*GetHostListInfoHostStatus) UnmarshalJSON added in v0.0.71

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

func (GetHostListInfoHostStatus) Value added in v0.0.90

type GetHostListInfoHostStatusEnum added in v0.0.71

type GetHostListInfoHostStatusEnum struct {
	UNINSTALL              GetHostListInfoHostStatus
	RUNNING                GetHostListInfoHostStatus
	OFFLINE                GetHostListInfoHostStatus
	ERROR                  GetHostListInfoHostStatus
	PLUGIN_ERROR           GetHostListInfoHostStatus
	INSTALLING             GetHostListInfoHostStatus
	INSTALL_FAIL           GetHostListInfoHostStatus
	UPGRADING              GetHostListInfoHostStatus
	UPGRADING_TRANSIENT    GetHostListInfoHostStatus
	UPGRADE_FAILED         GetHostListInfoHostStatus
	UPGRADE_FAIL           GetHostListInfoHostStatus
	UNINSTALLING           GetHostListInfoHostStatus
	UNINSTALLING_TRANSIENT GetHostListInfoHostStatus
	AUTHENTICATION_ERROR   GetHostListInfoHostStatus
}

func GetGetHostListInfoHostStatusEnum added in v0.0.71

func GetGetHostListInfoHostStatusEnum() GetHostListInfoHostStatusEnum

type GetHostListInfoHostType added in v0.0.71

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

func (GetHostListInfoHostType) MarshalJSON added in v0.0.71

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

func (*GetHostListInfoHostType) UnmarshalJSON added in v0.0.71

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

func (GetHostListInfoHostType) Value added in v0.0.90

func (c GetHostListInfoHostType) Value() string

type GetHostListInfoHostTypeEnum added in v0.0.71

type GetHostListInfoHostTypeEnum struct {
	LINUX   GetHostListInfoHostType
	WINDOWS GetHostListInfoHostType
}

func GetGetHostListInfoHostTypeEnum added in v0.0.71

func GetGetHostListInfoHostTypeEnum() GetHostListInfoHostTypeEnum

type GetHostListRequestBody added in v0.0.71

type GetHostListRequestBody struct {

	// 主机ID列表。可以根据主机ID列表进行批量过滤
	HostIdList *[]string `json:"host_id_list,omitempty"`

	Filter *GetHostListFilter `json:"filter"`
}

查询主机信息请求体

func (GetHostListRequestBody) String added in v0.0.71

func (o GetHostListRequestBody) String() string

type GetQuerySearchCriteriasBody added in v0.1.19

type GetQuerySearchCriteriasBody struct {

	// 快速查询字段
	Criteria *string `json:"criteria,omitempty"`

	// 快速查询名称
	Name *string `json:"name,omitempty"`

	// 快速查询id
	Id *string `json:"id,omitempty"`

	// 快速查询类型: 原始日志:ORIGINALLOG 可视化日志: VISUALIZATION
	SearchType *string `json:"search_type,omitempty"`
}

func (GetQuerySearchCriteriasBody) String added in v0.1.19

type HostGroupTag added in v0.0.71

type HostGroupTag struct {

	// 标签Key
	Key *string `json:"key,omitempty"`

	// 标签Value
	Value *string `json:"value,omitempty"`
}

标签信息

func (HostGroupTag) String added in v0.0.71

func (o HostGroupTag) String() string

type KeywordsAlarmRuleRespList added in v0.0.68

type KeywordsAlarmRuleRespList struct {

	// 项目id
	ProjectId string `json:"projectId"`

	// 关键词告警id
	KeywordsAlarmRuleId string `json:"keywords_alarm_rule_id"`

	// 关键词告警名称
	KeywordsAlarmRuleName string `json:"keywords_alarm_rule_name"`

	// 关键词告警信息描述
	KeywordsAlarmRuleDescription string `json:"keywords_alarm_rule_description"`

	// 条件
	ConditionExpression string `json:"condition_expression"`

	// 关键词详细信息
	KeywordsRequests []KeywordsRequest `json:"keywords_requests"`

	// 告警统计周期
	Frequency *Frequency `json:"frequency"`

	// 告警级别
	KeywordsAlarmLevel KeywordsAlarmRuleRespListKeywordsAlarmLevel `json:"keywords_alarm_level"`

	// 是否发送
	KeywordsAlarmSend bool `json:"keywords_alarm_send"`

	// domainId
	DomainId string `json:"domain_id"`

	// 创建时间(毫秒时间戳)
	CreateTime int64 `json:"create_time"`

	// 更新时间(毫秒时间戳)
	UpdateTime int64 `json:"update_time"`

	// 主题
	Topics []Topics `json:"topics"`

	TemplateName *string `json:"template_name,omitempty"`

	Status *KeywordsAlarmRuleRespListStatus `json:"status,omitempty"`

	// 触发条件:触发次数;默认为1
	TriggerConditionCount *int32 `json:"trigger_condition_count,omitempty"`

	// 触发条件:触发周期;默认为1
	TriggerConditionFrequency *int32 `json:"trigger_condition_frequency,omitempty"`

	// 是否打开恢复通知;默认false
	WhetherRecoveryPolicy *bool `json:"whether_recovery_policy,omitempty"`

	// 恢复策略周期;默认为3
	RecoveryPolicy *int32 `json:"recovery_policy,omitempty"`
}

func (KeywordsAlarmRuleRespList) String added in v0.0.68

func (o KeywordsAlarmRuleRespList) String() string

type KeywordsAlarmRuleRespListKeywordsAlarmLevel added in v0.0.68

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

func (KeywordsAlarmRuleRespListKeywordsAlarmLevel) MarshalJSON added in v0.0.68

func (*KeywordsAlarmRuleRespListKeywordsAlarmLevel) UnmarshalJSON added in v0.0.68

func (KeywordsAlarmRuleRespListKeywordsAlarmLevel) Value added in v0.0.90

type KeywordsAlarmRuleRespListStatus added in v0.0.76

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

func (KeywordsAlarmRuleRespListStatus) MarshalJSON added in v0.0.76

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

func (*KeywordsAlarmRuleRespListStatus) UnmarshalJSON added in v0.0.76

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

func (KeywordsAlarmRuleRespListStatus) Value added in v0.0.90

type KeywordsAlarmRuleRespListStatusEnum added in v0.0.76

type KeywordsAlarmRuleRespListStatusEnum struct {
	RUNNING  KeywordsAlarmRuleRespListStatus
	STOPPING KeywordsAlarmRuleRespListStatus
}

func GetKeywordsAlarmRuleRespListStatusEnum added in v0.0.76

func GetKeywordsAlarmRuleRespListStatusEnum() KeywordsAlarmRuleRespListStatusEnum

type KeywordsRequest added in v0.0.68

type KeywordsRequest struct {

	// 日志流id
	LogStreamId string `json:"log_stream_id"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`

	// 日志组id
	LogGroupId string `json:"log_group_id"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 关键词
	Keywords string `json:"keywords"`

	// 条件
	Condition KeywordsRequestCondition `json:"condition"`

	// 行数
	Number int32 `json:"number"`

	// 查询执行任务时最近数据的时间范围,最大值为60
	SearchTimeRange int32 `json:"search_time_range"`

	// 查询时间单位
	SearchTimeRangeUnit KeywordsRequestSearchTimeRangeUnit `json:"search_time_range_unit"`
}

func (KeywordsRequest) String added in v0.0.68

func (o KeywordsRequest) String() string

type KeywordsRequestCondition added in v0.0.68

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

func (KeywordsRequestCondition) MarshalJSON added in v0.0.68

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

func (*KeywordsRequestCondition) UnmarshalJSON added in v0.0.68

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

func (KeywordsRequestCondition) Value added in v0.0.90

func (c KeywordsRequestCondition) Value() string

type KeywordsRequestConditionEnum added in v0.0.68

type KeywordsRequestConditionEnum struct {
	GREATER_THAN_OR_EQUAL_TO KeywordsRequestCondition
	LESS_THAN_OR_EQUAL_TO    KeywordsRequestCondition
	LESS_THAN                KeywordsRequestCondition
	GREATER_THAN             KeywordsRequestCondition
}

func GetKeywordsRequestConditionEnum added in v0.0.68

func GetKeywordsRequestConditionEnum() KeywordsRequestConditionEnum

type KeywordsRequestSearchTimeRangeUnit added in v0.0.68

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

func (KeywordsRequestSearchTimeRangeUnit) MarshalJSON added in v0.0.68

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

func (*KeywordsRequestSearchTimeRangeUnit) UnmarshalJSON added in v0.0.68

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

func (KeywordsRequestSearchTimeRangeUnit) Value added in v0.0.90

type KeywordsRequestSearchTimeRangeUnitEnum added in v0.0.68

type KeywordsRequestSearchTimeRangeUnitEnum struct {
	MINUTE KeywordsRequestSearchTimeRangeUnit
}

func GetKeywordsRequestSearchTimeRangeUnitEnum added in v0.0.68

func GetKeywordsRequestSearchTimeRangeUnitEnum() KeywordsRequestSearchTimeRangeUnitEnum

type ListAccessConfigRequest added in v0.0.71

type ListAccessConfigRequest struct {
	Body *GetAccessConfigListRequestBody `json:"body,omitempty"`
}

Request Object

func (ListAccessConfigRequest) String added in v0.0.71

func (o ListAccessConfigRequest) String() string

type ListAccessConfigResponse added in v0.0.71

type ListAccessConfigResponse struct {

	// 日志接入列表
	Result *[]AccessConfigInfo `json:"result,omitempty"`

	// 日志接入总数
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAccessConfigResponse) String added in v0.0.71

func (o ListAccessConfigResponse) String() string

type ListActiveOrHistoryAlarmsRequest added in v0.0.68

type ListActiveOrHistoryAlarmsRequest struct {

	// domainId
	DomainId string `json:"domain_id"`

	// 是活动告警还是历史告警
	Type ListActiveOrHistoryAlarmsRequestType `json:"type"`

	// 取值为上一页数据的最后一条记录的id(填写上一页数据返回得previous_marker或者next_marker值。)
	Marker *string `json:"marker,omitempty"`

	// 每页数据量
	Limit *int32 `json:"limit,omitempty"`

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

Request Object

func (ListActiveOrHistoryAlarmsRequest) String added in v0.0.68

type ListActiveOrHistoryAlarmsRequestBody added in v0.0.68

type ListActiveOrHistoryAlarmsRequestBody struct {

	// 关键字检索条件
	Step *int32 `json:"step,omitempty"`

	// 是否自定义查询时间段
	WhetherCustomField bool `json:"whether_custom_field"`

	// 自定义时间段开始时间(时间戳)
	StartTime *int64 `json:"start_time,omitempty"`

	// 自定义时间段结束时间(时间戳)
	EndTime *int64 `json:"end_time,omitempty"`

	// 非自定义时间段时间范围(单位为分钟)
	TimeRange *string `json:"time_range,omitempty"`

	// 关键字检索条件
	Search *string `json:"search,omitempty"`

	// 告警级别(\"Critical\",\"Major\",\"Minor\",\"Info\")
	AlarmLevelIds *[]string `json:"alarm_level_ids,omitempty"`

	Sort *Sort `json:"sort,omitempty"`
}

func (ListActiveOrHistoryAlarmsRequestBody) String added in v0.0.68

type ListActiveOrHistoryAlarmsRequestType added in v0.0.68

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

func (ListActiveOrHistoryAlarmsRequestType) MarshalJSON added in v0.0.68

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

func (*ListActiveOrHistoryAlarmsRequestType) UnmarshalJSON added in v0.0.68

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

func (ListActiveOrHistoryAlarmsRequestType) Value added in v0.0.90

type ListActiveOrHistoryAlarmsRequestTypeEnum added in v0.0.68

type ListActiveOrHistoryAlarmsRequestTypeEnum struct {
	ACTIVE_ALERT  ListActiveOrHistoryAlarmsRequestType
	HISTORY_ALERT ListActiveOrHistoryAlarmsRequestType
}

func GetListActiveOrHistoryAlarmsRequestTypeEnum added in v0.0.68

func GetListActiveOrHistoryAlarmsRequestTypeEnum() ListActiveOrHistoryAlarmsRequestTypeEnum

type ListActiveOrHistoryAlarmsResponse added in v0.0.68

type ListActiveOrHistoryAlarmsResponse struct {

	// 告警信息
	Events *[]Events `json:"events,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListActiveOrHistoryAlarmsResponse) String added in v0.0.68

type ListBreifStructTemplateRequest added in v0.0.78

type ListBreifStructTemplateRequest struct {
}

Request Object

func (ListBreifStructTemplateRequest) String added in v0.0.78

type ListBreifStructTemplateResponse added in v0.0.78

type ListBreifStructTemplateResponse struct {

	// 结构化模板缩略信息列表
	Results        *[]BriefStructTemplateModel `json:"results,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

Response Object

func (ListBreifStructTemplateResponse) String added in v0.0.78

type ListChartsRequest added in v0.0.68

type ListChartsRequest struct {

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

	// 查询游标,初始传入0,后续从上一次的返回值中获取
	Offset *int32 `json:"offset,omitempty"`

	// 每页数据量,最大值为100
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListChartsRequest) String added in v0.0.68

func (o ListChartsRequest) String() string

type ListChartsResponse added in v0.0.68

type ListChartsResponse struct {

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

	// sql语句
	Sql *string `json:"sql,omitempty"`

	// 图表名称
	Title *string `json:"title,omitempty"`

	// 图表类型
	Type *ListChartsResponseType `json:"type,omitempty"`

	// 日志组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志组id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`

	// 图表配置详情
	Config         *ChartConfig `json:"config,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListChartsResponse) String added in v0.0.68

func (o ListChartsResponse) String() string

type ListChartsResponseType added in v0.0.68

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

func (ListChartsResponseType) MarshalJSON added in v0.0.68

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

func (*ListChartsResponseType) UnmarshalJSON added in v0.0.68

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

func (ListChartsResponseType) Value added in v0.0.90

func (c ListChartsResponseType) Value() string

type ListChartsResponseTypeEnum added in v0.0.68

type ListChartsResponseTypeEnum struct {
	TABLE  ListChartsResponseType
	BAR    ListChartsResponseType
	LINE   ListChartsResponseType
	PIE    ListChartsResponseType
	NUMBER ListChartsResponseType
}

func GetListChartsResponseTypeEnum added in v0.0.68

func GetListChartsResponseTypeEnum() ListChartsResponseTypeEnum

type ListCriteriasRequest added in v0.1.19

type ListCriteriasRequest struct {

	// 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。  缺省值:None  最小长度:36  最大长度:36
	GroupId string `json:"group_id"`

	// 日志流id
	TopicId string `json:"topic_id"`

	// 原始日志:ORIGINALLOG 可视化日志: VISUALIZATION
	SearchType *string `json:"search_type,omitempty"`
}

Request Object

func (ListCriteriasRequest) String added in v0.1.19

func (o ListCriteriasRequest) String() string

type ListCriteriasResponse added in v0.1.19

type ListCriteriasResponse struct {
	SearchCriterias *[]GetQuerySearchCriteriasBody `json:"search_criterias,omitempty"`
	HttpStatusCode  int                            `json:"-"`
}

Response Object

func (ListCriteriasResponse) String added in v0.1.19

func (o ListCriteriasResponse) String() string

type ListHistorySqlRequest added in v0.1.19

type ListHistorySqlRequest struct {
}

Request Object

func (ListHistorySqlRequest) String added in v0.1.19

func (o ListHistorySqlRequest) String() string

type ListHistorySqlResponse added in v0.1.19

type ListHistorySqlResponse struct {
	Results        *[]QuertHistorySqlResultsBody `json:"results,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

Response Object

func (ListHistorySqlResponse) String added in v0.1.19

func (o ListHistorySqlResponse) String() string

type ListHostGroupRequest added in v0.0.71

type ListHostGroupRequest struct {
	Body *GetHostGroupListRequestBody `json:"body,omitempty"`
}

Request Object

func (ListHostGroupRequest) String added in v0.0.71

func (o ListHostGroupRequest) String() string

type ListHostGroupResponse added in v0.0.71

type ListHostGroupResponse struct {

	// 主机组列表
	Result *[]GetHostGroupInfo `json:"result,omitempty"`

	// 主机组信息总数量
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListHostGroupResponse) String added in v0.0.71

func (o ListHostGroupResponse) String() string

type ListHostRequest added in v0.0.71

type ListHostRequest struct {
	Body *GetHostListRequestBody `json:"body,omitempty"`
}

Request Object

func (ListHostRequest) String added in v0.0.71

func (o ListHostRequest) String() string

type ListHostResponse added in v0.0.71

type ListHostResponse struct {

	// 主机列表
	Result *[]GetHostListInfo `json:"result,omitempty"`

	// 主机信息总数量
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListHostResponse) String added in v0.0.71

func (o ListHostResponse) String() string

type ListKeywordsAlarmRulesRequest added in v0.0.68

type ListKeywordsAlarmRulesRequest struct {
}

Request Object

func (ListKeywordsAlarmRulesRequest) String added in v0.0.68

type ListKeywordsAlarmRulesResponse added in v0.0.68

type ListKeywordsAlarmRulesResponse struct {

	// 项目id
	KeywordsAlarmRules *[]KeywordsAlarmRuleRespList `json:"keywords_alarm_rules,omitempty"`
	HttpStatusCode     int                          `json:"-"`
}

Response Object

func (ListKeywordsAlarmRulesResponse) String added in v0.0.68

type ListLogGroupsRequest

type ListLogGroupsRequest struct {
}

Request Object

func (ListLogGroupsRequest) String

func (o ListLogGroupsRequest) String() string

type ListLogGroupsResponse

type ListLogGroupsResponse struct {

	// 日志组信息。
	LogGroups      *[]LogGroup `json:"log_groups,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListLogGroupsResponse) String

func (o ListLogGroupsResponse) String() string

type ListLogHistogramRequest added in v0.0.71

type ListLogHistogramRequest struct {
	Body *QueryLogKeyWordCountRequestBody `json:"body,omitempty"`
}

Request Object

func (ListLogHistogramRequest) String added in v0.0.71

func (o ListLogHistogramRequest) String() string

type ListLogHistogramResponse added in v0.0.71

type ListLogHistogramResponse struct {

	// 直方图结果
	Histogram *string `json:"histogram,omitempty"`

	// 日志条数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListLogHistogramResponse) String added in v0.0.71

func (o ListLogHistogramResponse) String() string

type ListLogStreamRequest

type ListLogStreamRequest struct {

	// 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。
	LogGroupId string `json:"log_group_id"`

	// 按条件搜索,内容设置为日志流的tag键值对,比如k1=v1;
	Tag *string `json:"tag,omitempty"`
}

Request Object

func (ListLogStreamRequest) String

func (o ListLogStreamRequest) String() string

type ListLogStreamResponse

type ListLogStreamResponse struct {

	// 日志组数组。
	LogStreams     *[]LogStream `json:"log_streams,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListLogStreamResponse) String

func (o ListLogStreamResponse) String() string

type ListLogStreamsRequest added in v0.0.69

type ListLogStreamsRequest struct {

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`

	// 查询游标,初始传入0,后续从上一次的返回值中获取
	Offset *int32 `json:"offset,omitempty"`

	// 每页数据量,最大值为100
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListLogStreamsRequest) String added in v0.0.69

func (o ListLogStreamsRequest) String() string

type ListLogStreamsResponse added in v0.0.69

type ListLogStreamsResponse struct {

	// 日志流数组
	LogStreams     *[]ListLogStreamsResponseBody1LogStreams `json:"log_streams,omitempty"`
	HttpStatusCode int                                      `json:"-"`
}

Response Object

func (ListLogStreamsResponse) String added in v0.0.69

func (o ListLogStreamsResponse) String() string

type ListLogStreamsResponseBody1LogStreams added in v0.0.69

type ListLogStreamsResponseBody1LogStreams struct {

	// 日志流创建时间
	CreationTime int64 `json:"creation_time"`

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

	// 日志流名称
	LogStreamName string `json:"log_stream_name"`

	// 日志流所属标签
	Tag map[string]string `json:"tag"`

	// 过滤器个数
	FilterCount int32 `json:"filter_count"`
}

func (ListLogStreamsResponseBody1LogStreams) String added in v0.0.69

type ListLogsRequest added in v0.0.51

type ListLogsRequest struct {

	// 日志组id。
	LogGroupId string `json:"log_group_id"`

	// 日志流id。
	LogStreamId string `json:"log_stream_id"`

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

Request Object

func (ListLogsRequest) String added in v0.0.51

func (o ListLogsRequest) String() string

type ListLogsResponse added in v0.0.51

type ListLogsResponse struct {

	// 日志条数。
	Count *int32 `json:"count,omitempty"`

	// 日志信息。
	Logs           *[]LogContents `json:"logs,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListLogsResponse) String added in v0.0.51

func (o ListLogsResponse) String() string

type ListNotificationTemplateRequest added in v0.0.69

type ListNotificationTemplateRequest struct {

	// 账号id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	DomainId string `json:"domain_id"`

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

Request Object

func (ListNotificationTemplateRequest) String added in v0.0.69

type ListNotificationTemplateResponse added in v0.0.69

type ListNotificationTemplateResponse struct {

	// 为一个html文本,需要进行相应的解析后展示
	Template       *string `json:"template,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListNotificationTemplateResponse) String added in v0.0.69

type ListNotificationTemplatesRequest added in v0.0.69

type ListNotificationTemplatesRequest struct {

	// 账号id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	DomainId string `json:"domain_id"`

	// 查询游标,初始传入0,后续从上一次的返回值中获取
	Offset *int32 `json:"offset,omitempty"`

	// 每页数据量,最大值为100
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListNotificationTemplatesRequest) String added in v0.0.69

type ListNotificationTemplatesResponse added in v0.0.69

type ListNotificationTemplatesResponse struct {

	// 模板数组
	Results        *[]NotificationTemplate `json:"results,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ListNotificationTemplatesResponse) String added in v0.0.69

type ListNotificationTopicsRequest added in v0.0.68

type ListNotificationTopicsRequest struct {

	// 查询游标,初始传入0,后续从上一次的返回值中获取
	Offset int32 `json:"offset"`

	// 每页数据量,最大值为100
	Limit int32 `json:"limit"`
}

Request Object

func (ListNotificationTopicsRequest) String added in v0.0.68

type ListNotificationTopicsResponse added in v0.0.68

type ListNotificationTopicsResponse struct {

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

	// topics数量
	TopicCount *int32 `json:"topic_count,omitempty"`

	// 主题信息
	Topics         *[]Topics `json:"topics,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListNotificationTopicsResponse) String added in v0.0.68

type ListQueryAllSearchCriteriasRequest added in v0.1.19

type ListQueryAllSearchCriteriasRequest struct {

	// 租户想查询的日志流所在的日志组的groupid,一般为36位字符串。  缺省值:None  最小长度:36  最大长度:36
	GroupId string `json:"group_id"`
}

Request Object

func (ListQueryAllSearchCriteriasRequest) String added in v0.1.19

type ListQueryAllSearchCriteriasResponse added in v0.1.19

type ListQueryAllSearchCriteriasResponse struct {

	// 快速查询
	SearchCriterias *[]SearchCriteriasBody `json:"search_criterias,omitempty"`
	HttpStatusCode  int                    `json:"-"`
}

Response Object

func (ListQueryAllSearchCriteriasResponse) String added in v0.1.19

type ListQueryStructuredLogsRequest added in v0.0.51

type ListQueryStructuredLogsRequest struct {

	// 日志组id。
	LogGroupId string `json:"log_group_id"`

	// 日志流id。
	LogStreamId string `json:"log_stream_id"`

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

Request Object

func (ListQueryStructuredLogsRequest) String added in v0.0.51

type ListQueryStructuredLogsResponse added in v0.0.51

type ListQueryStructuredLogsResponse struct {

	// 日志信息。
	StructLogs     *[]StructLogContents `json:"struct_logs,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListQueryStructuredLogsResponse) String added in v0.0.51

type ListSqlAlarmRulesRequest added in v0.0.68

type ListSqlAlarmRulesRequest struct {
}

Request Object

func (ListSqlAlarmRulesRequest) String added in v0.0.68

func (o ListSqlAlarmRulesRequest) String() string

type ListSqlAlarmRulesResponse added in v0.0.68

type ListSqlAlarmRulesResponse struct {

	// SQL告警
	SqlAlarmRules  *[]SqlAlarmRuleRespList `json:"sql_alarm_rules,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ListSqlAlarmRulesResponse) String added in v0.0.68

func (o ListSqlAlarmRulesResponse) String() string

type ListStructTemplateRequest added in v0.0.78

type ListStructTemplateRequest struct {

	// 待查询模板id,非必填,不传时返回项目下所有自定义结构化模板
	Id *string `json:"id,omitempty"`
}

Request Object

func (ListStructTemplateRequest) String added in v0.0.78

func (o ListStructTemplateRequest) String() string

type ListStructTemplateResponse added in v0.0.78

type ListStructTemplateResponse struct {

	// 查询的自定义结构化模板数组
	Results        *[]StructTemplateModel `json:"results,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListStructTemplateResponse) String added in v0.0.78

type ListStructuredLogsWithTimeRangeRequest added in v0.0.51

type ListStructuredLogsWithTimeRangeRequest struct {

	// 日志流id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	LogStreamId string `json:"log_stream_id"`

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

Request Object

func (ListStructuredLogsWithTimeRangeRequest) String added in v0.0.51

type ListStructuredLogsWithTimeRangeResponse added in v0.0.51

type ListStructuredLogsWithTimeRangeResponse struct {

	// 此参数在请求实体中,采用json字符串格式。
	Body           map[string][]interface{} `json:"body,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ListStructuredLogsWithTimeRangeResponse) String added in v0.0.51

type ListTimeLineTrafficStatisticsRequest added in v0.1.15

type ListTimeLineTrafficStatisticsRequest struct {

	// 时区
	Timezone string `json:"timezone"`

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

Request Object

func (ListTimeLineTrafficStatisticsRequest) String added in v0.1.15

type ListTimeLineTrafficStatisticsResponse added in v0.1.15

type ListTimeLineTrafficStatisticsResponse struct {

	// 响应结果
	Results        *[]Resulits `json:"results,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListTimeLineTrafficStatisticsResponse) String added in v0.1.15

type ListTopnTrafficStatisticsRequest added in v0.1.19

type ListTopnTrafficStatisticsRequest struct {
	Body *TopnRequstBody `json:"body,omitempty"`
}

Request Object

func (ListTopnTrafficStatisticsRequest) String added in v0.1.19

type ListTopnTrafficStatisticsResponse added in v0.1.19

type ListTopnTrafficStatisticsResponse struct {

	// 响应结果
	Results        *[]ResultsTopnBody `json:"results,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListTopnTrafficStatisticsResponse) String added in v0.1.19

type ListTransfersRequest added in v0.0.69

type ListTransfersRequest struct {

	// 日志转储类型。OBS指OBS日志转储,DIS指DIS日志转储,DMS指DMS日志转储
	LogTransferType *ListTransfersRequestLogTransferType `json:"log_transfer_type,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`

	// 查询游标,初始传入0,后续从上一次的返回值中获取
	Offset *int32 `json:"offset,omitempty"`

	// 每页数据量,最大值为100
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListTransfersRequest) String added in v0.0.69

func (o ListTransfersRequest) String() string

type ListTransfersRequestLogTransferType added in v0.0.69

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

func (ListTransfersRequestLogTransferType) MarshalJSON added in v0.0.69

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

func (*ListTransfersRequestLogTransferType) UnmarshalJSON added in v0.0.69

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

func (ListTransfersRequestLogTransferType) Value added in v0.0.90

type ListTransfersRequestLogTransferTypeEnum added in v0.0.69

type ListTransfersRequestLogTransferTypeEnum struct {
	OBS ListTransfersRequestLogTransferType
	DIS ListTransfersRequestLogTransferType
	DMS ListTransfersRequestLogTransferType
}

func GetListTransfersRequestLogTransferTypeEnum added in v0.0.69

func GetListTransfersRequestLogTransferTypeEnum() ListTransfersRequestLogTransferTypeEnum

type ListTransfersResponse added in v0.0.69

type ListTransfersResponse struct {

	// 查询日志转储信息数组
	LogTransfers   *[]CreateTransferResponseBody `json:"log_transfers,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

Response Object

func (ListTransfersResponse) String added in v0.0.69

func (o ListTransfersResponse) String() string

type LogContents

type LogContents struct {

	// 日志原数据。
	Content *string `json:"content,omitempty"`

	// 日志单行序列号。
	LineNum *string `json:"line_num,omitempty"`

	// 该条日志包含的 labels。
	Labels map[string]string `json:"labels,omitempty"`
}

参数集

func (LogContents) String

func (o LogContents) String() string

type LogGroup

type LogGroup struct {

	// 创建时间
	CreationTime int64 `json:"creation_time"`

	// 日志组名称
	LogGroupName string `json:"log_group_name"`

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 日志存储时间 天
	TtlInDays int32 `json:"ttl_in_days"`

	// 日志流所属标签
	Tag map[string]string `json:"tag,omitempty"`
}

返回的日志组信息

func (LogGroup) String

func (o LogGroup) String() string

type LogStream

type LogStream struct {

	// 创建时间
	CreationTime int64 `json:"creation_time"`

	// 日志流名称
	LogStreamName string `json:"log_stream_name"`

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

	// 过滤器个数
	FilterCount int32 `json:"filter_count"`

	// 日志流所属标签
	Tag map[string]string `json:"tag,omitempty"`
}

返回的日志流信息

func (LogStream) String

func (o LogStream) String() string

type LtsStructTemplateInfo added in v0.0.68

type LtsStructTemplateInfo struct {

	// 结构化字段
	DemoFields []StructFieldInfo `json:"demo_fields"`

	// tag字段列表(使用tag字段解析时需要,其中系统模板不支持使用tag字段)。
	TagFields []TagField `json:"tag_fields"`

	// 示例日志
	Content string `json:"content"`

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 结构化方式
	ParseType LtsStructTemplateInfoParseType `json:"parse_type"`

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

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

	// parse_type为custom_regex类型时必填,regex提取规则
	RegexRules *string `json:"regex_rules,omitempty"`

	// parse_type为json类型时必填,解析层数,目前固定是3
	Layers *int32 `json:"layers,omitempty"`

	// parse_type为split类型时必填,分隔符,分词符号
	Tokenizer *string `json:"tokenizer,omitempty"`

	// parse_type为nginx类型时必填,nginx日志格式模板
	LogFormat *string `json:"log_format,omitempty"`

	// 结构化方式
	Rule *[]Rule `json:"rule,omitempty"`
}

func (LtsStructTemplateInfo) String added in v0.0.68

func (o LtsStructTemplateInfo) String() string

type LtsStructTemplateInfoParseType added in v0.0.68

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

func (LtsStructTemplateInfoParseType) MarshalJSON added in v0.0.68

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

func (*LtsStructTemplateInfoParseType) UnmarshalJSON added in v0.0.68

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

func (LtsStructTemplateInfoParseType) Value added in v0.0.90

type LtsStructTemplateInfoParseTypeEnum added in v0.0.68

func GetLtsStructTemplateInfoParseTypeEnum added in v0.0.68

func GetLtsStructTemplateInfoParseTypeEnum() LtsStructTemplateInfoParseTypeEnum

type Metadata added in v0.0.68

type Metadata struct {

	// 告警类型
	EventType string `json:"event_type"`

	// 告警id
	EventId string `json:"event_id"`

	// 告警级别
	EventSeverity string `json:"event_severity"`

	// 告警名称
	EventName string `json:"event_name"`

	// 资源类型
	ResourceType string `json:"resource_type"`

	// 日志组/流名称
	ResourceId string `json:"resource_id"`

	// 告警源
	ResourceProvider string `json:"resource_provider"`

	// 告警规则类型(SQL/关键词)
	LtsAlarmType string `json:"lts_alarm_type"`
}

func (Metadata) String added in v0.0.68

func (o Metadata) String() string

type NotificationSaveRule added in v0.0.68

type NotificationSaveRule struct {

	// 首选项对应的语言
	Language NotificationSaveRuleLanguage `json:"language"`

	// 首选项对应的时区信息
	Timezone *string `json:"timezone,omitempty"`

	// 用户名
	UserName string `json:"user_name"`

	// 主题信息
	Topics []Topics `json:"topics"`
}

func (NotificationSaveRule) String added in v0.0.68

func (o NotificationSaveRule) String() string

type NotificationSaveRuleLanguage added in v0.0.68

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

func (NotificationSaveRuleLanguage) MarshalJSON added in v0.0.68

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

func (*NotificationSaveRuleLanguage) UnmarshalJSON added in v0.0.68

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

func (NotificationSaveRuleLanguage) Value added in v0.0.90

type NotificationSaveRuleLanguageEnum added in v0.0.68

type NotificationSaveRuleLanguageEnum struct {
	ZH_CN NotificationSaveRuleLanguage
	EN_US NotificationSaveRuleLanguage
}

func GetNotificationSaveRuleLanguageEnum added in v0.0.68

func GetNotificationSaveRuleLanguageEnum() NotificationSaveRuleLanguageEnum

type NotificationTemplate added in v0.0.69

type NotificationTemplate struct {

	// 通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改
	Name string `json:"name"`

	// 保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子)
	Type *[]string `json:"type,omitempty"`

	// 模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024
	Desc string `json:"desc"`

	// 模板来源,目前必填为LTS,否则会筛选不出来
	Source string `json:"source"`

	// 语言,必填,目前可填zh-cn和en-us
	Locale NotificationTemplateLocale `json:"locale"`

	// 模板正文,为一个数组
	Templates []SubTemplate `json:"templates"`

	// 创建时间,为毫秒时间戳
	CreateTime int64 `json:"create_time"`

	// 更新时间,为毫秒时间戳
	ModifyTime int64 `json:"modify_time"`

	// 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	ProjectId string `json:"project_id"`
}

func (NotificationTemplate) String added in v0.0.69

func (o NotificationTemplate) String() string

type NotificationTemplateLocale added in v0.0.69

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

func (NotificationTemplateLocale) MarshalJSON added in v0.0.69

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

func (*NotificationTemplateLocale) UnmarshalJSON added in v0.0.69

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

func (NotificationTemplateLocale) Value added in v0.0.90

type NotificationTemplateLocaleEnum added in v0.0.69

type NotificationTemplateLocaleEnum struct {
	ZH_CN NotificationTemplateLocale
	EN_US NotificationTemplateLocale
}

func GetNotificationTemplateLocaleEnum added in v0.0.69

func GetNotificationTemplateLocaleEnum() NotificationTemplateLocaleEnum

type PageInfo added in v0.0.68

type PageInfo struct {

	// 返回下一页查询地址(为空时,代表后面没有数据)
	NextMarker string `json:"next_marker"`

	// 返回前一页查询地址
	PreviousMarker string `json:"previous_marker"`

	// 本页返回条目数量
	CurrentCount string `json:"current_count"`
}

func (PageInfo) String added in v0.0.68

func (o PageInfo) String() string

type PreviewTemplateBody added in v0.0.69

type PreviewTemplateBody struct {

	// 邮件模板内容
	Templates string `json:"templates"`

	// 语言 zh-cn中文,en-us英文
	Language PreviewTemplateBodyLanguage `json:"language"`

	// 来源,只能填LTS
	Source string `json:"source"`
}

预览邮件格式请求体

func (PreviewTemplateBody) String added in v0.0.69

func (o PreviewTemplateBody) String() string

type PreviewTemplateBodyLanguage added in v0.0.69

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

func (PreviewTemplateBodyLanguage) MarshalJSON added in v0.0.69

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

func (*PreviewTemplateBodyLanguage) UnmarshalJSON added in v0.0.69

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

func (PreviewTemplateBodyLanguage) Value added in v0.0.90

type PreviewTemplateBodyLanguageEnum added in v0.0.69

type PreviewTemplateBodyLanguageEnum struct {
	ZH_CN PreviewTemplateBodyLanguage
	EN_US PreviewTemplateBodyLanguage
}

func GetPreviewTemplateBodyLanguageEnum added in v0.0.69

func GetPreviewTemplateBodyLanguageEnum() PreviewTemplateBodyLanguageEnum

type QuertHistorySqlResultsBody added in v0.1.19

type QuertHistorySqlResultsBody struct {

	// 上次修改时间,时间戳,毫秒数
	LastUseTime *int64 `json:"last_use_time,omitempty"`

	// 历史sql语句
	SqlStatement *string `json:"sql_statement,omitempty"`
}

func (QuertHistorySqlResultsBody) String added in v0.1.19

type QueryLogKeyWordCountRequestBody added in v0.0.71

type QueryLogKeyWordCountRequestBody struct {

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

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

	// 步长间隔
	StepInterval int64 `json:"step_interval"`

	// 日志组ID
	GroupId string `json:"group_id"`

	// 日志流ID
	StreamId string `json:"stream_id"`

	// 关键词
	KeyWord string `json:"key_word"`
}

日志关键词统计请求体。

func (QueryLogKeyWordCountRequestBody) String added in v0.0.71

type QueryLtsLogParams

type QueryLtsLogParams struct {

	// 搜索起始时间(UTC时间,毫秒级)。
	StartTime string `json:"start_time"`

	// 搜索结束时间(UTC时间,毫秒级)。
	EndTime string `json:"end_time"`

	// 日志过滤条件集合,不同日志来源所需字段不同。
	Labels map[string]string `json:"labels,omitempty"`

	// 日志条数统计。默认为false(不统计),true为统计日志条数。
	IsCount *bool `json:"is_count,omitempty"`

	// 支持关键词精确搜索。关键词指相邻两个分词符之间的单词,例:error
	Keywords *string `json:"keywords,omitempty"`

	// 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。line_num应在start_time 和 end_time 之间。
	LineNum *string `json:"line_num,omitempty"`

	// 顺序或者倒序查询, 默认为false(顺序查询)
	IsDesc *bool `json:"is_desc,omitempty"`

	// 首次查询为 “init”, 分页查询时为 “forwards”或者“backwards”, 默认为首次查询“init”, 与 is_desc 参数配合进行分页查询。
	SearchType *QueryLtsLogParamsSearchType `json:"search_type,omitempty"`

	// 表示每次查询的日志条数,不填时默认为50,建议您设置为100。
	Limit *int32 `json:"limit,omitempty"`

	// 日志关键词高亮显示,默认为true(高亮显示),false为取消高亮显示。
	Highlight *bool `json:"highlight,omitempty"`
}

此参数在请求实体中,采用json字符串格式

func (QueryLtsLogParams) String

func (o QueryLtsLogParams) String() string

type QueryLtsLogParamsSearchType

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

func (QueryLtsLogParamsSearchType) MarshalJSON

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

func (*QueryLtsLogParamsSearchType) UnmarshalJSON

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

func (QueryLtsLogParamsSearchType) Value added in v0.0.90

type QueryLtsLogParamsSearchTypeEnum

type QueryLtsLogParamsSearchTypeEnum struct {
	FORWARDS  QueryLtsLogParamsSearchType
	BACKWARDS QueryLtsLogParamsSearchType
}

func GetQueryLtsLogParamsSearchTypeEnum

func GetQueryLtsLogParamsSearchTypeEnum() QueryLtsLogParamsSearchTypeEnum

type QueryLtsStructLogParams

type QueryLtsStructLogParams struct {

	// 搜索起始时间(UTC时间,毫秒级)。
	StartTime string `json:"start_time"`

	// 搜索结束时间(UTC时间,毫秒级)。
	EndTime string `json:"end_time"`

	// 支持SQL语句搜索, 目前支持\"GROUP BY\", \"LIKE\"和\"WHERE\"。
	SqlExpression *string `json:"sql_expression,omitempty"`

	// 返回内容中是否包含原始日志, 默认为false。
	OriginalContent *bool `json:"original_content,omitempty"`
}

此参数在请求实体中,采用json字符串格式

func (QueryLtsStructLogParams) String

func (o QueryLtsStructLogParams) String() string

type QueryLtsStructLogParamsNew

type QueryLtsStructLogParamsNew struct {

	// sql语句字符串。
	Query string `json:"query"`

	// 查询结果格式。当前仅支持:\"k-v\"。
	Format string `json:"format"`

	TimeRange *TimeRange `json:"time_range"`

	// 返回数据格式,是否为行数据,默认为false。
	WhetherToRows *bool `json:"whether_to_rows,omitempty"`
}

此参数在请求实体中,采用json字符串格式

func (QueryLtsStructLogParamsNew) String

type RegisterDmsKafkaInstanceRequest added in v0.0.69

type RegisterDmsKafkaInstanceRequest struct {
	Body *RegisterDmsKafkaInstanceRequestBody `json:"body,omitempty"`
}

Request Object

func (RegisterDmsKafkaInstanceRequest) String added in v0.0.69

type RegisterDmsKafkaInstanceRequestBody added in v0.0.69

type RegisterDmsKafkaInstanceRequestBody struct {

	// kafka ID
	InstanceId string `json:"instance_id"`

	// kafka 名称
	KafkaName string `json:"kafka_name"`

	ConnectInfo *RegisterDmsKafkaInstanceRequestBodyConnectInfo `json:"connect_info"`
}

func (RegisterDmsKafkaInstanceRequestBody) String added in v0.0.69

type RegisterDmsKafkaInstanceRequestBodyConnectInfo added in v0.0.69

type RegisterDmsKafkaInstanceRequestBodyConnectInfo struct {

	// 账号
	UserName *string `json:"user_name,omitempty"`

	// 密码
	Pwd *string `json:"pwd,omitempty"`
}

kafka连接信息。购买kafka时,SASL_SSL是否配置,如果有,则需要填写账号密码

func (RegisterDmsKafkaInstanceRequestBodyConnectInfo) String added in v0.0.69

type RegisterDmsKafkaInstanceResponse added in v0.0.69

type RegisterDmsKafkaInstanceResponse struct {

	// kafka ID
	InstanceId     *string `json:"instance_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RegisterDmsKafkaInstanceResponse) String added in v0.0.69

type Resulits added in v0.1.15

type Resulits struct {

	// 时间戳,毫秒时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 流量,byte
	Value *float64 `json:"value,omitempty"`
}

func (Resulits) String added in v0.1.15

func (o Resulits) String() string

type ResultsTopnBody added in v0.1.19

type ResultsTopnBody struct {

	// 索引流量,byte, 查询数据类型中包含index时返回
	IndexTraffic float64 `json:"index_traffic"`

	// 存储量,byte, 查询数据类型中包含storage时返回
	Storage float64 `json:"storage"`

	// 写入流量,byte, 查询数据类型中包含write时返回
	WriteTraffic float64 `json:"write_traffic"`

	// 日志组id,资源类型为日志组时返回
	LogGroupId string `json:"log_group_id"`

	// 日志组名称,资源类型为日志组时返回
	LogGroupName string `json:"log_group_name"`

	// 日志流id,资源类型为日志流时返回
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// 日志流名称,资源类型为日志流时返回
	LogStreamName *string `json:"log_stream_name,omitempty"`
}

func (ResultsTopnBody) String added in v0.1.19

func (o ResultsTopnBody) String() string

type Rule added in v0.1.2

type Rule struct {

	// 内置系统模板类型。
	Type string `json:"type"`

	// 系统iton模板名称。
	Param string `json:"param"`
}

func (Rule) String added in v0.1.2

func (o Rule) String() string

type SearchCriteriasBody added in v0.1.19

type SearchCriteriasBody struct {

	// 单个日志流的快速查询
	Criterias []GetQuerySearchCriteriasBody `json:"criterias"`

	// 日志流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`
}

func (SearchCriteriasBody) String added in v0.1.19

func (o SearchCriteriasBody) String() string

type ShowAomMappingRuleRequest added in v0.0.68

type ShowAomMappingRuleRequest struct {

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

Request Object

func (ShowAomMappingRuleRequest) String added in v0.0.68

func (o ShowAomMappingRuleRequest) String() string

type ShowAomMappingRuleResponse added in v0.0.68

type ShowAomMappingRuleResponse struct {
	Body           *[]AomMappingRuleResp `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ShowAomMappingRuleResponse) String added in v0.0.68

type ShowAomMappingRulesRequest added in v0.0.68

type ShowAomMappingRulesRequest struct {
}

Request Object

func (ShowAomMappingRulesRequest) String added in v0.0.68

type ShowAomMappingRulesResponse added in v0.0.68

type ShowAomMappingRulesResponse struct {
	Body           *[]AomMappingRuleResp `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ShowAomMappingRulesResponse) String added in v0.0.68

type ShowNotificationTemplateRequest added in v0.0.69

type ShowNotificationTemplateRequest struct {

	// 账号id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	DomainId string `json:"domain_id"`

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

Request Object

func (ShowNotificationTemplateRequest) String added in v0.0.69

type ShowNotificationTemplateResponse added in v0.0.69

type ShowNotificationTemplateResponse struct {

	// 通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改
	Name string `json:"name"`

	// 保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子)
	Type *[]string `json:"type,omitempty"`

	// 模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024
	Desc string `json:"desc"`

	// 模板来源,目前必填为LTS,否则会筛选不出来
	Source string `json:"source"`

	// 语言,必填,目前可填zh-cn和en-us
	Locale ShowNotificationTemplateResponseLocale `json:"locale"`

	// 模板正文,为一个数组
	Templates []SubTemplate `json:"templates"`

	// 创建时间,为毫秒时间戳
	CreateTime int64 `json:"create_time"`

	// 更新时间,为毫秒时间戳
	ModifyTime int64 `json:"modify_time"`

	// 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	ProjectId      string `json:"project_id"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowNotificationTemplateResponse) String added in v0.0.69

type ShowNotificationTemplateResponseLocale added in v0.0.69

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

func (ShowNotificationTemplateResponseLocale) MarshalJSON added in v0.0.69

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

func (*ShowNotificationTemplateResponseLocale) UnmarshalJSON added in v0.0.69

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

func (ShowNotificationTemplateResponseLocale) Value added in v0.0.90

type ShowNotificationTemplateResponseLocaleEnum added in v0.0.69

type ShowNotificationTemplateResponseLocaleEnum struct {
	ZH_CN ShowNotificationTemplateResponseLocale
	EN_US ShowNotificationTemplateResponseLocale
}

func GetShowNotificationTemplateResponseLocaleEnum added in v0.0.69

func GetShowNotificationTemplateResponseLocaleEnum() ShowNotificationTemplateResponseLocaleEnum

type ShowStructTemplateRequest added in v0.0.68

type ShowStructTemplateRequest struct {

	// 日志组ID
	LogGroupId string `json:"logGroupId"`

	// 日志流ID
	LogStreamId string `json:"logStreamId"`
}

Request Object

func (ShowStructTemplateRequest) String added in v0.0.68

func (o ShowStructTemplateRequest) String() string

type ShowStructTemplateResponse added in v0.0.68

type ShowStructTemplateResponse struct {

	// 结构化字段
	DemoFields *[]StructFieldInfoReturn `json:"demoFields,omitempty"`

	// 关键词详细信息
	TagFields *[]TagFieldsInfo `json:"tagFields,omitempty"`

	// 示例日志
	DemoLog *string `json:"demoLog,omitempty"`

	// 测试
	DemoLabel *string `json:"demoLabel,omitempty"`

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

	// 日志组ID
	LogGroupId *string `json:"logGroupId,omitempty"`

	Rule *ShowStructTemplateRule `json:"rule,omitempty"`

	ClusterInfo *ShowStructTemplateclusterInfo `json:"cluster_info,omitempty"`

	// 日志流ID
	LogStreamId *string `json:"logStreamId,omitempty"`

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

	// 测试
	TemplateName *string `json:"templateName,omitempty"`

	// 为了兼容前台数据格式
	Regex          *string `json:"regex,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowStructTemplateResponse) String added in v0.0.68

type ShowStructTemplateRule added in v0.0.68

type ShowStructTemplateRule struct {

	// 测试
	Param *string `json:"param,omitempty"`

	// 结构化类型
	Type *ShowStructTemplateRuleType `json:"type,omitempty"`
}

结构化类型。

func (ShowStructTemplateRule) String added in v0.0.68

func (o ShowStructTemplateRule) String() string

type ShowStructTemplateRuleType added in v0.0.68

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

func (ShowStructTemplateRuleType) MarshalJSON added in v0.0.68

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

func (*ShowStructTemplateRuleType) UnmarshalJSON added in v0.0.68

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

func (ShowStructTemplateRuleType) Value added in v0.0.90

type ShowStructTemplateRuleTypeEnum added in v0.0.68

type ShowStructTemplateRuleTypeEnum struct {
	JSON         ShowStructTemplateRuleType
	SPLIT        ShowStructTemplateRuleType
	NGINX        ShowStructTemplateRuleType
	BUILT_IN     ShowStructTemplateRuleType
	CUSTOM_REGEX ShowStructTemplateRuleType
}

func GetShowStructTemplateRuleTypeEnum added in v0.0.68

func GetShowStructTemplateRuleTypeEnum() ShowStructTemplateRuleTypeEnum

type ShowStructTemplateclusterInfo added in v0.0.68

type ShowStructTemplateclusterInfo struct {

	// 测试
	ClusterName *string `json:"cluster_name,omitempty"`

	// 测试
	KafkaBootstrapServers *string `json:"kafka_bootstrap_servers,omitempty"`

	// 测试
	KafkaSslEnable *bool `json:"kafka_ssl_enable,omitempty"`
}

结构化类型。

func (ShowStructTemplateclusterInfo) String added in v0.0.68

type Sort added in v0.0.68

type Sort struct {

	// 排序字段
	OrderBy []string `json:"order_by"`

	// 排序顺序
	Order SortOrder `json:"order"`
}

func (Sort) String added in v0.0.68

func (o Sort) String() string

type SortOrder added in v0.0.68

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

func (SortOrder) MarshalJSON added in v0.0.68

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

func (*SortOrder) UnmarshalJSON added in v0.0.68

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

func (SortOrder) Value added in v0.0.90

func (c SortOrder) Value() string

type SortOrderEnum added in v0.0.68

type SortOrderEnum struct {
	DESC SortOrder
	ASC  SortOrder
}

func GetSortOrderEnum added in v0.0.68

func GetSortOrderEnum() SortOrderEnum

type SqlAlarmRuleRespList added in v0.0.68

type SqlAlarmRuleRespList struct {

	// SQL告警名称
	SqlAlarmRuleName string `json:"sql_alarm_rule_name"`

	// SQL告警规则id
	SqlAlarmRuleId string `json:"sql_alarm_rule_id"`

	// SQL告警信息描述
	SqlAlarmRuleDescription string `json:"sql_alarm_rule_description"`

	// SQL详细信息
	SqlRequests []SqlRequest `json:"sql_requests"`

	// 告警统计周期
	Frequency *Frequency `json:"frequency"`

	// 条件表达式
	ConditionExpression string `json:"condition_expression"`

	// 主题信息
	Topics []Topics `json:"topics"`

	// 告警级别
	SqlAlarmLevel SqlAlarmRuleRespListSqlAlarmLevel `json:"sql_alarm_level"`

	// 是否发送
	SqlAlarmSend bool `json:"sql_alarm_send"`

	// domainId
	DomainId string `json:"domain_id"`

	// 创建时间(毫秒时间戳)
	CreateTime int64 `json:"create_time"`

	// 更新时间(毫秒时间戳)
	UpdateTime int64 `json:"update_time"`

	TemplateName *string `json:"template_name,omitempty"`

	Status *SqlAlarmRuleRespListStatus `json:"status,omitempty"`

	// 触发条件:触发次数;默认为1
	TriggerConditionCount *int32 `json:"trigger_condition_count,omitempty"`

	// 触发条件:触发周期;默认为1
	TriggerConditionFrequency *int32 `json:"trigger_condition_frequency,omitempty"`

	// 是否打开恢复通知;默认false
	WhetherRecoveryPolicy *bool `json:"whether_recovery_policy,omitempty"`

	// 恢复策略周期;默认为3
	RecoveryPolicy *int32 `json:"recovery_policy,omitempty"`
}

func (SqlAlarmRuleRespList) String added in v0.0.68

func (o SqlAlarmRuleRespList) String() string

type SqlAlarmRuleRespListSqlAlarmLevel added in v0.0.68

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

func (SqlAlarmRuleRespListSqlAlarmLevel) MarshalJSON added in v0.0.68

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

func (*SqlAlarmRuleRespListSqlAlarmLevel) UnmarshalJSON added in v0.0.68

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

func (SqlAlarmRuleRespListSqlAlarmLevel) Value added in v0.0.90

type SqlAlarmRuleRespListSqlAlarmLevelEnum added in v0.0.68

func GetSqlAlarmRuleRespListSqlAlarmLevelEnum added in v0.0.68

func GetSqlAlarmRuleRespListSqlAlarmLevelEnum() SqlAlarmRuleRespListSqlAlarmLevelEnum

type SqlAlarmRuleRespListStatus added in v0.0.76

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

func (SqlAlarmRuleRespListStatus) MarshalJSON added in v0.0.76

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

func (*SqlAlarmRuleRespListStatus) UnmarshalJSON added in v0.0.76

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

func (SqlAlarmRuleRespListStatus) Value added in v0.0.90

type SqlAlarmRuleRespListStatusEnum added in v0.0.76

type SqlAlarmRuleRespListStatusEnum struct {
	RUNNING  SqlAlarmRuleRespListStatus
	STOPPING SqlAlarmRuleRespListStatus
}

func GetSqlAlarmRuleRespListStatusEnum added in v0.0.76

func GetSqlAlarmRuleRespListStatusEnum() SqlAlarmRuleRespListStatusEnum

type SqlRequest added in v0.0.68

type SqlRequest struct {

	// 是时间范围相对
	IsTimeRangeRelative *bool `json:"is_time_range_relative,omitempty"`

	// 日志流id
	LogStreamId string `json:"log_stream_id"`

	// 日志流名称
	LogStreamName *string `json:"log_stream_name,omitempty"`

	// 日志组id
	LogGroupId string `json:"log_group_id"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// sql语句
	Sql string `json:"sql"`

	// 图表名称
	SqlRequestTitle string `json:"sql_request_title"`

	// 查询执行任务时最近数据的时间范围(当search_time_range_unit为minute,则最大值为60;当search_time_range_unit为hour,则最大值为24)
	SearchTimeRange int32 `json:"search_time_range"`

	// 查询时间单位
	SearchTimeRangeUnit SqlRequestSearchTimeRangeUnit `json:"search_time_range_unit"`
}

func (SqlRequest) String added in v0.0.68

func (o SqlRequest) String() string

type SqlRequestSearchTimeRangeUnit added in v0.0.68

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

func (SqlRequestSearchTimeRangeUnit) MarshalJSON added in v0.0.68

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

func (*SqlRequestSearchTimeRangeUnit) UnmarshalJSON added in v0.0.68

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

func (SqlRequestSearchTimeRangeUnit) Value added in v0.0.90

type SqlRequestSearchTimeRangeUnitEnum added in v0.0.68

type SqlRequestSearchTimeRangeUnitEnum struct {
	MINUTE SqlRequestSearchTimeRangeUnit
	HOUR   SqlRequestSearchTimeRangeUnit
}

func GetSqlRequestSearchTimeRangeUnitEnum added in v0.0.68

func GetSqlRequestSearchTimeRangeUnitEnum() SqlRequestSearchTimeRangeUnitEnum

type StructConfig added in v0.0.78

type StructConfig struct {

	// 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	LogGroupId string `json:"log_group_id"`

	// 日志流ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	LogStreamId string `json:"log_stream_id"`

	// 所用模板id。当使用系统模板时,当前属性可以为空
	TemplateId string `json:"template_id"`

	// 所用模板名称,会对模板名称及id进行校验
	TemplateName string `json:"template_name"`

	// 所用模板类型,分为built_in及custom两种类型,对应系统模板和自定义模板,系统模板分为CTS,VPC和ELB三种。
	TemplateType StructConfigTemplateType `json:"template_type"`

	// 示例字段数组,只需要填写与模板中is_analysis状态不同的字段
	DemoFields *[]FieldModel `json:"demo_fields,omitempty"`

	// Tag字段数组,只需要填写与模板中is_analysis状态不同的字段
	TagFields *[]FieldModel `json:"tag_fields,omitempty"`

	// 是否开启demo_fields和tag_fields快速分析,为true时,所有的demo_fields和tag_fields全部字段均打开快速分析;不填或者为false,以模板中的demo_fields和tag_fields中的is_analysis决定是否开启快速分析。
	QuickAnalysis *bool `json:"quick_analysis,omitempty"`
}

结构化配置参数体

func (StructConfig) String added in v0.0.78

func (o StructConfig) String() string

type StructConfigTemplateType added in v0.0.78

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

func (StructConfigTemplateType) MarshalJSON added in v0.0.78

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

func (*StructConfigTemplateType) UnmarshalJSON added in v0.0.78

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

func (StructConfigTemplateType) Value added in v0.0.90

func (c StructConfigTemplateType) Value() string

type StructConfigTemplateTypeEnum added in v0.0.78

type StructConfigTemplateTypeEnum struct {
	BUILT_IN StructConfigTemplateType
	CUSTOM   StructConfigTemplateType
}

func GetStructConfigTemplateTypeEnum added in v0.0.78

func GetStructConfigTemplateTypeEnum() StructConfigTemplateTypeEnum

type StructFieldInfo added in v0.0.68

type StructFieldInfo struct {

	// 结构化方式
	IsAnalysis *bool `json:"isAnalysis,omitempty"`

	// 字段内容
	Content *string `json:"content,omitempty"`

	// 字段名称
	FieldName *string `json:"fieldName,omitempty"`

	// 字段数据类型,例:string,long,float
	Type string `json:"type"`

	// 自定义别名(json方式中按需添加)
	UserDefinedName *string `json:"userDefinedName,omitempty"`

	// 序号
	Index *int32 `json:"index,omitempty"`
}

func (StructFieldInfo) String added in v0.0.68

func (o StructFieldInfo) String() string

type StructFieldInfoReturn added in v0.0.68

type StructFieldInfoReturn struct {

	// 字段名称
	FieldName *string `json:"fieldName,omitempty"`

	// 字段数据类型
	Type *string `json:"type,omitempty"`

	// 字段内容
	Content *string `json:"content,omitempty"`

	// 结构化方式
	IsAnalysis *bool `json:"isAnalysis,omitempty"`

	// 序号
	Index *int32 `json:"index,omitempty"`
}

func (StructFieldInfoReturn) String added in v0.0.68

func (o StructFieldInfoReturn) String() string

type StructLogContents

type StructLogContents struct {

	// 日志原数据。
	LogContent *string `json:"log_content,omitempty"`

	// 日志单行序列号。
	LineNum *string `json:"line_num,omitempty"`
}

参数集

func (StructLogContents) String

func (o StructLogContents) String() string

type StructTemplate added in v0.0.78

type StructTemplate struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 模板名称
	TemplateName string `json:"template_name"`

	// 模板类型,regex,json,split,nginx
	TemplateType StructTemplateTemplateType `json:"template_type"`

	// 示例日志
	DemoLog string `json:"demo_log"`

	// 示例字段数组
	DemoFields []DemoField `json:"demo_fields"`

	// Tag字段数组
	TagFields []TagFieldNew `json:"tag_fields"`

	Rule *TemplateRule `json:"rule"`

	// 示例日志标签
	DemoLabel *string `json:"demo_label,omitempty"`

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

结构化模板实体

func (StructTemplate) String added in v0.0.78

func (o StructTemplate) String() string

type StructTemplateModel added in v0.0.78

type StructTemplateModel struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 模板名称
	TemplateName string `json:"template_name"`

	// 模板类型,regex,json,split,nginx
	TemplateType StructTemplateModelTemplateType `json:"template_type"`

	// 示例日志
	DemoLog string `json:"demo_log"`

	// 示例字段数组
	DemoFields []DemoField `json:"demo_fields"`

	// Tag字段数组
	TagFields []TagFieldNew `json:"tag_fields"`

	Rule *TemplateRule `json:"rule"`

	// 示例日志标签
	DemoLabel *string `json:"demo_label,omitempty"`

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

	// 模板id
	Id *string `json:"id,omitempty"`
}

更新或者查询结构化模板对象

func (StructTemplateModel) String added in v0.0.78

func (o StructTemplateModel) String() string

type StructTemplateModelTemplateType added in v0.0.78

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

func (StructTemplateModelTemplateType) MarshalJSON added in v0.0.78

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

func (*StructTemplateModelTemplateType) UnmarshalJSON added in v0.0.78

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

func (StructTemplateModelTemplateType) Value added in v0.0.90

type StructTemplateModelTemplateTypeEnum added in v0.0.78

func GetStructTemplateModelTemplateTypeEnum added in v0.0.78

func GetStructTemplateModelTemplateTypeEnum() StructTemplateModelTemplateTypeEnum

type StructTemplateTemplateType added in v0.0.78

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

func (StructTemplateTemplateType) MarshalJSON added in v0.0.78

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

func (*StructTemplateTemplateType) UnmarshalJSON added in v0.0.78

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

func (StructTemplateTemplateType) Value added in v0.0.90

type StructTemplateTemplateTypeEnum added in v0.0.78

type StructTemplateTemplateTypeEnum struct {
	REGEX StructTemplateTemplateType
	JSON  StructTemplateTemplateType
	SPLIT StructTemplateTemplateType
	NGINX StructTemplateTemplateType
}

func GetStructTemplateTemplateTypeEnum added in v0.0.78

func GetStructTemplateTemplateTypeEnum() StructTemplateTemplateTypeEnum

type SubTemplate added in v0.0.69

type SubTemplate struct {

	// 模板子类型,只支持以下5种类型:sms,dingding,wechat,webhook,email
	SubType SubTemplateSubType `json:"sub_type"`

	// 子模版正文,$符号后所跟变量仅支持以下变量,根据不同告警类型(关键词告警和sql告警),所支持的变量亦不相同。 目前两种告警类型有共同变量如下:告警级别:${event_severity};发生时间:${starts_at};告警源:$event.metadata.resource_provider;资源类型:$event.metadata.resource_type;资源标识:${resources};统计类型:关键词统计;表达式:$event.annotations.condition_expression;当前值: $event.annotations.current_value;统计周期:$event.annotations.frequency; 关键词告警特有变量:查询时间:$event.annotations.results[0].time;查询日志:$event.annotations.results[0].raw_results; sql告警特有变量:日志组/流名称:$event.annotations.results[0].resource_id;查询语句:$event.annotations.results[0].sql;查询时间:$event.annotations.results[0].time;查询URL:$event.annotations.results[0].url;查询日志:$event.annotations.results[0].raw_results; 变量后面的分号\";\"为英文符号,必须添加,否则模板会出现替换失败的情况
	Content string `json:"content"`
}

子模版数据结构

func (SubTemplate) String added in v0.0.69

func (o SubTemplate) String() string

type SubTemplateSubType added in v0.0.69

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

func (SubTemplateSubType) MarshalJSON added in v0.0.69

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

func (*SubTemplateSubType) UnmarshalJSON added in v0.0.69

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

func (SubTemplateSubType) Value added in v0.0.90

func (c SubTemplateSubType) Value() string

type SubTemplateSubTypeEnum added in v0.0.69

type SubTemplateSubTypeEnum struct {
	SMS      SubTemplateSubType
	DINGDING SubTemplateSubType
	WECHAT   SubTemplateSubType
	WEBHOOK  SubTemplateSubType
	EMAIL    SubTemplateSubType
}

func GetSubTemplateSubTypeEnum added in v0.0.69

func GetSubTemplateSubTypeEnum() SubTemplateSubTypeEnum

type TagField added in v0.0.71

type TagField struct {

	// 字段名称
	FieldName string `json:"fieldName"`

	// 字段数据类型,例:string,long,float
	Type string `json:"type"`

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

	// 是否开启快速分析
	IsAnalysis *bool `json:"isAnalysis,omitempty"`
}

tag信息。

func (TagField) String added in v0.0.71

func (o TagField) String() string

type TagFieldNew added in v0.0.78

type TagFieldNew struct {

	// 字段名称
	FieldName string `json:"field_name"`

	// 字段示例内容
	Content *string `json:"content,omitempty"`

	// 字段数据类型。 可选范围:string、long、float
	Type TagFieldNewType `json:"type"`

	// 是否开启快速分析
	IsAnalysis *bool `json:"is_analysis,omitempty"`

	// 序号,从0开始
	Index *int32 `json:"index,omitempty"`
}

Tag字段对象

func (TagFieldNew) String added in v0.0.78

func (o TagFieldNew) String() string

type TagFieldNewType added in v0.0.78

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

func (TagFieldNewType) MarshalJSON added in v0.0.78

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

func (*TagFieldNewType) UnmarshalJSON added in v0.0.78

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

func (TagFieldNewType) Value added in v0.0.90

func (c TagFieldNewType) Value() string

type TagFieldNewTypeEnum added in v0.0.78

type TagFieldNewTypeEnum struct {
	STRING TagFieldNewType
	LONG   TagFieldNewType
	FLOAT  TagFieldNewType
}

func GetTagFieldNewTypeEnum added in v0.0.78

func GetTagFieldNewTypeEnum() TagFieldNewTypeEnum

type TagFieldsInfo added in v0.0.68

type TagFieldsInfo struct {

	// 字段名称
	FieldName *string `json:"fieldName,omitempty"`

	// 字段类型
	Type *string `json:"type,omitempty"`

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

	// 是否解析
	IsAnalysis *bool `json:"isAnalysis,omitempty"`

	// 字段名称
	Index *int32 `json:"index,omitempty"`
}

调用成功时的返回值。

func (TagFieldsInfo) String added in v0.0.68

func (o TagFieldsInfo) String() string

type TagsBody added in v0.1.19

type TagsBody struct {

	// 标签键
	Key *string `json:"key,omitempty"`

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

标签字段信息

func (TagsBody) String added in v0.1.19

func (o TagsBody) String() string

type TemplateRule added in v0.0.78

type TemplateRule struct {

	// 结构化类型,只支持custom_regex,json,split,nginx
	Type TemplateRuleType `json:"type"`

	// 具体结构化规则,每种结构化类型都有自己独有的结构,具体结构如下: 手动正则为json字符串,包含keyObject对象和regex_rules对象,keyObject内为键值对,键为demo_fields数组中元素的index,值为field_name,regex_rules对象为正则表达式字符串,整体例子为{\\\"keyObject\\\":{\\\"1\\\":\\\"date\\\",\\\"2\\\":\\\"num\\\"},\\\"regex_rules\\\":\\\"^(?<date>[^/]+)(?:[^ ]* ){8}(?<num>\\\\\\\\d+)\\\"}; json方式时param为一个json字符串,包含keyObject对象和layers对象,keyObject内为键值对,键为demo_fields数组中元素的field_name,值为user_defined_name,layers为最大解析层数,当前最大值为4,整体例子为{\\\"keyObject\\\":{\\\"metadata.dimention\\\":\\\"dimention\\\",\\\"metadata.value\\\":\\\"\\\",\\\"metadata.unit\\\":\\\"\\\",\\\"collectionTime\\\":\\\"\\\"},\\\"layers\\\":3}; 分隔符方式时为json字符串,包含keyObject对象和tokenizer对象,keyObject内为键值对,键为demo_fields数组中元素的index,值为field_name,tokenizer对象为所用分隔符,整体例子为{\\\"keyObject\\\":{\\\"0\\\":\\\"field1\\\",\\\"1\\\":\\\"field2\\\",\\\"2\\\":\\\"field3\\\",\\\"3\\\":\\\"field4\\\",\\\"4\\\":\\\"field5\\\",\\\"5\\\":\\\"field6\\\",\\\"6\\\":\\\"field7\\\",\\\"7\\\":\\\"field8\\\",\\\"8\\\":\\\"field9\\\"},\\\"tokenizer\\\":\\\" \\\"}; nginx方式时为json字符串,包含keyObject对象,regex对象,field_names对象及log_format对象,keyObject内为键值对,键为demo_fields数组中元素的field_name,值为user_defined_name,regex为正则表达式字符串,field_names对象为demo_fields数组中各元素的field_name的拼接字符串,每个field_name以','分隔,log_format对象为nginx日志格式化方式,具体方式参考https://support.huaweicloud.com/usermanual-lts/lts_0820.html#lts_0820__section1151119552549进行配置,整体例子为\"{\\\"keyObject\\\":{\\\"http_host\\\":\\\"host\\\",\\\"remote_addr\\\":\\\"\\\",\\\"request_method\\\":\\\"\\\",\\\"request_uri\\\":\\\"\\\",\\\"time_local\\\":\\\"\\\"},\\\"regex\\\":\\\"(\\\\\\\\d+/\\\\\\\\S+/\\\\\\\\d+:\\\\\\\\d+:\\\\\\\\d+:\\\\\\\\d+)\\\\\\\\s+\\\\\\\\S+\\\\\\\\s+(\\\\\\\\S*)\\\\\\\\s+(\\\\\\\\S*)\\\\\\\\s+(\\\\\\\\S*)\\\\\\\\s+\\\\\\\"([^\\\\\\\"]*)\\\\\\\".*\\\",\\\"fieldNames\\\":\\\"time_local,remote_addr,request_method,http_host,request_uri\\\",\\\"log_format\\\":\\\"log_format upstreaminfo '$time_local $remote_addr  $request_method $http_host \\\\\\\"$request_uri\\\\\\\"';\\\"}\"
	Param string `json:"param"`
}

结构化模板规则对象

func (TemplateRule) String added in v0.0.78

func (o TemplateRule) String() string

type TemplateRuleType added in v0.0.78

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

func (TemplateRuleType) MarshalJSON added in v0.0.78

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

func (*TemplateRuleType) UnmarshalJSON added in v0.0.78

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

func (TemplateRuleType) Value added in v0.0.90

func (c TemplateRuleType) Value() string

type TemplateRuleTypeEnum added in v0.0.78

type TemplateRuleTypeEnum struct {
	CUSTOM_REGEX TemplateRuleType
	JSON         TemplateRuleType
	SPLIT        TemplateRuleType
	NGINX        TemplateRuleType
}

func GetTemplateRuleTypeEnum added in v0.0.78

func GetTemplateRuleTypeEnum() TemplateRuleTypeEnum

type TimeRange added in v0.0.51

type TimeRange struct {

	// 时区信息,默认为“UTC”。
	SqlTimeZone *string `json:"sql_time_zone,omitempty"`

	// 搜索起始时间(UTC时间,毫秒级)。
	StartTime string `json:"start_time"`

	// 搜索起始时间(UTC时间,毫秒级)。
	EndTime string `json:"end_time"`

	// 搜索是否包含起始时间点,默认为false。
	StartTimeGt *bool `json:"start_time_gt,omitempty"`

	// 搜索是否包含结束时间点,默认为false。
	EndTimeLt *bool `json:"end_time_lt,omitempty"`
}

此参数在请求实体中,采用json字符串格式。

func (TimeRange) String added in v0.0.51

func (o TimeRange) String() string

type TimelineTrafficStatisticsRequestBody added in v0.1.15

type TimelineTrafficStatisticsRequestBody struct {

	// 开始时间时间戳,毫秒时间,最多支持30天范围内的查询
	StartTime int64 `json:"start_time"`

	// 结束时间时间戳,毫秒时间
	EndTime int64 `json:"end_time"`

	// 查询时间间隔,单位为小时,范围为1-24
	Period int32 `json:"period"`

	// 资源类型,log_group / log_stream / tenant
	ResourceType string `json:"resource_type"`

	// 查询流量类型值为:write,index,storage
	SearchType string `json:"search_type"`

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`
}

func (TimelineTrafficStatisticsRequestBody) String added in v0.1.15

type Topics added in v0.0.68

type Topics struct {

	// 主题名称
	Name string `json:"name"`

	// Topic的唯一的资源标识。
	TopicUrn string `json:"topic_urn"`

	// Topic的显示名,推送邮件消息时,作为邮件发件人显示
	DisplayName *string `json:"display_name,omitempty"`

	// 消息推送的策略
	PushPolicy *int32 `json:"push_policy,omitempty"`
}

func (Topics) String added in v0.0.68

func (o Topics) String() string

type TopnRequstBody added in v0.1.19

type TopnRequstBody struct {

	// 结束时间时间戳,毫秒时间
	EndTime int64 `json:"end_time"`

	// 是否降序  true / false
	IsDesc bool `json:"is_desc"`

	// 资源类型,log_group / log_stream / tenant
	ResourceType string `json:"resource_type"`

	// 排序依据,index/write/storage,必须是search_list中存在的数据
	SortBy string `json:"sort_by"`

	// 开始时间时间戳,毫秒时间,最多支持30天范围内的查询
	StartTime int64 `json:"start_time"`

	// 查询前多少数据,范围1~100
	Topn int32 `json:"topn"`

	// 过滤条件 {     \"log_group_id\": \"xxxxxx\" }过滤器,为一个map结构,键为过滤属性,值为属性值,不支持模糊匹配
	Filter map[string]string `json:"filter"`

	// 查询数据类型,字符串数组可多种搭配,只能在index/write/storage中选填
	SearchList []string `json:"search_list"`
}

func (TopnRequstBody) String added in v0.1.19

func (o TopnRequstBody) String() string

type TransferDetail added in v0.0.69

type TransferDetail struct {

	// OBS转储时间
	ObsPeriod TransferDetailObsPeriod `json:"obs_period"`

	// OBS转储KMS秘钥ID。若OBS转储未加密则不返回此字段
	ObsEncryptedId *string `json:"obs_encrypted_id,omitempty"`

	// OBS转储日志文件前缀
	ObsPrefixName *string `json:"obs_prefix_name,omitempty"`

	// OBS转储单位
	ObsPeriodUnit string `json:"obs_period_unit"`

	// OBS转储路径,指OBS日志桶中的路径
	ObsTransferPath *string `json:"obs_transfer_path,omitempty"`

	// OBS企业项目ID
	ObsEpsId *string `json:"obs_eps_id,omitempty"`

	// OBS日志桶名称
	ObsBucketName string `json:"obs_bucket_name"`

	// OBS是否开启加密。
	ObsEncryptedEnable *bool `json:"obs_encrypted_enable,omitempty"`

	// OBS转储自定义转储路径
	ObsDirPreFixName *string `json:"obs_dir_pre_fix_name,omitempty"`

	// DIS转储通道ID
	DisId *string `json:"dis_id,omitempty"`

	// DIS转储通道名称
	DisName *string `json:"dis_name,omitempty"`

	// DMS转储kafka ID
	KafkaId *string `json:"kafka_id,omitempty"`

	// DMS转储kafka topic
	KafkaTopic *string `json:"kafka_topic,omitempty"`

	// OBS转储时区。如果选择该参数,则必须选择obs_time_zone_id。
	ObsTimeZone *string `json:"obs_time_zone,omitempty"`

	// OBS转储时区ID。参数选择参考OBS转储时区表。如果选择该参数,则必须选择obs_time_zone。
	ObsTimeZoneId *string `json:"obs_time_zone_id,omitempty"`

	// 若开启tag投递,该字段必须包含主机信息:hostIP、hostId、hostName、pathFile、collectTime;  公共字段有:logStreamName、regionName、logGroupName、projectId,为可选填;  开启转储标签:streamTag,可选填
	Tags *[]string `json:"tags,omitempty"`
}

日志转储详细信息

func (TransferDetail) String added in v0.0.69

func (o TransferDetail) String() string

type TransferDetailObsPeriod added in v0.0.69

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

func (TransferDetailObsPeriod) MarshalJSON added in v0.0.69

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

func (*TransferDetailObsPeriod) UnmarshalJSON added in v0.0.69

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

func (TransferDetailObsPeriod) Value added in v0.0.90

func (c TransferDetailObsPeriod) Value() int32

type TransferDetailObsPeriodEnum added in v0.0.69

func GetTransferDetailObsPeriodEnum added in v0.0.69

func GetTransferDetailObsPeriodEnum() TransferDetailObsPeriodEnum

type UpdateAccessConfigRequest added in v0.0.71

type UpdateAccessConfigRequest struct {
	Body *UpdateAccessConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateAccessConfigRequest) String added in v0.0.71

func (o UpdateAccessConfigRequest) String() string

type UpdateAccessConfigRequestBody added in v0.0.71

type UpdateAccessConfigRequestBody struct {

	// 日志接入ID
	AccessConfigId string `json:"access_config_id"`

	AccessConfigDetail *AccessConfigDeatil `json:"access_config_detail,omitempty"`

	HostGroupInfo *AccessConfigHostGroupIdList `json:"host_group_info,omitempty"`

	AccessConfigTag *[]AccessConfigTag `json:"access_config_tag,omitempty"`
}

修改日志接入请求体

func (UpdateAccessConfigRequestBody) String added in v0.0.71

type UpdateAccessConfigResponse added in v0.0.71

type UpdateAccessConfigResponse struct {

	// 日志接入ID
	AccessConfigId *string `json:"access_config_id,omitempty"`

	// 日志接入名称
	AccessConfigName *string `json:"access_config_name,omitempty"`

	// 日志接入类型。AGENT:主机接入
	AccessConfigType *UpdateAccessConfigResponseAccessConfigType `json:"access_config_type,omitempty"`

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

	AccessConfigDetail *AccessConfigDeatil `json:"access_config_detail,omitempty"`

	LogInfo *AccessConfigQueryLogInfo `json:"log_info,omitempty"`

	HostGroupInfo *AccessConfigHostGroupIdList `json:"host_group_info,omitempty"`

	AccessConfigTag *[]AccessConfigTag `json:"access_config_tag,omitempty"`
	HttpStatusCode  int                `json:"-"`
}

Response Object

func (UpdateAccessConfigResponse) String added in v0.0.71

type UpdateAccessConfigResponseAccessConfigType added in v0.0.71

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

func (UpdateAccessConfigResponseAccessConfigType) MarshalJSON added in v0.0.71

func (*UpdateAccessConfigResponseAccessConfigType) UnmarshalJSON added in v0.0.71

func (UpdateAccessConfigResponseAccessConfigType) Value added in v0.0.90

type UpdateAccessConfigResponseAccessConfigTypeEnum added in v0.0.71

type UpdateAccessConfigResponseAccessConfigTypeEnum struct {
	AGENT UpdateAccessConfigResponseAccessConfigType
}

func GetUpdateAccessConfigResponseAccessConfigTypeEnum added in v0.0.71

func GetUpdateAccessConfigResponseAccessConfigTypeEnum() UpdateAccessConfigResponseAccessConfigTypeEnum

type UpdateAlarmRuleStatusRequest added in v0.0.69

type UpdateAlarmRuleStatusRequest struct {
	Body *ChangeAlarmRuleStatus `json:"body,omitempty"`
}

Request Object

func (UpdateAlarmRuleStatusRequest) String added in v0.0.69

type UpdateAlarmRuleStatusResponse added in v0.0.69

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

Response Object

func (UpdateAlarmRuleStatusResponse) String added in v0.0.69

type UpdateAomMappingRulesRequest added in v0.0.68

type UpdateAomMappingRulesRequest struct {
	Body *AomMappingRequestInfo `json:"body,omitempty"`
}

Request Object

func (UpdateAomMappingRulesRequest) String added in v0.0.68

type UpdateAomMappingRulesResponse added in v0.0.68

type UpdateAomMappingRulesResponse struct {

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

	// 接入规则名称
	RuleName *string `json:"rule_name,omitempty"`

	// 接入规则id
	RuleId *string `json:"rule_id,omitempty"`

	RuleInfo       *AomMappingRuleInfo `json:"rule_info,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (UpdateAomMappingRulesResponse) String added in v0.0.68

type UpdateHostGroupRequest added in v0.0.71

type UpdateHostGroupRequest struct {
	Body *UpdateHostGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateHostGroupRequest) String added in v0.0.71

func (o UpdateHostGroupRequest) String() string

type UpdateHostGroupRequestBody added in v0.0.71

type UpdateHostGroupRequestBody struct {

	// 主机组ID
	HostGroupId string `json:"host_group_id"`

	// 主机组名称
	HostGroupName *string `json:"host_group_name,omitempty"`

	// 主机ID列表。主机类型必须与主机组类型一致
	HostIdList *[]string `json:"host_id_list,omitempty"`

	// 主机组标签。KEY不能重复
	HostGroupTag *[]HostGroupTag `json:"host_group_tag,omitempty"`
}

更新主机组请求体

func (UpdateHostGroupRequestBody) String added in v0.0.71

type UpdateHostGroupResponse added in v0.0.71

type UpdateHostGroupResponse struct {

	// 主机组ID
	HostGroupId *string `json:"host_group_id,omitempty"`

	// 主机组名称
	HostGroupName *string `json:"host_group_name,omitempty"`

	// 主机组类型。linux:linux类型,windows:windows类型
	HostGroupType *UpdateHostGroupResponseHostGroupType `json:"host_group_type,omitempty"`

	// 主机ID列表
	HostIdList *[]string `json:"host_id_list,omitempty"`

	// 标签信息
	HostGroupTag *[]HostGroupTag `json:"host_group_tag,omitempty"`

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

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

Response Object

func (UpdateHostGroupResponse) String added in v0.0.71

func (o UpdateHostGroupResponse) String() string

type UpdateHostGroupResponseHostGroupType added in v0.0.71

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

func (UpdateHostGroupResponseHostGroupType) MarshalJSON added in v0.0.71

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

func (*UpdateHostGroupResponseHostGroupType) UnmarshalJSON added in v0.0.71

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

func (UpdateHostGroupResponseHostGroupType) Value added in v0.0.90

type UpdateHostGroupResponseHostGroupTypeEnum added in v0.0.71

type UpdateHostGroupResponseHostGroupTypeEnum struct {
	LINUX   UpdateHostGroupResponseHostGroupType
	WINDOWS UpdateHostGroupResponseHostGroupType
}

func GetUpdateHostGroupResponseHostGroupTypeEnum added in v0.0.71

func GetUpdateHostGroupResponseHostGroupTypeEnum() UpdateHostGroupResponseHostGroupTypeEnum

type UpdateKeywordsAlarmRuleRequest added in v0.0.68

type UpdateKeywordsAlarmRuleRequest struct {
	Body *UpdateKeywordsAlarmRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateKeywordsAlarmRuleRequest) String added in v0.0.68

type UpdateKeywordsAlarmRuleRequestBody added in v0.0.68

type UpdateKeywordsAlarmRuleRequestBody struct {

	// 关键词告警规则id
	KeywordsAlarmRuleId string `json:"keywords_alarm_rule_id"`

	// 关键词告警名称
	KeywordsAlarmRuleName string `json:"keywords_alarm_rule_name"`

	// 关键词告警信息描述
	KeywordsAlarmRuleDescription *string `json:"keywords_alarm_rule_description,omitempty"`

	// 关键词详细信息
	KeywordsRequests []KeywordsRequest `json:"keywords_requests"`

	// 告警统计周期
	Frequency *Frequency `json:"frequency"`

	// 告警级别
	KeywordsAlarmLevel UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel `json:"keywords_alarm_level"`

	// 是否发送
	KeywordsAlarmSend bool `json:"keywords_alarm_send"`

	// 发送主题 0:不变 1:新增 2:修改 3:删除
	KeywordsAlarmSendCode UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmSendCode `json:"keywords_alarm_send_code"`

	// domainId
	DomainId string `json:"domain_id"`

	// 通知主题
	NotificationSaveRule *NotificationSaveRule `json:"notification_save_rule,omitempty"`

	// 触发条件:触发次数;默认为1
	TriggerConditionCount *int32 `json:"trigger_condition_count,omitempty"`

	// 触发条件:触发周期;默认为1
	TriggerConditionFrequency *int32 `json:"trigger_condition_frequency,omitempty"`

	// 是否打开恢复通知;默认false
	WhetherRecoveryPolicy *bool `json:"whether_recovery_policy,omitempty"`

	// 恢复策略周期;默认为3
	RecoveryPolicy *int32 `json:"recovery_policy,omitempty"`
}

func (UpdateKeywordsAlarmRuleRequestBody) String added in v0.0.68

type UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel added in v0.0.68

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

func (UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel) MarshalJSON added in v0.0.68

func (*UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel) UnmarshalJSON added in v0.0.68

func (UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmLevel) Value added in v0.0.90

type UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmSendCode added in v0.0.69

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

func (UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmSendCode) MarshalJSON added in v0.0.69

func (*UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmSendCode) UnmarshalJSON added in v0.0.69

func (UpdateKeywordsAlarmRuleRequestBodyKeywordsAlarmSendCode) Value added in v0.0.90

type UpdateKeywordsAlarmRuleResponse added in v0.0.68

type UpdateKeywordsAlarmRuleResponse struct {

	// 关键词告警id
	KeywordsAlarmRuleId *string `json:"keywords_alarm_rule_id,omitempty"`

	// 关键词告警名称
	KeywordsAlarmRuleName *string `json:"keywords_alarm_rule_name,omitempty"`

	// 关键词告警信息描述
	KeywordsAlarmRuleDescription *string `json:"keywords_alarm_rule_description,omitempty"`

	// 关键词详细信息
	KeywordsRequests *[]KeywordsRequest `json:"keywords_requests,omitempty"`

	Frequency *Frequency `json:"frequency,omitempty"`

	// 告警级别
	KeywordsAlarmLevel *UpdateKeywordsAlarmRuleResponseKeywordsAlarmLevel `json:"keywords_alarm_level,omitempty"`

	// 是否发送
	KeywordsAlarmSend *bool `json:"keywords_alarm_send,omitempty"`

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

	// 创建时间(毫秒时间戳)
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新时间(毫秒时间戳)
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 语言
	Language *string `json:"language,omitempty"`

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

	// 主题信息
	Topics *[]Topics `json:"topics,omitempty"`

	// 暂无
	ConditionExpression *string `json:"condition_expression,omitempty"`

	// 暂无
	IndexId        *string `json:"indexId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateKeywordsAlarmRuleResponse) String added in v0.0.68

type UpdateKeywordsAlarmRuleResponseKeywordsAlarmLevel added in v0.0.68

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

func (UpdateKeywordsAlarmRuleResponseKeywordsAlarmLevel) MarshalJSON added in v0.0.68

func (*UpdateKeywordsAlarmRuleResponseKeywordsAlarmLevel) UnmarshalJSON added in v0.0.68

func (UpdateKeywordsAlarmRuleResponseKeywordsAlarmLevel) Value added in v0.0.90

type UpdateLogGroupParams

type UpdateLogGroupParams struct {

	// 日志存储时间 天。 取值范围为 [1, 30]
	TtlInDays int32 `json:"ttl_in_days"`
}

修改日志组的参数。

func (UpdateLogGroupParams) String

func (o UpdateLogGroupParams) String() string

type UpdateLogGroupRequest

type UpdateLogGroupRequest struct {

	// 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html
	LogGroupId string `json:"log_group_id"`

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

Request Object

func (UpdateLogGroupRequest) String

func (o UpdateLogGroupRequest) String() string

type UpdateLogGroupResponse

type UpdateLogGroupResponse struct {

	// 创建该日志组的时间, 毫秒级。
	CreationTime *int64 `json:"creation_time,omitempty"`

	// 日志组的名称。
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志组ID。
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志存储时间(天)。
	TtlInDays      *int32 `json:"ttl_in_days,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (UpdateLogGroupResponse) String

func (o UpdateLogGroupResponse) String() string

type UpdateNotificationTemplateRequest added in v0.0.69

type UpdateNotificationTemplateRequest struct {

	// 账号id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
	DomainId string `json:"domain_id"`

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

Request Object

func (UpdateNotificationTemplateRequest) String added in v0.0.69

type UpdateNotificationTemplateResponse added in v0.0.69

type UpdateNotificationTemplateResponse struct {

	// 通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改
	Name *string `json:"name,omitempty"`

	// 保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子)
	Type *[]string `json:"type,omitempty"`

	// 模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024
	Desc *string `json:"desc,omitempty"`

	// 模板来源,目前必填为LTS,否则会筛选不出来
	Source *string `json:"source,omitempty"`

	// 语言,必填,目前可填zh-cn和en-us
	Locale *UpdateNotificationTemplateResponseLocale `json:"locale,omitempty"`

	// 模板正文,为一个数组
	Templates      *[]SubTemplate `json:"templates,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateNotificationTemplateResponse) String added in v0.0.69

type UpdateNotificationTemplateResponseLocale added in v0.0.69

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

func (UpdateNotificationTemplateResponseLocale) MarshalJSON added in v0.0.69

func (*UpdateNotificationTemplateResponseLocale) UnmarshalJSON added in v0.0.69

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

func (UpdateNotificationTemplateResponseLocale) Value added in v0.0.90

type UpdateNotificationTemplateResponseLocaleEnum added in v0.0.69

type UpdateNotificationTemplateResponseLocaleEnum struct {
	ZH_CN UpdateNotificationTemplateResponseLocale
	EN_US UpdateNotificationTemplateResponseLocale
}

func GetUpdateNotificationTemplateResponseLocaleEnum added in v0.0.69

func GetUpdateNotificationTemplateResponseLocaleEnum() UpdateNotificationTemplateResponseLocaleEnum

type UpdateSqlAlarmRuleRequest added in v0.0.68

type UpdateSqlAlarmRuleRequest struct {
	Body *UpdateSqlAlarmRuleRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateSqlAlarmRuleRequest) String added in v0.0.68

func (o UpdateSqlAlarmRuleRequest) String() string

type UpdateSqlAlarmRuleRequestBody added in v0.0.68

type UpdateSqlAlarmRuleRequestBody struct {

	// SQL告警id
	SqlAlarmRuleId string `json:"sql_alarm_rule_id"`

	// SQL告警名称
	SqlAlarmRuleName string `json:"sql_alarm_rule_name"`

	// SQL告警信息描述
	SqlAlarmRuleDescription *string `json:"sql_alarm_rule_description,omitempty"`

	// SQL详细信息
	SqlRequests []SqlRequest `json:"sql_requests"`

	// 告警统计周期
	Frequency *Frequency `json:"frequency"`

	// 条件表达式
	ConditionExpression string `json:"condition_expression"`

	// 告警级别
	SqlAlarmLevel UpdateSqlAlarmRuleRequestBodySqlAlarmLevel `json:"sql_alarm_level"`

	// 是否发送
	SqlAlarmSend bool `json:"sql_alarm_send"`

	// 发送主题 0:不变 1:新增 2:修改 3:删除
	SqlAlarmSendCode UpdateSqlAlarmRuleRequestBodySqlAlarmSendCode `json:"sql_alarm_send_code"`

	// domainId
	DomainId string `json:"domain_id"`

	// 通知主题
	NotificationSaveRule *NotificationSaveRule `json:"notification_save_rule,omitempty"`

	// 触发条件:触发次数;默认为1
	TriggerConditionCount *int32 `json:"trigger_condition_count,omitempty"`

	// 触发条件:触发周期;默认为1
	TriggerConditionFrequency *int32 `json:"trigger_condition_frequency,omitempty"`

	// 是否打开恢复通知;默认false
	WhetherRecoveryPolicy *bool `json:"whether_recovery_policy,omitempty"`

	// 恢复策略周期;默认为3
	RecoveryPolicy *int32 `json:"recovery_policy,omitempty"`
}

func (UpdateSqlAlarmRuleRequestBody) String added in v0.0.68

type UpdateSqlAlarmRuleRequestBodySqlAlarmLevel added in v0.0.68

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

func (UpdateSqlAlarmRuleRequestBodySqlAlarmLevel) MarshalJSON added in v0.0.68

func (*UpdateSqlAlarmRuleRequestBodySqlAlarmLevel) UnmarshalJSON added in v0.0.68

func (UpdateSqlAlarmRuleRequestBodySqlAlarmLevel) Value added in v0.0.90

type UpdateSqlAlarmRuleRequestBodySqlAlarmSendCode added in v0.0.69

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

func (UpdateSqlAlarmRuleRequestBodySqlAlarmSendCode) MarshalJSON added in v0.0.69

func (*UpdateSqlAlarmRuleRequestBodySqlAlarmSendCode) UnmarshalJSON added in v0.0.69

func (UpdateSqlAlarmRuleRequestBodySqlAlarmSendCode) Value added in v0.0.90

type UpdateSqlAlarmRuleResponse added in v0.0.68

type UpdateSqlAlarmRuleResponse struct {

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

	// 测试
	IndexId *string `json:"indexId,omitempty"`

	// 测试
	Language *string `json:"language,omitempty"`

	// 测试
	ProjectId *string `json:"projectId,omitempty"`

	// SQL告警名称
	SqlAlarmRuleName *string `json:"sql_alarm_rule_name,omitempty"`

	// SQL告警规则id
	SqlAlarmRuleId *string `json:"sql_alarm_rule_id,omitempty"`

	// SQL告警信息描述
	SqlAlarmRuleDescription *string `json:"sql_alarm_rule_description,omitempty"`

	// SQL详细信息
	SqlRequests *[]SqlRequest `json:"sql_requests,omitempty"`

	// 告警统计周期
	Frequency *Frequency `json:"frequency,omitempty"`

	// 条件表达式
	ConditionExpression *string `json:"condition_expression,omitempty"`

	// 告警级别
	SqlAlarmLevel *UpdateSqlAlarmRuleResponseSqlAlarmLevel `json:"sql_alarm_level,omitempty"`

	// 是否发送
	SqlAlarmSend *bool `json:"sql_alarm_send,omitempty"`

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

	// 创建时间(毫秒时间戳)
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新时间(毫秒时间戳)
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 主题
	Topics         *[]Topics `json:"topics,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdateSqlAlarmRuleResponse) String added in v0.0.68

type UpdateSqlAlarmRuleResponseSqlAlarmLevel added in v0.0.68

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

func (UpdateSqlAlarmRuleResponseSqlAlarmLevel) MarshalJSON added in v0.0.68

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

func (*UpdateSqlAlarmRuleResponseSqlAlarmLevel) UnmarshalJSON added in v0.0.68

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

func (UpdateSqlAlarmRuleResponseSqlAlarmLevel) Value added in v0.0.90

type UpdateStructConfigRequest added in v0.0.78

type UpdateStructConfigRequest struct {
	Body *StructConfig `json:"body,omitempty"`
}

Request Object

func (UpdateStructConfigRequest) String added in v0.0.78

func (o UpdateStructConfigRequest) String() string

type UpdateStructConfigResponse added in v0.0.78

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

Response Object

func (UpdateStructConfigResponse) String added in v0.0.78

type UpdateStructTemplateRequest added in v0.0.68

type UpdateStructTemplateRequest struct {
	Body *LtsStructTemplateInfo `json:"body,omitempty"`
}

Request Object

func (UpdateStructTemplateRequest) String added in v0.0.68

type UpdateStructTemplateResponse added in v0.0.68

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

Response Object

func (UpdateStructTemplateResponse) String added in v0.0.68

type UpdateTransferRequest added in v0.0.69

type UpdateTransferRequest struct {
	Body *UpdateTransferRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTransferRequest) String added in v0.0.69

func (o UpdateTransferRequest) String() string

type UpdateTransferRequestBody added in v0.0.69

type UpdateTransferRequestBody struct {

	// 日志转储ID
	LogTransferId string `json:"log_transfer_id"`

	LogTransferInfo *UpdateTransferRequestBodyLogTransferInfo `json:"log_transfer_info"`
}

func (UpdateTransferRequestBody) String added in v0.0.69

func (o UpdateTransferRequestBody) String() string

type UpdateTransferRequestBodyLogTransferInfo added in v0.0.69

type UpdateTransferRequestBodyLogTransferInfo struct {

	// 日志转储格式。只支持\"RAW\", \"JSON\"。RAW是指原始日志格式,JSON是指JSON日志格式。OBS转储和DIS转储支持JSON和RAW,DMS转储仅支持RAW
	LogStorageFormat UpdateTransferRequestBodyLogTransferInfoLogStorageFormat `json:"log_storage_format"`

	// 日志转储状态,ENABLE是指日志转储开启状态,DISABLE是指日志转储关闭状态,EXCEPTION是指日志转储异常状态
	LogTransferStatus UpdateTransferRequestBodyLogTransferInfoLogTransferStatus `json:"log_transfer_status"`

	LogTransferDetail *TransferDetail `json:"log_transfer_detail"`
}

日志转储信息

func (UpdateTransferRequestBodyLogTransferInfo) String added in v0.0.69

type UpdateTransferRequestBodyLogTransferInfoLogStorageFormat added in v0.0.69

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

func (UpdateTransferRequestBodyLogTransferInfoLogStorageFormat) MarshalJSON added in v0.0.69

func (*UpdateTransferRequestBodyLogTransferInfoLogStorageFormat) UnmarshalJSON added in v0.0.69

func (UpdateTransferRequestBodyLogTransferInfoLogStorageFormat) Value added in v0.0.90

type UpdateTransferRequestBodyLogTransferInfoLogStorageFormatEnum added in v0.0.69

type UpdateTransferRequestBodyLogTransferInfoLogStorageFormatEnum struct {
	JSON UpdateTransferRequestBodyLogTransferInfoLogStorageFormat
	RAW  UpdateTransferRequestBodyLogTransferInfoLogStorageFormat
}

func GetUpdateTransferRequestBodyLogTransferInfoLogStorageFormatEnum added in v0.0.69

func GetUpdateTransferRequestBodyLogTransferInfoLogStorageFormatEnum() UpdateTransferRequestBodyLogTransferInfoLogStorageFormatEnum

type UpdateTransferRequestBodyLogTransferInfoLogTransferStatus added in v0.0.69

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

func (UpdateTransferRequestBodyLogTransferInfoLogTransferStatus) MarshalJSON added in v0.0.69

func (*UpdateTransferRequestBodyLogTransferInfoLogTransferStatus) UnmarshalJSON added in v0.0.69

func (UpdateTransferRequestBodyLogTransferInfoLogTransferStatus) Value added in v0.0.90

type UpdateTransferResponse added in v0.0.69

type UpdateTransferResponse struct {

	// 日志组ID
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志组名称
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 日志流ID集合
	LogStreams *[]CreateTransferResponseBodyLogStreams `json:"log_streams,omitempty"`

	// 日志转储ID
	LogTransferId *string `json:"log_transfer_id,omitempty"`

	LogTransferInfo *CreateTransferResponseBodyLogTransferInfo `json:"log_transfer_info,omitempty"`
	HttpStatusCode  int                                        `json:"-"`
}

Response Object

func (UpdateTransferResponse) String added in v0.0.69

func (o UpdateTransferResponse) String() string

Source Files

Jump to

Keyboard shortcuts

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