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 CreateULogServiceLogSetRequest
- type CreateULogServiceLogSetResponse
- type CreateULogServiceTopicRequest
- type CreateULogServiceTopicResponse
- type DeleteULogServiceLogSetRequest
- type DeleteULogServiceLogSetResponse
- type DeleteULogServiceTopicRequest
- type DeleteULogServiceTopicResponse
- type ListULogServiceLogSetRequest
- type ListULogServiceLogSetResponse
- type ListULogServiceTopicRequest
- type ListULogServiceTopicResponse
- type LogContent
- type LogQueryResult
- type LogSetInfo
- type QueryULogServiceLogRequest
- type QueryULogServiceLogResponse
- type TopicInfo
- type ULogServiceClient
- func (c *ULogServiceClient) CreateULogServiceLogSet(req *CreateULogServiceLogSetRequest) (*CreateULogServiceLogSetResponse, error)
- func (c *ULogServiceClient) CreateULogServiceTopic(req *CreateULogServiceTopicRequest) (*CreateULogServiceTopicResponse, error)
- func (c *ULogServiceClient) DeleteULogServiceLogSet(req *DeleteULogServiceLogSetRequest) (*DeleteULogServiceLogSetResponse, error)
- func (c *ULogServiceClient) DeleteULogServiceTopic(req *DeleteULogServiceTopicRequest) (*DeleteULogServiceTopicResponse, error)
- func (c *ULogServiceClient) ListULogServiceLogSet(req *ListULogServiceLogSetRequest) (*ListULogServiceLogSetResponse, error)
- func (c *ULogServiceClient) ListULogServiceTopic(req *ListULogServiceTopicRequest) (*ListULogServiceTopicResponse, error)
- func (c *ULogServiceClient) NewCreateULogServiceLogSetRequest() *CreateULogServiceLogSetRequest
- func (c *ULogServiceClient) NewCreateULogServiceTopicRequest() *CreateULogServiceTopicRequest
- func (c *ULogServiceClient) NewDeleteULogServiceLogSetRequest() *DeleteULogServiceLogSetRequest
- func (c *ULogServiceClient) NewDeleteULogServiceTopicRequest() *DeleteULogServiceTopicRequest
- func (c *ULogServiceClient) NewListULogServiceLogSetRequest() *ListULogServiceLogSetRequest
- func (c *ULogServiceClient) NewListULogServiceTopicRequest() *ListULogServiceTopicRequest
- func (c *ULogServiceClient) NewQueryULogServiceLogRequest() *QueryULogServiceLogRequest
- func (c *ULogServiceClient) QueryULogServiceLog(req *QueryULogServiceLogRequest) (*QueryULogServiceLogResponse, error)
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 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 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 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 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 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 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 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 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 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) CreateULogServiceLogSet ¶
func (c *ULogServiceClient) CreateULogServiceLogSet(req *CreateULogServiceLogSetRequest) (*CreateULogServiceLogSetResponse, error)
API: CreateULogServiceLogSet
创建日志集
func (*ULogServiceClient) CreateULogServiceTopic ¶
func (c *ULogServiceClient) CreateULogServiceTopic(req *CreateULogServiceTopicRequest) (*CreateULogServiceTopicResponse, error)
API: CreateULogServiceTopic
创建ULogService主题
func (*ULogServiceClient) DeleteULogServiceLogSet ¶
func (c *ULogServiceClient) DeleteULogServiceLogSet(req *DeleteULogServiceLogSetRequest) (*DeleteULogServiceLogSetResponse, error)
API: DeleteULogServiceLogSet
删除日志集
func (*ULogServiceClient) DeleteULogServiceTopic ¶
func (c *ULogServiceClient) DeleteULogServiceTopic(req *DeleteULogServiceTopicRequest) (*DeleteULogServiceTopicResponse, error)
API: DeleteULogServiceTopic
删除ULogService主题
func (*ULogServiceClient) ListULogServiceLogSet ¶
func (c *ULogServiceClient) ListULogServiceLogSet(req *ListULogServiceLogSetRequest) (*ListULogServiceLogSetResponse, error)
API: ListULogServiceLogSet
查询日志集列表
func (*ULogServiceClient) ListULogServiceTopic ¶
func (c *ULogServiceClient) ListULogServiceTopic(req *ListULogServiceTopicRequest) (*ListULogServiceTopicResponse, error)
API: ListULogServiceTopic
获取ULogService主题
func (*ULogServiceClient) NewCreateULogServiceLogSetRequest ¶
func (c *ULogServiceClient) NewCreateULogServiceLogSetRequest() *CreateULogServiceLogSetRequest
NewCreateULogServiceLogSetRequest will create request of CreateULogServiceLogSet action.
func (*ULogServiceClient) NewCreateULogServiceTopicRequest ¶
func (c *ULogServiceClient) NewCreateULogServiceTopicRequest() *CreateULogServiceTopicRequest
NewCreateULogServiceTopicRequest will create request of CreateULogServiceTopic action.
func (*ULogServiceClient) NewDeleteULogServiceLogSetRequest ¶
func (c *ULogServiceClient) NewDeleteULogServiceLogSetRequest() *DeleteULogServiceLogSetRequest
NewDeleteULogServiceLogSetRequest will create request of DeleteULogServiceLogSet action.
func (*ULogServiceClient) NewDeleteULogServiceTopicRequest ¶
func (c *ULogServiceClient) NewDeleteULogServiceTopicRequest() *DeleteULogServiceTopicRequest
NewDeleteULogServiceTopicRequest will create request of DeleteULogServiceTopic action.
func (*ULogServiceClient) NewListULogServiceLogSetRequest ¶
func (c *ULogServiceClient) NewListULogServiceLogSetRequest() *ListULogServiceLogSetRequest
NewListULogServiceLogSetRequest will create request of ListULogServiceLogSet 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) QueryULogServiceLog ¶
func (c *ULogServiceClient) QueryULogServiceLog(req *QueryULogServiceLogRequest) (*QueryULogServiceLogResponse, error)
API: QueryULogServiceLog
查询ULogService日志