Documentation
¶
Overview ¶
Package ulogservice include resources of ucloud ulogservice product
See also
- API: https://docs.ucloud.cn/api/ulogservice-api/index
- Product: https://www.ucloud.cn/site/product/ulogservice.html
for detail.
Index ¶
- type AnalysisField
- type BindULogServiceGroupToCollectConfRequest
- type BindULogServiceGroupToCollectConfResponse
- type CollectConf
- type CreateULogServiceCollectConfParamFilePaths
- type CreateULogServiceCollectConfRequest
- type CreateULogServiceCollectConfResponse
- type CreateULogServiceLogSetRequest
- type CreateULogServiceLogSetResponse
- type CreateULogServiceMachineGroupRequest
- type CreateULogServiceMachineGroupResponse
- type CreateULogServiceTopicRequest
- type CreateULogServiceTopicResponse
- type DeleteULogServiceCollectConfRequest
- type DeleteULogServiceCollectConfResponse
- type DeleteULogServiceLogSetRequest
- type DeleteULogServiceLogSetResponse
- type DeleteULogServiceMachineGroupRequest
- type DeleteULogServiceMachineGroupResponse
- type DeleteULogServiceTopicRequest
- type DeleteULogServiceTopicResponse
- type DescribeULogServiceMachineGroupRequest
- type DescribeULogServiceMachineGroupResponse
- type FilePath
- type GetULogServiceTopicFieldRequest
- type GetULogServiceTopicFieldResponse
- type ListULogServiceCollectConfRequest
- type ListULogServiceCollectConfResponse
- type ListULogServiceLogSetRequest
- type ListULogServiceLogSetResponse
- type ListULogServiceMachineGroupRequest
- type ListULogServiceMachineGroupResponse
- type ListULogServiceTopicRequest
- type ListULogServiceTopicResponse
- type LogAgent
- type LogContent
- type LogQueryResult
- type LogSetInfo
- type MachineGroup
- type MachineInfo
- type QueryULogServiceLogRequest
- type QueryULogServiceLogResponse
- type TopicField
- type TopicInfo
- type ULogServiceClient
- func (c *ULogServiceClient) BindULogServiceGroupToCollectConf(req *BindULogServiceGroupToCollectConfRequest) (*BindULogServiceGroupToCollectConfResponse, error)
- func (c *ULogServiceClient) CreateULogServiceCollectConf(req *CreateULogServiceCollectConfRequest) (*CreateULogServiceCollectConfResponse, error)
- func (c *ULogServiceClient) CreateULogServiceLogSet(req *CreateULogServiceLogSetRequest) (*CreateULogServiceLogSetResponse, error)
- func (c *ULogServiceClient) CreateULogServiceMachineGroup(req *CreateULogServiceMachineGroupRequest) (*CreateULogServiceMachineGroupResponse, error)
- func (c *ULogServiceClient) CreateULogServiceTopic(req *CreateULogServiceTopicRequest) (*CreateULogServiceTopicResponse, error)
- func (c *ULogServiceClient) DeleteULogServiceCollectConf(req *DeleteULogServiceCollectConfRequest) (*DeleteULogServiceCollectConfResponse, error)
- func (c *ULogServiceClient) DeleteULogServiceLogSet(req *DeleteULogServiceLogSetRequest) (*DeleteULogServiceLogSetResponse, error)
- func (c *ULogServiceClient) DeleteULogServiceMachineGroup(req *DeleteULogServiceMachineGroupRequest) (*DeleteULogServiceMachineGroupResponse, error)
- func (c *ULogServiceClient) DeleteULogServiceTopic(req *DeleteULogServiceTopicRequest) (*DeleteULogServiceTopicResponse, error)
- func (c *ULogServiceClient) DescribeULogServiceMachineGroup(req *DescribeULogServiceMachineGroupRequest) (*DescribeULogServiceMachineGroupResponse, error)
- func (c *ULogServiceClient) GetULogServiceTopicField(req *GetULogServiceTopicFieldRequest) (*GetULogServiceTopicFieldResponse, error)
- func (c *ULogServiceClient) ListULogServiceCollectConf(req *ListULogServiceCollectConfRequest) (*ListULogServiceCollectConfResponse, error)
- func (c *ULogServiceClient) ListULogServiceLogSet(req *ListULogServiceLogSetRequest) (*ListULogServiceLogSetResponse, error)
- func (c *ULogServiceClient) ListULogServiceMachineGroup(req *ListULogServiceMachineGroupRequest) (*ListULogServiceMachineGroupResponse, error)
- func (c *ULogServiceClient) ListULogServiceTopic(req *ListULogServiceTopicRequest) (*ListULogServiceTopicResponse, error)
- func (c *ULogServiceClient) NewBindULogServiceGroupToCollectConfRequest() *BindULogServiceGroupToCollectConfRequest
- func (c *ULogServiceClient) NewCreateULogServiceCollectConfRequest() *CreateULogServiceCollectConfRequest
- func (c *ULogServiceClient) NewCreateULogServiceLogSetRequest() *CreateULogServiceLogSetRequest
- func (c *ULogServiceClient) NewCreateULogServiceMachineGroupRequest() *CreateULogServiceMachineGroupRequest
- func (c *ULogServiceClient) NewCreateULogServiceTopicRequest() *CreateULogServiceTopicRequest
- func (c *ULogServiceClient) NewDeleteULogServiceCollectConfRequest() *DeleteULogServiceCollectConfRequest
- func (c *ULogServiceClient) NewDeleteULogServiceLogSetRequest() *DeleteULogServiceLogSetRequest
- func (c *ULogServiceClient) NewDeleteULogServiceMachineGroupRequest() *DeleteULogServiceMachineGroupRequest
- func (c *ULogServiceClient) NewDeleteULogServiceTopicRequest() *DeleteULogServiceTopicRequest
- func (c *ULogServiceClient) NewDescribeULogServiceMachineGroupRequest() *DescribeULogServiceMachineGroupRequest
- func (c *ULogServiceClient) NewGetULogServiceTopicFieldRequest() *GetULogServiceTopicFieldRequest
- func (c *ULogServiceClient) NewListULogServiceCollectConfRequest() *ListULogServiceCollectConfRequest
- func (c *ULogServiceClient) NewListULogServiceLogSetRequest() *ListULogServiceLogSetRequest
- func (c *ULogServiceClient) NewListULogServiceMachineGroupRequest() *ListULogServiceMachineGroupRequest
- func (c *ULogServiceClient) NewListULogServiceTopicRequest() *ListULogServiceTopicRequest
- func (c *ULogServiceClient) NewQueryULogServiceLogRequest() *QueryULogServiceLogRequest
- func (c *ULogServiceClient) NewUpdateULogServiceCollectConfRequest() *UpdateULogServiceCollectConfRequest
- func (c *ULogServiceClient) NewUpdateULogServiceMachineGroupRequest() *UpdateULogServiceMachineGroupRequest
- func (c *ULogServiceClient) NewUpdateULogServiceTopicFieldRequest() *UpdateULogServiceTopicFieldRequest
- func (c *ULogServiceClient) QueryULogServiceLog(req *QueryULogServiceLogRequest) (*QueryULogServiceLogResponse, error)
- func (c *ULogServiceClient) UpdateULogServiceCollectConf(req *UpdateULogServiceCollectConfRequest) (*UpdateULogServiceCollectConfResponse, error)
- func (c *ULogServiceClient) UpdateULogServiceMachineGroup(req *UpdateULogServiceMachineGroupRequest) (*UpdateULogServiceMachineGroupResponse, error)
- func (c *ULogServiceClient) UpdateULogServiceTopicField(req *UpdateULogServiceTopicFieldRequest) (*UpdateULogServiceTopicFieldResponse, error)
- type UpdateULogServiceCollectConfParamFilePaths
- type UpdateULogServiceCollectConfRequest
- type UpdateULogServiceCollectConfResponse
- type UpdateULogServiceMachineGroupRequest
- type UpdateULogServiceMachineGroupResponse
- type UpdateULogServiceTopicFieldParamFieldInfos
- type UpdateULogServiceTopicFieldRequest
- type UpdateULogServiceTopicFieldResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisField ¶ added in v0.22.95
AnalysisField - 统计分析结果字段头
type BindULogServiceGroupToCollectConfRequest ¶ added in v0.22.114
type BindULogServiceGroupToCollectConfRequest struct {
request.CommonBase
// 采集配置id
CollectConfId *int `required:"true"`
// 机器组ID,是一个数组
MachineGroupIds *int `required:"false"`
// 日志主题ID
TopicId *string `required:"true"`
}
BindULogServiceGroupToCollectConfRequest is request schema for BindULogServiceGroupToCollectConf action
type BindULogServiceGroupToCollectConfResponse ¶ added in v0.22.114
type BindULogServiceGroupToCollectConfResponse struct {
response.CommonBase
// 错误信息
Message string
}
BindULogServiceGroupToCollectConfResponse is response schema for BindULogServiceGroupToCollectConf action
type CollectConf ¶ added in v0.22.114
type CollectConf struct {
// 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
CollectPolicy string
// CreateTime
CreateTime int
// 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64
Delimiter string
// 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
Encode string
// 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64
ExtractRule string
// FilePaths
FilePaths []FilePath
// Id
Id int
// 索引字段key,是一个数组
Keys string
// 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志
LogType string
// 机器组ID,是一个数组
MachineGroups []MachineGroup
// 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64
MatchRule string
// 日志采集配置名称
Name string
// State
State int
// 日志主题ID
TopicId int
// 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
UnMatchKey string
// updateTime
UpdateTime int
}
CollectConf - 日志采集配置
type CreateULogServiceCollectConfParamFilePaths ¶ added in v0.22.114
type CreateULogServiceCollectConfParamFilePaths struct {
// 定义采集路径的文件名,数组类型
File *string `required:"false"`
// 定义采集路径,数组类型
Path *string `required:"false"`
}
CreateULogServiceCollectConfParamFilePaths is request schema for complex param
type CreateULogServiceCollectConfRequest ¶ added in v0.22.114
type CreateULogServiceCollectConfRequest struct {
request.CommonBase
// 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
CollectPolicy *string `required:"true"`
// 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64
Delimiter *string `required:"false"`
// 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
Encode *string `required:"false"`
// 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64
ExtractRule *string `required:"false"`
//
FilePaths []CreateULogServiceCollectConfParamFilePaths `required:"false"`
// 索引字段key,是一个数组
Keys []string `required:"false"`
// 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志
LogType *string `required:"true"`
// 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64
MatchRule *string `required:"false"`
// 配置名称
Name *string `required:"true"`
// 日志主题ID
TopicId *string `required:"true"`
// 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
UnMatchKey *string `required:"false"`
}
CreateULogServiceCollectConfRequest is request schema for CreateULogServiceCollectConf action
type CreateULogServiceCollectConfResponse ¶ added in v0.22.114
type CreateULogServiceCollectConfResponse struct {
response.CommonBase
// 错误信息
Message string
}
CreateULogServiceCollectConfResponse is response schema for CreateULogServiceCollectConf action
type CreateULogServiceLogSetRequest ¶
type CreateULogServiceLogSetRequest struct {
request.CommonBase
// 日志集名称 长度为1~64位
LogSetName *string `required:"true"`
// 日志集备注 长度为0~255位
LogSetRemark *string `required:"false"`
}
CreateULogServiceLogSetRequest is request schema for CreateULogServiceLogSet action
type CreateULogServiceLogSetResponse ¶
type CreateULogServiceLogSetResponse struct {
response.CommonBase
// 日志集资源ID
LogSetId string
}
CreateULogServiceLogSetResponse is response schema for CreateULogServiceLogSet action
type CreateULogServiceMachineGroupRequest ¶ added in v0.22.114
type CreateULogServiceMachineGroupRequest struct {
request.CommonBase
// 日志服务实例资源ID
InstanceId *string `required:"true"`
// 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组
Ips *string `required:"false"`
// 采集客户端识别标识,是一个数组
Labels *string `required:"false"`
// 机器组名称;格式校验:^[\w]{1,23}$
Name *string `required:"true"`
// 采集客户端识别模式;可选值 LABEL | IP;
Type *string `required:"true"`
}
CreateULogServiceMachineGroupRequest is request schema for CreateULogServiceMachineGroup action
type CreateULogServiceMachineGroupResponse ¶ added in v0.22.114
type CreateULogServiceMachineGroupResponse struct {
response.CommonBase
// 错误信息
Message string
}
CreateULogServiceMachineGroupResponse is response schema for CreateULogServiceMachineGroup action
type CreateULogServiceTopicRequest ¶
type CreateULogServiceTopicRequest struct {
request.CommonBase
// 日志集ID
LogSetId *string `required:"true"`
// 保存时间 1~730 天
ReserveAge *int `required:"true"`
// 主题名称,校验规则"^[\w]{1,64}$"
TopicName *string `required:"true"`
// 分区数量,固定是2
TopicShardNum *int `required:"true"`
}
CreateULogServiceTopicRequest is request schema for CreateULogServiceTopic action
type CreateULogServiceTopicResponse ¶
type CreateULogServiceTopicResponse struct {
response.CommonBase
// 主题ID
TopicId string
}
CreateULogServiceTopicResponse is response schema for CreateULogServiceTopic action
type DeleteULogServiceCollectConfRequest ¶ added in v0.22.114
type DeleteULogServiceCollectConfRequest struct {
request.CommonBase
// 日志主题采集配置ID
CollectConfId *int `required:"true"`
// 日志主题ID
TopicId *string `required:"true"`
}
DeleteULogServiceCollectConfRequest is request schema for DeleteULogServiceCollectConf action
type DeleteULogServiceCollectConfResponse ¶ added in v0.22.114
type DeleteULogServiceCollectConfResponse struct {
response.CommonBase
// 错误信息
Message string
}
DeleteULogServiceCollectConfResponse is response schema for DeleteULogServiceCollectConf action
type DeleteULogServiceLogSetRequest ¶
type DeleteULogServiceLogSetRequest struct {
request.CommonBase
// 日志集ID
LogSetId *string `required:"true"`
}
DeleteULogServiceLogSetRequest is request schema for DeleteULogServiceLogSet action
type DeleteULogServiceLogSetResponse ¶
type DeleteULogServiceLogSetResponse struct {
response.CommonBase
}
DeleteULogServiceLogSetResponse is response schema for DeleteULogServiceLogSet action
type DeleteULogServiceMachineGroupRequest ¶ added in v0.22.114
type DeleteULogServiceMachineGroupRequest struct {
request.CommonBase
// 删除的机器组ID
Id *int `required:"true"`
}
DeleteULogServiceMachineGroupRequest is request schema for DeleteULogServiceMachineGroup action
type DeleteULogServiceMachineGroupResponse ¶ added in v0.22.114
type DeleteULogServiceMachineGroupResponse struct {
response.CommonBase
// 错误信息
Message string
}
DeleteULogServiceMachineGroupResponse is response schema for DeleteULogServiceMachineGroup action
type DeleteULogServiceTopicRequest ¶
type DeleteULogServiceTopicRequest struct {
request.CommonBase
// 主题Id
TopicId *string `required:"true"`
}
DeleteULogServiceTopicRequest is request schema for DeleteULogServiceTopic action
type DeleteULogServiceTopicResponse ¶
type DeleteULogServiceTopicResponse struct {
response.CommonBase
// 错误信息,成功情况下为空字符串
Message string
}
DeleteULogServiceTopicResponse is response schema for DeleteULogServiceTopic action
type DescribeULogServiceMachineGroupRequest ¶ added in v0.22.114
type DescribeULogServiceMachineGroupRequest struct {
request.CommonBase
// 机器组ID
Id *string `required:"true"`
}
DescribeULogServiceMachineGroupRequest is request schema for DescribeULogServiceMachineGroup action
type DescribeULogServiceMachineGroupResponse ¶ added in v0.22.114
type DescribeULogServiceMachineGroupResponse struct {
response.CommonBase
// 机器组信息
MachineGroup MachineInfo
// 错误信息
Message string
}
DescribeULogServiceMachineGroupResponse is response schema for DescribeULogServiceMachineGroup action
type GetULogServiceTopicFieldRequest ¶ added in v0.22.118
type GetULogServiceTopicFieldRequest struct {
request.CommonBase
// 主题Id
TopicId *string `required:"true"`
}
GetULogServiceTopicFieldRequest is request schema for GetULogServiceTopicField action
type GetULogServiceTopicFieldResponse ¶ added in v0.22.118
type GetULogServiceTopicFieldResponse struct {
response.CommonBase
// 索引字段数据,是一个数组
Data []TopicField
}
GetULogServiceTopicFieldResponse is response schema for GetULogServiceTopicField action
type ListULogServiceCollectConfRequest ¶ added in v0.22.114
type ListULogServiceCollectConfRequest struct {
request.CommonBase
// 采集配置ID
CollectConfId *int `required:"false"`
// 日志主题ID
TopicId *int `required:"true"`
}
ListULogServiceCollectConfRequest is request schema for ListULogServiceCollectConf action
type ListULogServiceCollectConfResponse ¶ added in v0.22.114
type ListULogServiceCollectConfResponse struct {
response.CommonBase
// 日志采集配置列表
CollectConfs CollectConf
// 错误信息
Message string
}
ListULogServiceCollectConfResponse is response schema for ListULogServiceCollectConf action
type ListULogServiceLogSetRequest ¶
type ListULogServiceLogSetRequest struct {
request.CommonBase
}
ListULogServiceLogSetRequest is request schema for ListULogServiceLogSet action
type ListULogServiceLogSetResponse ¶
type ListULogServiceLogSetResponse struct {
response.CommonBase
// 返回日志主题数据,是一个数组
Data []LogSetInfo
}
ListULogServiceLogSetResponse is response schema for ListULogServiceLogSet action
type ListULogServiceMachineGroupRequest ¶ added in v0.22.114
type ListULogServiceMachineGroupRequest struct {
request.CommonBase
}
ListULogServiceMachineGroupRequest is request schema for ListULogServiceMachineGroup action
type ListULogServiceMachineGroupResponse ¶ added in v0.22.114
type ListULogServiceMachineGroupResponse struct {
response.CommonBase
// 机器组信息列表
MachineGroups []MachineGroup
// 错误信息
Message string
}
ListULogServiceMachineGroupResponse is response schema for ListULogServiceMachineGroup action
type ListULogServiceTopicRequest ¶
type ListULogServiceTopicRequest struct {
request.CommonBase
// 分页限制数,默认为30
Limit *int `required:"false"`
// 日志集ID
LogSetId *string `required:"true"`
// 分页起始条目数, 默认为0
Offset *int `required:"false"`
}
ListULogServiceTopicRequest is request schema for ListULogServiceTopic action
type ListULogServiceTopicResponse ¶
type ListULogServiceTopicResponse struct {
response.CommonBase
// 主题列表
Data []TopicInfo
// 主题总数
TotalCount int
}
ListULogServiceTopicResponse is response schema for ListULogServiceTopic action
type LogAgent ¶ added in v0.22.114
type LogAgent struct {
// LogAgent版本
AgentVersion string
// 主机IP
HostIp string
// logagent id
InstanceId string
// 主机标签
Label string
// 离线时间,单位是ms
OffLineTime string
// logagent状态,NORMAL:正常,OFFLINE: 离线
Status string
}
LogAgent - logagent 信息
type LogContent ¶
type LogContent struct {
// 日志文件路径
FileName string
// 日志来源主机
HostName string
// 日志标识ID
LogId string
// JSON格式的日志内容
LogJson string
// 日志时间
Timestamp int
}
LogContent - 日志内容
type LogQueryResult ¶
type LogQueryResult struct {
// 当使用SQL语句查询时,数据通过该字段返回
AnalysisRecords []string
// 当使用SQL语句查询时,数据通过AnalysisRecords字段返回,Columns字段返回的是字段名和类型
Columns []AnalysisField
// 日志内容
Contents LogContent
// 检索结果是否到底
IsOver bool
// 滚动检索,当前页最后一条数据ID
LastId string
// 滚动检索,当前页最后一条数据Timestamp
LastTimestamp string
// 滚动检索Id Deprecated
ScrollId string
// 所属日志ID
TopicId string
// 所属日志名称
TopicName string
}
LogQueryResult - 日志检索结果
type LogSetInfo ¶
type LogSetInfo struct {
// 创建时间
CreateTime int
// 日志集名称
LogSetName string
// 日志集备注
LogSetRemark string
// 日志集下主题数量
TopicCount int
// 更新时间
UpdateTime int
}
LogSetInfo -
type MachineGroup ¶ added in v0.22.114
type MachineGroup struct {
// 创建时间
CreateTime int
// 机器组ID
Id string
// 机器组名称
Name string
// 采集器识别类型:LABEL:机器标识,IP:IP类型
Type string
// 修改时间
UpdateTime int
}
MachineGroup - 机器组
type MachineInfo ¶ added in v0.22.114
type MachineInfo struct {
// 机器组ID
Id int
// 机器组Ip,数组类型
Ips string
// 机器组标签,数组类型
Labels []string
// LogAgent信息,数组类型
LogAgents LogAgent
// 机器组名称
Name string
// 机器组类型,取值有:LABEL和IP
Type string
}
MachineInfo - 机器信息
type QueryULogServiceLogRequest ¶
type QueryULogServiceLogRequest struct {
request.CommonBase
// 终止日志时间,秒级时间戳
EndTime *int `required:"false"`
// 滚动加载参数,上一页最后一条数据的ID
LastId *string `required:"false"`
// 滚动加载参数,上一页最后一条数据的timestamp
LastTimestamp *string `required:"false"`
// 查询条件,使用Base64编码。目前只支持查询索引,多个索引查询使用AND。比如:index1:http AND index2:http2
QueryCriteria *string `required:"true"`
// Deprecated. 滚动加载参数ScrollId
ScrollId *string `required:"false"`
// 一次返回条数,默认20。仅当检索分析语句不包含SQL时有效。SQL结果条数方式可以在SQL里使用limit语法。
Size *int `required:"false"`
// 日志时间排序;可选值ASC|DESC
SortOrder *string `required:"true"`
// 起始日志时间,秒级时间戳
StartTime *int `required:"false"`
// 主题ID
TopicId *string `required:"true"`
}
QueryULogServiceLogRequest is request schema for QueryULogServiceLog action
type QueryULogServiceLogResponse ¶
type QueryULogServiceLogResponse struct {
response.CommonBase
// 请求结果
Data LogQueryResult
}
QueryULogServiceLogResponse is response schema for QueryULogServiceLog action
type TopicField ¶ added in v0.22.118
type TopicField struct {
// 索引名称
FieldName string
// 索引类型,可取的值有: long, double, text
FieldType string
// 是否保留字段,true表示保留字段,false表示非保留字段
IsReserved bool
}
TopicField - 索引字段
type TopicInfo ¶
type TopicInfo struct {
// 是否保留:0 - NORMAL, 1 - RESERVED
IsReserved int
// 保存时间 1~730 天
ReserveAge int
// 主题描述
TopicDesc string
// 主题ID
TopicId string
// 主题名称
TopicName string
// 分区数量,固定是2
TopicShardNum int
}
TopicInfo - 主题信息
type ULogServiceClient ¶
ULogServiceClient is the client of ULogService
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *ULogServiceClient
NewClient will return a instance of ULogServiceClient
func (*ULogServiceClient) BindULogServiceGroupToCollectConf ¶ added in v0.22.114
func (c *ULogServiceClient) BindULogServiceGroupToCollectConf(req *BindULogServiceGroupToCollectConfRequest) (*BindULogServiceGroupToCollectConfResponse, error)
API: BindULogServiceGroupToCollectConf
日志主题采集配置绑定机器组
func (*ULogServiceClient) CreateULogServiceCollectConf ¶ added in v0.22.114
func (c *ULogServiceClient) CreateULogServiceCollectConf(req *CreateULogServiceCollectConfRequest) (*CreateULogServiceCollectConfResponse, error)
API: CreateULogServiceCollectConf
创建日志主题采集配置
func (*ULogServiceClient) CreateULogServiceLogSet ¶
func (c *ULogServiceClient) CreateULogServiceLogSet(req *CreateULogServiceLogSetRequest) (*CreateULogServiceLogSetResponse, error)
API: CreateULogServiceLogSet
创建日志集
func (*ULogServiceClient) CreateULogServiceMachineGroup ¶ added in v0.22.114
func (c *ULogServiceClient) CreateULogServiceMachineGroup(req *CreateULogServiceMachineGroupRequest) (*CreateULogServiceMachineGroupResponse, error)
API: CreateULogServiceMachineGroup
创建机器组
func (*ULogServiceClient) CreateULogServiceTopic ¶
func (c *ULogServiceClient) CreateULogServiceTopic(req *CreateULogServiceTopicRequest) (*CreateULogServiceTopicResponse, error)
API: CreateULogServiceTopic
创建ULogService主题
func (*ULogServiceClient) DeleteULogServiceCollectConf ¶ added in v0.22.114
func (c *ULogServiceClient) DeleteULogServiceCollectConf(req *DeleteULogServiceCollectConfRequest) (*DeleteULogServiceCollectConfResponse, error)
API: DeleteULogServiceCollectConf
删除日志主题采集配置
func (*ULogServiceClient) DeleteULogServiceLogSet ¶
func (c *ULogServiceClient) DeleteULogServiceLogSet(req *DeleteULogServiceLogSetRequest) (*DeleteULogServiceLogSetResponse, error)
API: DeleteULogServiceLogSet
删除日志集
func (*ULogServiceClient) DeleteULogServiceMachineGroup ¶ added in v0.22.114
func (c *ULogServiceClient) DeleteULogServiceMachineGroup(req *DeleteULogServiceMachineGroupRequest) (*DeleteULogServiceMachineGroupResponse, error)
API: DeleteULogServiceMachineGroup
删除机器组
func (*ULogServiceClient) DeleteULogServiceTopic ¶
func (c *ULogServiceClient) DeleteULogServiceTopic(req *DeleteULogServiceTopicRequest) (*DeleteULogServiceTopicResponse, error)
API: DeleteULogServiceTopic
删除ULogService主题
func (*ULogServiceClient) DescribeULogServiceMachineGroup ¶ added in v0.22.114
func (c *ULogServiceClient) DescribeULogServiceMachineGroup(req *DescribeULogServiceMachineGroupRequest) (*DescribeULogServiceMachineGroupResponse, error)
API: DescribeULogServiceMachineGroup
查询日志采集机器组
func (*ULogServiceClient) GetULogServiceTopicField ¶ added in v0.22.118
func (c *ULogServiceClient) GetULogServiceTopicField(req *GetULogServiceTopicFieldRequest) (*GetULogServiceTopicFieldResponse, error)
API: GetULogServiceTopicField
获取ULogService主题索引字段
func (*ULogServiceClient) ListULogServiceCollectConf ¶ added in v0.22.114
func (c *ULogServiceClient) ListULogServiceCollectConf(req *ListULogServiceCollectConfRequest) (*ListULogServiceCollectConfResponse, error)
API: ListULogServiceCollectConf
查询日志主题采集配置列表
func (*ULogServiceClient) ListULogServiceLogSet ¶
func (c *ULogServiceClient) ListULogServiceLogSet(req *ListULogServiceLogSetRequest) (*ListULogServiceLogSetResponse, error)
API: ListULogServiceLogSet
查询日志集列表
func (*ULogServiceClient) ListULogServiceMachineGroup ¶ added in v0.22.114
func (c *ULogServiceClient) ListULogServiceMachineGroup(req *ListULogServiceMachineGroupRequest) (*ListULogServiceMachineGroupResponse, error)
API: ListULogServiceMachineGroup
查看机器组列表
func (*ULogServiceClient) ListULogServiceTopic ¶
func (c *ULogServiceClient) ListULogServiceTopic(req *ListULogServiceTopicRequest) (*ListULogServiceTopicResponse, error)
API: ListULogServiceTopic
获取ULogService主题
func (*ULogServiceClient) NewBindULogServiceGroupToCollectConfRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewBindULogServiceGroupToCollectConfRequest() *BindULogServiceGroupToCollectConfRequest
NewBindULogServiceGroupToCollectConfRequest will create request of BindULogServiceGroupToCollectConf action.
func (*ULogServiceClient) NewCreateULogServiceCollectConfRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewCreateULogServiceCollectConfRequest() *CreateULogServiceCollectConfRequest
NewCreateULogServiceCollectConfRequest will create request of CreateULogServiceCollectConf action.
func (*ULogServiceClient) NewCreateULogServiceLogSetRequest ¶
func (c *ULogServiceClient) NewCreateULogServiceLogSetRequest() *CreateULogServiceLogSetRequest
NewCreateULogServiceLogSetRequest will create request of CreateULogServiceLogSet action.
func (*ULogServiceClient) NewCreateULogServiceMachineGroupRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewCreateULogServiceMachineGroupRequest() *CreateULogServiceMachineGroupRequest
NewCreateULogServiceMachineGroupRequest will create request of CreateULogServiceMachineGroup action.
func (*ULogServiceClient) NewCreateULogServiceTopicRequest ¶
func (c *ULogServiceClient) NewCreateULogServiceTopicRequest() *CreateULogServiceTopicRequest
NewCreateULogServiceTopicRequest will create request of CreateULogServiceTopic action.
func (*ULogServiceClient) NewDeleteULogServiceCollectConfRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewDeleteULogServiceCollectConfRequest() *DeleteULogServiceCollectConfRequest
NewDeleteULogServiceCollectConfRequest will create request of DeleteULogServiceCollectConf action.
func (*ULogServiceClient) NewDeleteULogServiceLogSetRequest ¶
func (c *ULogServiceClient) NewDeleteULogServiceLogSetRequest() *DeleteULogServiceLogSetRequest
NewDeleteULogServiceLogSetRequest will create request of DeleteULogServiceLogSet action.
func (*ULogServiceClient) NewDeleteULogServiceMachineGroupRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewDeleteULogServiceMachineGroupRequest() *DeleteULogServiceMachineGroupRequest
NewDeleteULogServiceMachineGroupRequest will create request of DeleteULogServiceMachineGroup action.
func (*ULogServiceClient) NewDeleteULogServiceTopicRequest ¶
func (c *ULogServiceClient) NewDeleteULogServiceTopicRequest() *DeleteULogServiceTopicRequest
NewDeleteULogServiceTopicRequest will create request of DeleteULogServiceTopic action.
func (*ULogServiceClient) NewDescribeULogServiceMachineGroupRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewDescribeULogServiceMachineGroupRequest() *DescribeULogServiceMachineGroupRequest
NewDescribeULogServiceMachineGroupRequest will create request of DescribeULogServiceMachineGroup action.
func (*ULogServiceClient) NewGetULogServiceTopicFieldRequest ¶ added in v0.22.118
func (c *ULogServiceClient) NewGetULogServiceTopicFieldRequest() *GetULogServiceTopicFieldRequest
NewGetULogServiceTopicFieldRequest will create request of GetULogServiceTopicField action.
func (*ULogServiceClient) NewListULogServiceCollectConfRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewListULogServiceCollectConfRequest() *ListULogServiceCollectConfRequest
NewListULogServiceCollectConfRequest will create request of ListULogServiceCollectConf action.
func (*ULogServiceClient) NewListULogServiceLogSetRequest ¶
func (c *ULogServiceClient) NewListULogServiceLogSetRequest() *ListULogServiceLogSetRequest
NewListULogServiceLogSetRequest will create request of ListULogServiceLogSet action.
func (*ULogServiceClient) NewListULogServiceMachineGroupRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewListULogServiceMachineGroupRequest() *ListULogServiceMachineGroupRequest
NewListULogServiceMachineGroupRequest will create request of ListULogServiceMachineGroup action.
func (*ULogServiceClient) NewListULogServiceTopicRequest ¶
func (c *ULogServiceClient) NewListULogServiceTopicRequest() *ListULogServiceTopicRequest
NewListULogServiceTopicRequest will create request of ListULogServiceTopic action.
func (*ULogServiceClient) NewQueryULogServiceLogRequest ¶
func (c *ULogServiceClient) NewQueryULogServiceLogRequest() *QueryULogServiceLogRequest
NewQueryULogServiceLogRequest will create request of QueryULogServiceLog action.
func (*ULogServiceClient) NewUpdateULogServiceCollectConfRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewUpdateULogServiceCollectConfRequest() *UpdateULogServiceCollectConfRequest
NewUpdateULogServiceCollectConfRequest will create request of UpdateULogServiceCollectConf action.
func (*ULogServiceClient) NewUpdateULogServiceMachineGroupRequest ¶ added in v0.22.114
func (c *ULogServiceClient) NewUpdateULogServiceMachineGroupRequest() *UpdateULogServiceMachineGroupRequest
NewUpdateULogServiceMachineGroupRequest will create request of UpdateULogServiceMachineGroup action.
func (*ULogServiceClient) NewUpdateULogServiceTopicFieldRequest ¶ added in v0.22.118
func (c *ULogServiceClient) NewUpdateULogServiceTopicFieldRequest() *UpdateULogServiceTopicFieldRequest
NewUpdateULogServiceTopicFieldRequest will create request of UpdateULogServiceTopicField action.
func (*ULogServiceClient) QueryULogServiceLog ¶
func (c *ULogServiceClient) QueryULogServiceLog(req *QueryULogServiceLogRequest) (*QueryULogServiceLogResponse, error)
API: QueryULogServiceLog
查询ULogService日志
func (*ULogServiceClient) UpdateULogServiceCollectConf ¶ added in v0.22.114
func (c *ULogServiceClient) UpdateULogServiceCollectConf(req *UpdateULogServiceCollectConfRequest) (*UpdateULogServiceCollectConfResponse, error)
API: UpdateULogServiceCollectConf
修改日志主题采集配置
func (*ULogServiceClient) UpdateULogServiceMachineGroup ¶ added in v0.22.114
func (c *ULogServiceClient) UpdateULogServiceMachineGroup(req *UpdateULogServiceMachineGroupRequest) (*UpdateULogServiceMachineGroupResponse, error)
API: UpdateULogServiceMachineGroup
更新日志机器组
func (*ULogServiceClient) UpdateULogServiceTopicField ¶ added in v0.22.118
func (c *ULogServiceClient) UpdateULogServiceTopicField(req *UpdateULogServiceTopicFieldRequest) (*UpdateULogServiceTopicFieldResponse, error)
API: UpdateULogServiceTopicField
更新ULogService主题索引字段
type UpdateULogServiceCollectConfParamFilePaths ¶ added in v0.22.114
type UpdateULogServiceCollectConfParamFilePaths struct {
// 定义采集路径的文件名,数组类型
File *string `required:"false"`
// 定义采集路径,数组类型
Path *string `required:"false"`
}
UpdateULogServiceCollectConfParamFilePaths is request schema for complex param
type UpdateULogServiceCollectConfRequest ¶ added in v0.22.114
type UpdateULogServiceCollectConfRequest struct {
request.CommonBase
// 日志主题采集配置ID
CollectConfId *int `required:"true"`
// 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
CollectPolicy *string `required:"true"`
// 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64
Delimiter *string `required:"false"`
// 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
Encode *string `required:"false"`
// 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64
ExtractRule *string `required:"false"`
//
FilePaths []UpdateULogServiceCollectConfParamFilePaths `required:"false"`
// 索引字段key,是一个数组
Keys []string `required:"false"`
// 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志
LogType *string `required:"true"`
// 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64
MatchRule *string `required:"false"`
// 日志主题ID
TopicId *string `required:"true"`
// 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
UnMatchKey *string `required:"false"`
}
UpdateULogServiceCollectConfRequest is request schema for UpdateULogServiceCollectConf action
type UpdateULogServiceCollectConfResponse ¶ added in v0.22.114
type UpdateULogServiceCollectConfResponse struct {
response.CommonBase
// 错误信息
Message string
}
UpdateULogServiceCollectConfResponse is response schema for UpdateULogServiceCollectConf action
type UpdateULogServiceMachineGroupRequest ¶ added in v0.22.114
type UpdateULogServiceMachineGroupRequest struct {
request.CommonBase
// 机器组ID
Id *int `required:"true"`
// 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组
Ips *string `required:"false"`
// 采集客户端识别标识,数组类型
Labels *string `required:"false"`
// 机器组名称; 格式校验:^[\w]{1,255}$
Name *string `required:"true"`
// 采集客户端识别模式;可选值 LABEL | IP;
Type *string `required:"true"`
}
UpdateULogServiceMachineGroupRequest is request schema for UpdateULogServiceMachineGroup action
type UpdateULogServiceMachineGroupResponse ¶ added in v0.22.114
type UpdateULogServiceMachineGroupResponse struct {
response.CommonBase
// 错误信息
Message string
}
UpdateULogServiceMachineGroupResponse is response schema for UpdateULogServiceMachineGroup action
type UpdateULogServiceTopicFieldParamFieldInfos ¶ added in v0.22.118
type UpdateULogServiceTopicFieldParamFieldInfos struct {
// 字段名称支持字母、横线(-)、斜杠(/)、特殊符号(@)、数字、下划线(_)和点(.),且不能以下划线开头,长度不超过255个字符
FieldName *string `required:"false"`
// 主题字段类型(text、long、double)
FieldType *string `required:"false"`
}
UpdateULogServiceTopicFieldParamFieldInfos is request schema for complex param
type UpdateULogServiceTopicFieldRequest ¶ added in v0.22.118
type UpdateULogServiceTopicFieldRequest struct {
request.CommonBase
//
FieldInfos []UpdateULogServiceTopicFieldParamFieldInfos `required:"false"`
// 主题Id
TopicId *string `required:"true"`
}
UpdateULogServiceTopicFieldRequest is request schema for UpdateULogServiceTopicField action
type UpdateULogServiceTopicFieldResponse ¶ added in v0.22.118
type UpdateULogServiceTopicFieldResponse struct {
response.CommonBase
}
UpdateULogServiceTopicFieldResponse is response schema for UpdateULogServiceTopicField action