メインコンテンツへスキップ
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