跳转到主要内容
POST
ClickStack: Create Saved Search

授权

Authorization
string
header
必填

Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi

路径参数

organizationId
string<uuid>
必填

ID of the organization that owns the service.

serviceId
string<uuid>
必填

ID of the ClickStack service.

请求体

application/json
name
string
必填

Display name for the saved search.

示例:

"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.

示例:

"Timestamp, ServiceName, Body"

where
string

Row filter expression. The language is controlled by whereLanguage.

示例:

"SeverityText:ERROR"

whereLanguage
enum<string>

Language used for the where filter.

可用选项:
lucene,
sql
示例:

"lucene"

orderBy
string

ORDER BY expression. Empty uses the source default.

示例:

"Timestamp DESC"

tags
string[]

Tags used to organize saved searches.

示例:
filters
object[]

Structured pinned filters applied to the search.

示例:

响应

Successful response

status
number

HTTP status code.

示例:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object