Get replica lag
render_get_replication_lagGet the replication lag in seconds for a Postgres database replica to identify synchronization delays.
Instructions
Get replica lag. Get seconds of replica lag of a Postgres replica. Calls GET /metrics/replication-lag on the Render Public API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | Epoch/Unix timestamp of end of time range to return. Defaults to `now()`. | |
| resource | No | Postgres ID to query. When multiple resource query params are provided, they are ORed together | |
| startTime | No | Epoch/Unix timestamp of start of time range to return. Defaults to `now() - 1 hour`. | |
| resolutionSeconds | No | The resolution of the returned data |