메인 콘텐츠로 건너뛰기
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.

인증

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 Postgres service.

postgresId
string<uuid>
필수

ID of the Postgres service.

쿼리 매개변수

from_date
string<date-time>
필수

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

to_date
string<date-time>
필수

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.

필수 범위: x >= 1

응답

Successful response

status
number

HTTP status code.

예시:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object