Skip to main content
GET
Get a Postgres slow query pattern with recent executions
Beta This endpoint is in beta. API contract is stable, and no breaking changes are expected in the future.

Returns aggregate metrics for a single slow query pattern together with its most recent individual executions.

Authorizations

Authorization
string
header
required

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

Path Parameters

organizationId
string<uuid>
required

ID of the organization that owns the Postgres service.

postgresId
string<uuid>
required

ID of the requested Postgres service.

queryId
string
required

Stable identifier for the query pattern.

Query Parameters

db_name
string
required

Database name filter.

db_user
string
required

Database user filter.

db_operation
string
required

Database operation filter (for example, SELECT, INSERT, UPDATE, DELETE, UTILITY).

app
string

Application name filter.

timestamp
string<date-time>

Timestamp of a specific execution (RFC 3339).

Response

Successful response

status
number

HTTP status code.

Example:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object
Last modified on July 9, 2026