跳转到主要内容
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