Pular para o conteúdo principal
GET
Get Postgres time-series metrics
Returns bucketed time-series metrics for a PostgreSQL service over the requested window (CPU, memory, disk, network, connections, cache hit ratio, throughput, transactions, wait events, lock waits, and more). Use this to chart or analyze how a service behaved over time.

Permission

The API key must have the control-plane:postgres-service:view permission.

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

organizationId
string<uuid>
obrigatório

ID of the organization that owns the Postgres service.

postgresId
string<uuid>
obrigatório

ID of the Postgres service.

Parâmetros de consulta

from_date
string<date-time>
obrigatório

Inclusive start of the time window (RFC 3339 date-time).

to_date
string<date-time>
obrigatório

Exclusive end of the time window (RFC 3339 date-time).

bucket_size_seconds
integer

Time-series bucket size in seconds. When omitted, a bucket size is derived from the requested window. Requests are capped at 250 data points.

Intervalo obrigatório: x >= 1

Resposta

Successful response

status
number

HTTP status code.

Exemplo:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object