Documentation ¶
Index ¶
- Constants
- type BlsClientConfiguration
- type BulkDeleteLogShipperRequest
- type BulkUpdateLogShipperStatusRequest
- type Client
- func (c *Client) BulkDeleteLogShipper(args *api.BulkDeleteShipperCondition) error
- func (c *Client) BulkDeleteLogShipperV2(request BulkDeleteLogShipperRequest) error
- func (c *Client) BulkSetLogShipperStatus(args *api.BulkSetShipperStatusCondition) error
- func (c *Client) BulkUpdateLogShipperStatusV2(request BulkUpdateLogShipperStatusRequest) error
- func (c *Client) CreateDownloadTask(request CreateDownloadTaskRequest) (string, error)
- func (c *Client) CreateFastQuery(args *api.CreateFastQueryBody) error
- func (c *Client) CreateFastQueryV2(request CreateFastQueryRequest) error
- func (c *Client) CreateIndex(logStore string, fulltext bool, fields map[string]api.LogField) error
- func (c *Client) CreateIndexV2(request CreateIndexRequest) error
- func (c *Client) CreateLogShipper(args *api.CreateLogShipperBody) (string, error)
- func (c *Client) CreateLogShipperV2(request CreateLogShipperRequest) (string, error)
- func (c *Client) CreateLogStore(logStore string, retention int) error
- func (c *Client) CreateLogStoreV2(request CreateLogStoreRequest) error
- func (c *Client) CreateLogStoreWithTags(logStore string, retention int, tags []model.TagModel) error
- func (c *Client) CreateProject(request CreateProjectRequest) error
- func (c *Client) DeleteDownloadTask(request DeleteDownloadTaskRequest) error
- func (c *Client) DeleteFastQuery(fastQueryName string) error
- func (c *Client) DeleteFastQueryV2(request DeleteFastQueryRequest) error
- func (c *Client) DeleteIndex(logStore string) error
- func (c *Client) DeleteIndexV2(request DeleteIndexRequest) error
- func (c *Client) DeleteLogShipperV2(request DeleteLogShipperRequest) error
- func (c *Client) DeleteLogStore(logStore string) error
- func (c *Client) DeleteLogStoreV2(request DeleteLogStoreRequest) error
- func (c *Client) DeleteProject(request DeleteProjectRequest) error
- func (c *Client) DeleteSingleLogShipper(logShipperID string) error
- func (c *Client) DescribeDownloadTask(request DescribeDownloadRequest) (*api.DownloadTask, error)
- func (c *Client) DescribeFastQuery(fastQueryName string) (*api.FastQuery, error)
- func (c *Client) DescribeFastQueryV2(request DescribeFastQueryRequest) (*api.FastQuery, error)
- func (c *Client) DescribeIndex(logStore string) (*api.IndexFields, error)
- func (c *Client) DescribeIndexV2(request DescribeIndexRequest) (*api.IndexFields, error)
- func (c *Client) DescribeLogStore(logStore string) (*api.LogStore, error)
- func (c *Client) DescribeLogStoreV2(request DescribeLogStoreRequest) (*api.LogStore, error)
- func (c *Client) DescribeProject(request DescribeProjectRequest) (*api.Project, error)
- func (c *Client) GetDownloadTaskLink(request GetDownloadTaskLinkRequest) (*api.GetDownloadTaskLinkResult, error)
- func (c *Client) GetLogShipper(logShipperID string) (*api.LogShipper, error)
- func (c *Client) GetLogShipperV2(request GetLogShipperRequest) (*api.LogShipper, error)
- func (c *Client) ListDownloadTask(request ListDownloadTaskRequest) (*api.ListDownloadTaskResult, error)
- func (c *Client) ListFastQuery(args *api.QueryConditions) (*api.ListFastQueryResult, error)
- func (c *Client) ListFastQueryV2(request ListFastQueryRequest) (*api.ListFastQueryResult, error)
- func (c *Client) ListLogShipper(args *api.ListLogShipperCondition) (*api.ListShipperResult, error)
- func (c *Client) ListLogShipperRecord(logShipperID string, args *api.ListShipperRecordCondition) (*api.ListShipperRecordResult, error)
- func (c *Client) ListLogShipperRecordV2(request ListShipperRecordRequest) (*api.ListShipperRecordResult, error)
- func (c *Client) ListLogShipperV2(request ListLogShipperRequest) (*api.ListShipperResult, error)
- func (c *Client) ListLogStore(args *api.QueryConditions) (*api.ListLogStoreResult, error)
- func (c *Client) ListLogStoreV2(request ListLogStoreRequest) (*api.ListLogStoreResult, error)
- func (c *Client) ListLogStream(logStore string, args *api.QueryConditions) (*api.ListLogStreamResult, error)
- func (c *Client) ListLogStreamV2(request ListLogStreamRequest) (*api.ListLogStreamResult, error)
- func (c *Client) ListProject(request ListProjectRequest) (*api.ListProjectResult, error)
- func (c *Client) PullLogRecord(logStore string, args *api.PullLogRecordArgs) (*api.PullLogRecordResult, error)
- func (c *Client) PullLogRecordV2(request PullLogRecordRequest) (*api.PullLogRecordResult, error)
- func (c *Client) PushLogRecord(logStore string, logStream string, logType string, logRecords []api.LogRecord) error
- func (c *Client) PushLogRecordV2(request PushLogRecordRequest) error
- func (c *Client) QueryLogRecord(logStore string, args *api.QueryLogRecordArgs) (*api.QueryLogResult, error)
- func (c *Client) QueryLogRecordV2(request QueryLogRecordRequest) (*api.QueryLogResult, error)
- func (c *Client) SetSingleLogShipperStatus(logShipperID string, args *api.SetSingleShipperStatusCondition) error
- func (c *Client) UpdateFastQuery(fastQueryName string, args *api.UpdateFastQueryBody) error
- func (c *Client) UpdateFastQueryV2(request UpdateFastQueryRequest) error
- func (c *Client) UpdateIndex(logStore string, fulltext bool, fields map[string]api.LogField) error
- func (c *Client) UpdateIndexV2(request UpdateIndexRequest) error
- func (c *Client) UpdateLogShipper(logShipperID string, args *api.UpdateLogShipperBody) error
- func (c *Client) UpdateLogShipperStatusV2(request UpdateLogShipperStatusRequest) error
- func (c *Client) UpdateLogShipperV2(request UpdateLogShipperRequest) error
- func (c *Client) UpdateLogStore(logStore string, retention int) error
- func (c *Client) UpdateLogStoreV2(request UpdateLogStoreRequest) error
- func (c *Client) UpdateProject(request UpdateProjectRequest) error
- type CreateDownloadTaskRequest
- type CreateFastQueryRequest
- type CreateIndexRequest
- type CreateLogShipperRequest
- type CreateLogStoreRequest
- type CreateProjectRequest
- type DeleteDownloadTaskRequest
- type DeleteFastQueryRequest
- type DeleteIndexRequest
- type DeleteLogShipperRequest
- type DeleteLogStoreRequest
- type DeleteProjectRequest
- type DescribeDownloadRequest
- type DescribeFastQueryRequest
- type DescribeIndexRequest
- type DescribeLogStoreRequest
- type DescribeProjectRequest
- type GetDownloadTaskLinkRequest
- type GetLogShipperRequest
- type ListDownloadTaskRequest
- type ListFastQueryRequest
- type ListLogShipperRequest
- type ListLogStoreRequest
- type ListLogStreamRequest
- type ListProjectRequest
- type ListShipperRecordRequest
- type PullLogRecordRequest
- type PushLogRecordRequest
- type QueryLogRecordRequest
- type UpdateFastQueryRequest
- type UpdateIndexRequest
- type UpdateLogShipperRequest
- type UpdateLogShipperStatusRequest
- type UpdateLogStoreRequest
- type UpdateProjectRequest
Constants ¶
View Source
const (
DEFAULT_SERVICE_DOMAIN = "bls-log.bj.baidubce.com"
)
View Source
const (
DefaultProject = "default"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlsClientConfiguration ¶
type BulkDeleteLogShipperRequest ¶ added in v0.9.191
type BulkDeleteLogShipperRequest struct { // 投递任务ID集合 必填 LogShipperIDs []string `json:"logShipperIDs"` }
type BulkUpdateLogShipperStatusRequest ¶ added in v0.9.191
type Client ¶
func NewClientWithConfig ¶
func NewClientWithConfig(config *BlsClientConfiguration) (*Client, error)
func (*Client) BulkDeleteLogShipper ¶ added in v0.9.83
func (c *Client) BulkDeleteLogShipper(args *api.BulkDeleteShipperCondition) error
func (*Client) BulkDeleteLogShipperV2 ¶ added in v0.9.191
func (c *Client) BulkDeleteLogShipperV2(request BulkDeleteLogShipperRequest) error
func (*Client) BulkSetLogShipperStatus ¶ added in v0.9.83
func (c *Client) BulkSetLogShipperStatus(args *api.BulkSetShipperStatusCondition) error
func (*Client) BulkUpdateLogShipperStatusV2 ¶ added in v0.9.191
func (c *Client) BulkUpdateLogShipperStatusV2(request BulkUpdateLogShipperStatusRequest) error
func (*Client) CreateDownloadTask ¶ added in v0.9.200
func (c *Client) CreateDownloadTask(request CreateDownloadTaskRequest) (string, error)
func (*Client) CreateFastQuery ¶
func (c *Client) CreateFastQuery(args *api.CreateFastQueryBody) error
FastQuery opts
func (*Client) CreateFastQueryV2 ¶ added in v0.9.191
func (c *Client) CreateFastQueryV2(request CreateFastQueryRequest) error
func (*Client) CreateIndex ¶
Index opts
func (*Client) CreateIndexV2 ¶ added in v0.9.191
func (c *Client) CreateIndexV2(request CreateIndexRequest) error
func (*Client) CreateLogShipper ¶ added in v0.9.83
func (c *Client) CreateLogShipper(args *api.CreateLogShipperBody) (string, error)
func (*Client) CreateLogShipperV2 ¶ added in v0.9.191
func (c *Client) CreateLogShipperV2(request CreateLogShipperRequest) (string, error)
func (*Client) CreateLogStore ¶
LogStore opts
func (*Client) CreateLogStoreV2 ¶ added in v0.9.191
func (c *Client) CreateLogStoreV2(request CreateLogStoreRequest) error
func (*Client) CreateLogStoreWithTags ¶ added in v0.9.183
func (*Client) CreateProject ¶ added in v0.9.191
func (c *Client) CreateProject(request CreateProjectRequest) error
func (*Client) DeleteDownloadTask ¶ added in v0.9.200
func (c *Client) DeleteDownloadTask(request DeleteDownloadTaskRequest) error
func (*Client) DeleteFastQuery ¶
func (*Client) DeleteFastQueryV2 ¶ added in v0.9.191
func (c *Client) DeleteFastQueryV2(request DeleteFastQueryRequest) error
func (*Client) DeleteIndex ¶
func (*Client) DeleteIndexV2 ¶ added in v0.9.191
func (c *Client) DeleteIndexV2(request DeleteIndexRequest) error
func (*Client) DeleteLogShipperV2 ¶ added in v0.9.191
func (c *Client) DeleteLogShipperV2(request DeleteLogShipperRequest) error
func (*Client) DeleteLogStore ¶
func (*Client) DeleteLogStoreV2 ¶ added in v0.9.191
func (c *Client) DeleteLogStoreV2(request DeleteLogStoreRequest) error
func (*Client) DeleteProject ¶ added in v0.9.191
func (c *Client) DeleteProject(request DeleteProjectRequest) error
func (*Client) DeleteSingleLogShipper ¶ added in v0.9.83
func (*Client) DescribeDownloadTask ¶ added in v0.9.200
func (c *Client) DescribeDownloadTask(request DescribeDownloadRequest) (*api.DownloadTask, error)
func (*Client) DescribeFastQuery ¶
func (*Client) DescribeFastQueryV2 ¶ added in v0.9.191
func (c *Client) DescribeFastQueryV2(request DescribeFastQueryRequest) (*api.FastQuery, error)
func (*Client) DescribeIndex ¶
func (c *Client) DescribeIndex(logStore string) (*api.IndexFields, error)
func (*Client) DescribeIndexV2 ¶ added in v0.9.191
func (c *Client) DescribeIndexV2(request DescribeIndexRequest) (*api.IndexFields, error)
func (*Client) DescribeLogStore ¶
func (*Client) DescribeLogStoreV2 ¶ added in v0.9.191
func (c *Client) DescribeLogStoreV2(request DescribeLogStoreRequest) (*api.LogStore, error)
func (*Client) DescribeProject ¶ added in v0.9.191
func (c *Client) DescribeProject(request DescribeProjectRequest) (*api.Project, error)
func (*Client) GetDownloadTaskLink ¶ added in v0.9.200
func (c *Client) GetDownloadTaskLink(request GetDownloadTaskLinkRequest) (*api.GetDownloadTaskLinkResult, error)
func (*Client) GetLogShipper ¶ added in v0.9.83
func (c *Client) GetLogShipper(logShipperID string) (*api.LogShipper, error)
func (*Client) GetLogShipperV2 ¶ added in v0.9.191
func (c *Client) GetLogShipperV2(request GetLogShipperRequest) (*api.LogShipper, error)
func (*Client) ListDownloadTask ¶ added in v0.9.200
func (c *Client) ListDownloadTask(request ListDownloadTaskRequest) (*api.ListDownloadTaskResult, error)
func (*Client) ListFastQuery ¶
func (c *Client) ListFastQuery(args *api.QueryConditions) (*api.ListFastQueryResult, error)
func (*Client) ListFastQueryV2 ¶ added in v0.9.191
func (c *Client) ListFastQueryV2(request ListFastQueryRequest) (*api.ListFastQueryResult, error)
func (*Client) ListLogShipper ¶ added in v0.9.83
func (c *Client) ListLogShipper(args *api.ListLogShipperCondition) (*api.ListShipperResult, error)
LogShipper opts
func (*Client) ListLogShipperRecord ¶ added in v0.9.83
func (c *Client) ListLogShipperRecord(logShipperID string, args *api.ListShipperRecordCondition) (*api.ListShipperRecordResult, error)
func (*Client) ListLogShipperRecordV2 ¶ added in v0.9.191
func (c *Client) ListLogShipperRecordV2(request ListShipperRecordRequest) (*api.ListShipperRecordResult, error)
func (*Client) ListLogShipperV2 ¶ added in v0.9.191
func (c *Client) ListLogShipperV2(request ListLogShipperRequest) (*api.ListShipperResult, error)
func (*Client) ListLogStore ¶
func (c *Client) ListLogStore(args *api.QueryConditions) (*api.ListLogStoreResult, error)
func (*Client) ListLogStoreV2 ¶ added in v0.9.191
func (c *Client) ListLogStoreV2(request ListLogStoreRequest) (*api.ListLogStoreResult, error)
func (*Client) ListLogStream ¶
func (c *Client) ListLogStream(logStore string, args *api.QueryConditions) (*api.ListLogStreamResult, error)
LogStream opt
func (*Client) ListLogStreamV2 ¶ added in v0.9.191
func (c *Client) ListLogStreamV2(request ListLogStreamRequest) (*api.ListLogStreamResult, error)
func (*Client) ListProject ¶ added in v0.9.191
func (c *Client) ListProject(request ListProjectRequest) (*api.ListProjectResult, error)
func (*Client) PullLogRecord ¶
func (c *Client) PullLogRecord(logStore string, args *api.PullLogRecordArgs) (*api.PullLogRecordResult, error)
func (*Client) PullLogRecordV2 ¶ added in v0.9.191
func (c *Client) PullLogRecordV2(request PullLogRecordRequest) (*api.PullLogRecordResult, error)
func (*Client) PushLogRecord ¶
func (c *Client) PushLogRecord(logStore string, logStream string, logType string, logRecords []api.LogRecord) error
LogRecord opts
func (*Client) PushLogRecordV2 ¶ added in v0.9.191
func (c *Client) PushLogRecordV2(request PushLogRecordRequest) error
func (*Client) QueryLogRecord ¶
func (c *Client) QueryLogRecord(logStore string, args *api.QueryLogRecordArgs) (*api.QueryLogResult, error)
func (*Client) QueryLogRecordV2 ¶ added in v0.9.191
func (c *Client) QueryLogRecordV2(request QueryLogRecordRequest) (*api.QueryLogResult, error)
func (*Client) SetSingleLogShipperStatus ¶ added in v0.9.83
func (c *Client) SetSingleLogShipperStatus(logShipperID string, args *api.SetSingleShipperStatusCondition) error
func (*Client) UpdateFastQuery ¶
func (c *Client) UpdateFastQuery(fastQueryName string, args *api.UpdateFastQueryBody) error
func (*Client) UpdateFastQueryV2 ¶ added in v0.9.191
func (c *Client) UpdateFastQueryV2(request UpdateFastQueryRequest) error
func (*Client) UpdateIndex ¶
func (*Client) UpdateIndexV2 ¶ added in v0.9.191
func (c *Client) UpdateIndexV2(request UpdateIndexRequest) error
func (*Client) UpdateLogShipper ¶ added in v0.9.83
func (c *Client) UpdateLogShipper(logShipperID string, args *api.UpdateLogShipperBody) error
func (*Client) UpdateLogShipperStatusV2 ¶ added in v0.9.191
func (c *Client) UpdateLogShipperStatusV2(request UpdateLogShipperStatusRequest) error
func (*Client) UpdateLogShipperV2 ¶ added in v0.9.191
func (c *Client) UpdateLogShipperV2(request UpdateLogShipperRequest) error
func (*Client) UpdateLogStore ¶
func (*Client) UpdateLogStoreV2 ¶ added in v0.9.191
func (c *Client) UpdateLogStoreV2(request UpdateLogStoreRequest) error
func (*Client) UpdateProject ¶ added in v0.9.191
func (c *Client) UpdateProject(request UpdateProjectRequest) error
type CreateDownloadTaskRequest ¶ added in v0.9.200
type CreateDownloadTaskRequest struct { // 下载任务名称,选填 Name string `json:"name"` // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称,必填 LogStoreName string `json:"logStoreName"` // 日志流名称 选填,默认在全部日志流中下载数据 LogStreamName string `json:"logStreamName"` // 查询语句,选填,默认match * Query string `json:"query"` // 日志的开始时间, 必填,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z QueryStartTime string `json:"queryStartTime"` // 日志的结束时间,必填,UTC时间,格式ISO8601,例如:2020-01-10T14:23:34Z QueryEndTime string `json:"queryEndTime"` // 下载文件的格式,选填, 默认json,支持 json,csv Format string `json:"format"` // 下载日志的行数,选填,默认1000000,最大1000000 Limit int64 `json:"limit"` // 排序方式 选填 支持desc和asc,默认desc,按照时间倒序排序 Order string `json:"order"` // 下载文件的bos目录,选填,默认放到bls资源账号的下载目录 // 如果不为空,表示放到用户自己的bos目录 需要确保bos的bucket存在,目录可以不存在,会自动创建 FileDir string `json:"fileDir"` }
type CreateFastQueryRequest ¶ added in v0.9.191
type CreateFastQueryRequest struct { // 快速查询名称,必填 FastQueryName string `json:"fastQueryName"` // 查询语句,必填 Query string `json:"query"` // 快速查询描述 选填 Description string `json:"description"` // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 日志流名称 选填,默认在全部日志流中查询 LogStreamName string `json:"logStreamName"` // 日志的开始时间, 必填,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z StartDateTime string `json:"startDateTime"` // 日志的结束时间,必填,UTC时间,格式ISO8601,例如:2020-01-10T14:23:34Z EndDateTime string `json:"endDateTime"` }
type CreateIndexRequest ¶ added in v0.9.191
type CreateIndexRequest struct { // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 是否开启全文索引,默认false,不开启全文索引 Fulltext bool `json:"fulltext"` // 全文索引是否开启大小写敏感,默认false,不开启大小写敏感 CaseSensitive bool `json:"caseSensitive"` // 全文分词符,将字段内容按照分词符拆分成若干个分词用于检索 Separators string `json:"separators"` // 是否包含中文,默认为false,不包含中文 IncludeChinese bool `json:"includeChinese"` // 字段索引信息 Fields map[string]api.LogField `json:"fields"` }
type CreateLogShipperRequest ¶ added in v0.9.191
type CreateLogShipperRequest struct { // 投递任务名称,必填 LogShipperName string `json:"logShipperName"` // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 投递的开始时间,选填 UTC时间,格式ISO8601,例如:2020-01-10T14:23:34Z 默认为当前时间 StartTime string `json:"startTime"` // 投递类型 选填 取值为:BOS 目前只支持BOS, 默认为BOS DestType string `json:"destType"` // 投递目的端配置, 必填 DestConfig *api.ShipperDestConfig `json:"destConfig"` }
type CreateLogStoreRequest ¶ added in v0.9.191
type CreateProjectRequest ¶ added in v0.9.191
type DeleteDownloadTaskRequest ¶ added in v0.9.200
type DeleteDownloadTaskRequest struct { // 下载任务的UUID 必填 UUID string `json:"uuid"` }
type DeleteFastQueryRequest ¶ added in v0.9.191
type DeleteFastQueryRequest struct { // 快速查询名称,必填 FastQueryName string `json:"fastQueryName"` }
type DeleteIndexRequest ¶ added in v0.9.191
type DeleteLogShipperRequest ¶ added in v0.9.191
type DeleteLogShipperRequest struct { // 投递任务ID 必填 LogShipperID string `json:"logShipperID"` }
type DeleteLogStoreRequest ¶ added in v0.9.191
type DeleteProjectRequest ¶ added in v0.9.191
type DeleteProjectRequest struct { // 日志组UUID 必填 UUID string `json:"uuid"` }
type DescribeDownloadRequest ¶ added in v0.9.200
type DescribeDownloadRequest struct { // 下载任务的UUID 必填 UUID string `json:"uuid"` }
type DescribeFastQueryRequest ¶ added in v0.9.191
type DescribeFastQueryRequest struct { // 快速查询名称,必填 FastQueryName string `json:"fastQueryName"` }
type DescribeIndexRequest ¶ added in v0.9.191
type DescribeLogStoreRequest ¶ added in v0.9.191
type DescribeProjectRequest ¶ added in v0.9.191
type DescribeProjectRequest struct { // 日志组UUID 必填 UUID string `json:"uuid"` }
type GetDownloadTaskLinkRequest ¶ added in v0.9.200
type GetDownloadTaskLinkRequest struct { // 下载任务的UUID 必填 UUID string `json:"uuid"` }
type GetLogShipperRequest ¶ added in v0.9.191
type GetLogShipperRequest struct { // 投递任务ID 必填 LogShipperID string `json:"logShipperID"` }
type ListDownloadTaskRequest ¶ added in v0.9.200
type ListDownloadTaskRequest struct { // 日志组名称关键字查询,精确匹配,选填 Project string `json:"project"` // 日志集关键字查询,模糊匹配,选填 LogStoreName string `json:"logStoreName"` // 排序方式 选填 支持desc和asc,默认desc Order string `json:"order"` // 排序字段 选填 支持 createdTime, updatedTime, name 默认按照createdTime创建时间排序 OrderBy string `json:"orderBy"` // 第几页 选填, 默认为1 PageNo int `json:"pageNo"` // 每页大小 选填, 默认为10 PageSize int `json:"pageSize"` }
type ListFastQueryRequest ¶ added in v0.9.191
type ListFastQueryRequest struct { // 日志组名称关键字查询,精确匹配,选填,默认全部 Project string `json:"project"` // 日志集名称关键字查询,精确匹配,选填,默认全部 LogStoreName string `json:"logStoreName"` // 快速查询名称关键字查询,模糊匹配,选填 NamePattern string `json:"namePattern"` // 排序方式 选填 支持desc和asc,默认desc Order string `json:"order"` // 排序字段 选填 取值为:creationDateTime,lastModifiedTime,name 默认按照creationDateTime创建时间排序 OrderBy string `json:"orderBy"` // 第几页 选填, 默认为1 PageNo int `json:"pageNo"` // 每页大小 选填, 默认为10 PageSize int `json:"pageSize"` }
type ListLogShipperRequest ¶ added in v0.9.191
type ListLogShipperRequest struct { // 投递任务ID 选填 LogShipperID string `json:"logShipperID"` // 投递任务名称关键字查询, 选填 模糊匹配 LogShipperName string `json:"logShipperName"` // 日志组名称,选填,默认全部 Project string `json:"project"` // 日志集名称名称关键字查询 选填 模糊匹配 LogStoreName string `json:"logStoreName"` // 投递任务类型查询 选填 精确匹配 取值BOS 目前只支持BOS类型 默认BOS类型 DestType string `json:"destType"` // 投递任务状态查询 选填 精确匹配 取值:运行中(Running)、异常(Abnormal)、已暂停(Paused)默认全部状态 Status string `json:"status"` // 排序方式 选填 支持desc和asc,默认desc Order string `json:"order"` // 排序字段 选填 取值为:creationDateTime 默认按照creationDateTime创建时间排序 OrderBy string `json:"orderBy"` // 第几页 必填 PageNo int `json:"pageNo"` // 每页大小 必填 PageSize int `json:"pageSize"` }
type ListLogStoreRequest ¶ added in v0.9.191
type ListLogStoreRequest struct { // 日志组名称,选填,默认全部日志组中搜索日志集 Project string `json:"project"` // 日志集名称关键字查询,模糊匹配,选填 NamePattern string `json:"namePattern"` // 排序方式 选填 支持desc和asc,默认desc Order string `json:"order"` // 排序字段 选填 支持 creationDateTime, lastModifiedTime, name 默认按照creationDateTime创建时间排序 OrderBy string `json:"orderBy"` // 第几页 选填, 默认为1 PageNo int `json:"pageNo"` // 每页大小 选填, 默认为10 PageSize int `json:"pageSize"` }
type ListLogStreamRequest ¶ added in v0.9.191
type ListLogStreamRequest struct { // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 日志流名称关键字查询,模糊匹配,选填 NamePattern string `json:"namePattern"` // 排序方式 选填 支持desc和asc,默认desc Order string `json:"order"` // 排序字段 选填 取值为:logStreamName 默认按照logStreamName名称排序 OrderBy string `json:"orderBy"` // 第几页 选填, 默认为1 PageNo int `json:"pageNo"` // 每页大小 选填, 默认为10 PageSize int `json:"pageSize"` }
type ListProjectRequest ¶ added in v0.9.191
type ListProjectRequest struct { // 日志组名称关键字查询,模糊匹配,选填 Name string `json:"name"` // 日志组描述关键字查询,模糊匹配,选填 Description string `json:"description"` // 排序方式 选填 支持desc和asc,默认desc Order string `json:"order"` // 排序字段 选填 支持 createdAt, updatedAt, name 默认按照createdAt创建时间排序 OrderBy string `json:"orderBy"` // 第几页 选填, 默认为1 PageNo int `json:"pageNo"` // 每页大小 选填, 默认为10 PageSize int `json:"pageSize"` }
type ListShipperRecordRequest ¶ added in v0.9.191
type PullLogRecordRequest ¶ added in v0.9.191
type PullLogRecordRequest struct { // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 日志流名称 选填,默认在全部日志流中查询 LogStreamName string `json:"logStreamName"` // 日志的开始时间, 必填,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z StartDateTime string `json:"startDateTime"` // 日志的结束时间,必填,UTC时间,格式ISO8601,例如:2020-01-10T14:23:34Z EndDateTime string `json:"endDateTime"` // 返回的数据条数,选填,默认为100 Limit int `json:"limit"` // 指定查看的开始位置标记,选填 Marker string `json:"marker"` }
type PushLogRecordRequest ¶ added in v0.9.191
type PushLogRecordRequest struct { // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 日志流名称 选填,默认在全部日志流中查询 LogStreamName string `json:"logStreamName"` // 日志类型,选填,取值为TEXT, JSON 默认为TEXT格式 LogType string `json:"logType"` // 日志数据,必填 LogRecords []api.LogRecord `json:"logRecords"` }
type QueryLogRecordRequest ¶ added in v0.9.191
type QueryLogRecordRequest struct { // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 日志流名称 选填,默认在全部日志流中查询 LogStreamName string `json:"logStreamName"` // 查询语句,必填 Query string `json:"query"` // 日志的开始时间, 必填,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z StartDateTime string `json:"startDateTime"` // 日志的结束时间,必填,UTC时间,格式ISO8601,例如:2020-01-10T14:23:34Z EndDateTime string `json:"endDateTime"` // 返回的数据条数,选填,默认为100,最大支持1000 Limit int `json:"limit"` // 置顶查询的游标,默认为空,从头开始查询;如果不为,将从游标位置开始查询 Marker string `json:"marker"` // 排序字段,默认desc,按照时间倒序排序;asc,按照时间顺序排序 Sort string `json:"sort"` }
type UpdateFastQueryRequest ¶ added in v0.9.191
type UpdateFastQueryRequest struct { // 快速查询名称,必填 FastQueryName string `json:"fastQueryName"` // 查询语句,必填 Query string `json:"query"` // 快速查询描述 选填 Description string `json:"description"` // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 日志流名称 选填,默认在全部日志流中查询 LogStreamName string `json:"logStreamName"` // 日志的开始时间, 必填,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z StartDateTime string `json:"startDateTime"` // 日志的结束时间,必填,UTC时间,格式ISO8601,例如:2020-01-10T14:23:34Z EndDateTime string `json:"endDateTime"` }
type UpdateIndexRequest ¶ added in v0.9.191
type UpdateIndexRequest struct { // 日志组名称,选填,默认default Project string `json:"project"` // 日志集名称 必填 LogStoreName string `json:"logStoreName"` // 是否开启全文索引,默认false,不开启全文索引 Fulltext bool `json:"fulltext"` // 全文索引是否开启大小写敏感,默认false,不开启大小写敏感 CaseSensitive bool `json:"caseSensitive"` // 全文分词符,将字段内容按照分词符拆分成若干个分词用于检索 Separators string `json:"separators"` // 是否包含中文,默认为false,不包含中文 IncludeChinese bool `json:"includeChinese"` // 字段索引信息 Fields map[string]api.LogField `json:"fields"` }
type UpdateLogShipperRequest ¶ added in v0.9.191
type UpdateLogShipperRequest struct { // 投递任务ID 必填 LogShipperID string `json:"logShipperID"` // 投递任务名称,必填 LogShipperName string `json:"logShipperName"` // 投递目的端配置, 必填 DestConfig *api.ShipperDestConfig `json:"destConfig"` }
type UpdateLogShipperStatusRequest ¶ added in v0.9.191
type UpdateLogStoreRequest ¶ added in v0.9.191
type UpdateProjectRequest ¶ added in v0.9.191
Click to show internal directories.
Click to hide internal directories.