Skip to main content
POST
Error

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
name
string
必填

Display name for the saved search.

Maximum string length: 1024
示例:

"Production Errors"

sourceId
string
必填

ID of the source to query. Must belong to the team.

示例:

"507f1f77bcf86cd799439012"

select
string

Comma-separated list of column expressions to display. Empty uses the source default.

Maximum string length: 4096
示例:

"Timestamp, ServiceName, Body"

where
string

Row filter expression. The language is controlled by whereLanguage.

Maximum string length: 8192
示例:

"SeverityText:ERROR"

whereLanguage
enum<string>
默认值:lucene

Language used for the where filter.

可用选项:
lucene,
sql
示例:

"lucene"

orderBy
string

ORDER BY expression. Empty uses the source default.

Maximum string length: 1024
示例:

"Timestamp DESC"

tags
string[]

Tags used to organize saved searches.

Maximum array length: 50
Maximum string length: 32
示例:
filters
object[]

Structured pinned filters applied to the search.

Maximum array length: 100
示例:

响应

Successfully created saved search

data
object

The saved search object.

最后修改于 2026年7月16日