الانتقال إلى المحتوى الرئيسي
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