bls

package
v0.9.209 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 BlsClientConfiguration struct {
	Ak       string
	Sk       string
	Endpoint string
}

type BulkDeleteLogShipperRequest added in v0.9.191

type BulkDeleteLogShipperRequest struct {
	// 投递任务ID集合 必填
	LogShipperIDs []string `json:"logShipperIDs"`
}

type BulkUpdateLogShipperStatusRequest added in v0.9.191

type BulkUpdateLogShipperStatusRequest struct {
	// 投递任务ID集合 必填
	LogShipperIDs []string `json:"logShipperIDs"`
	// 投递任务状态 必填 取值: Running(启动),Paused(暂停)
	DesiredStatus string `json:"desiredStatus"`
}

type Client

type Client struct {
	*bce.BceClient
}

func NewClient

func NewClient(ak, sk, endpoint string) (*Client, error)

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

func (c *Client) CreateIndex(logStore string, fulltext bool, fields map[string]api.LogField) error

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

func (c *Client) CreateLogStore(logStore string, retention int) error

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 (c *Client) CreateLogStoreWithTags(logStore string, retention int, tags []model.TagModel) error

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 (c *Client) DeleteFastQuery(fastQueryName string) error

func (*Client) DeleteFastQueryV2 added in v0.9.191

func (c *Client) DeleteFastQueryV2(request DeleteFastQueryRequest) error

func (*Client) DeleteIndex

func (c *Client) DeleteIndex(logStore string) error

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 (c *Client) DeleteLogStore(logStore string) error

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 (c *Client) DeleteSingleLogShipper(logShipperID string) error

func (*Client) DescribeDownloadTask added in v0.9.200

func (c *Client) DescribeDownloadTask(request DescribeDownloadRequest) (*api.DownloadTask, error)

func (*Client) DescribeFastQuery

func (c *Client) DescribeFastQuery(fastQueryName string) (*api.FastQuery, error)

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 (c *Client) DescribeLogStore(logStore string) (*api.LogStore, error)

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 (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 (c *Client) UpdateIndex(logStore string, fulltext bool, fields map[string]api.LogField) error

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 (c *Client) UpdateLogStore(logStore string, retention int) error

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 CreateLogStoreRequest struct {
	// 日志组名称,选填,默认为default
	Project string `json:"project"`
	// 日志集名称,必填
	LogStoreName string `json:"logStoreName"`
	// 日志集存储周期,必填
	Retention int `json:"retention"`
	// 日志集标签,选填,默认没有标签
	Tags []model.TagModel `json:"tags"`
}

type CreateProjectRequest added in v0.9.191

type CreateProjectRequest struct {
	// 日志组名称,选填,默认为default
	Name string `json:"name"`
	// 日志组描述,选填
	Description string `json:"description"`
}

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 DeleteIndexRequest struct {
	// 日志组名称,选填,默认default
	Project string `json:"project"`
	// 日志集名称 必填
	LogStoreName string `json:"logStoreName"`
}

type DeleteLogShipperRequest added in v0.9.191

type DeleteLogShipperRequest struct {
	// 投递任务ID 必填
	LogShipperID string `json:"logShipperID"`
}

type DeleteLogStoreRequest added in v0.9.191

type DeleteLogStoreRequest struct {
	// 日志组名称,选填,默认为default
	Project string `json:"project"`
	// 日志集名称,必填
	LogStoreName string `json:"logStoreName"`
}

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 DescribeIndexRequest struct {
	// 日志组名称,选填,默认default
	Project string `json:"project"`
	// 日志集名称 必填
	LogStoreName string `json:"logStoreName"`
}

type DescribeLogStoreRequest added in v0.9.191

type DescribeLogStoreRequest struct {
	// 日志组名称,选填,默认为default
	Project string `json:"project"`
	// 日志集名称,必填
	LogStoreName string `json:"logStoreName"`
}

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 ListShipperRecordRequest struct {
	// 投递任务ID 必填
	LogShipperID string `json:"logShipperID"`
	// 投递记录的开始时间,查询范围为:(now-SinceHours, now) 选填,默认为1
	SinceHours int `json:"sinceHours"`
	// 第几页 选填, 默认为1
	PageNo int `json:"pageNo"`
	// 每页大小 选填, 默认为10
	PageSize int `json:"pageSize"`
}

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 UpdateLogShipperStatusRequest struct {
	// 投递任务ID 必填
	LogShipperID string `json:"logShipperID"`
	// 投递任务状态 必填 取值: Running(启动),Paused(暂停)
	DesiredStatus string `json:"status"`
}

type UpdateLogStoreRequest added in v0.9.191

type UpdateLogStoreRequest struct {
	// 日志组名称,选填,默认为default
	Project string `json:"project"`
	// 日志集名称,必填
	LogStoreName string `json:"logStoreName"`
	// 日志集存储周期,必填
	Retention int `json:"retention"`
}

type UpdateProjectRequest added in v0.9.191

type UpdateProjectRequest struct {
	// 日志组UUID 必填
	UUID string `json:"uuid"`
	// 日志组描述,选填
	Description string `json:"description"`
	// 日志组是否置顶, 选填
	Top bool `json:"top"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL