changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "_warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "is_replica": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "pg_is_in_recovery(). Null means the probe failed, NOT 'primary'."
+ },
+ "replicas": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "application_name": {
+ "type": "string"
+ },
+ "client_addr": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null for a replica connected over a unix socket."
+ },
+ "flush_lag_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "replay_lag_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "description": "startup | catchup | streaming | backup | stopping.",
+ "type": "string"
+ },
+ "sync_state": {
+ "description": "async | potential | sync | quorum.",
+ "type": "string"
+ },
+ "write_lag_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null until the primary has measured a round trip."
+ }
+ },
+ "required": [
+ "application_name",
+ "client_addr",
+ "state",
+ "sync_state",
+ "write_lag_seconds",
+ "flush_lag_seconds",
+ "replay_lag_seconds"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "slots": {
+ "description": "Empty both on a standalone database and when the fetch failed -- check `_warnings`.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "active": {
+ "description": "False means nothing is consuming the slot -- WAL piles up behind it.",
+ "type": "boolean"
+ },
+ "confirmed_flush_lsn": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Logical slots only; null on a physical slot."
+ },
+ "database": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Logical slots only; null on a physical slot."
+ },
+ "plugin": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Logical slots only; null on a physical slot."
+ },
+ "restart_lsn": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "slot_name": {
+ "type": "string"
+ },
+ "slot_type": {
+ "description": "physical | logical.",
+ "type": "string"
+ },
+ "wal_status": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "reserved | extended | unreserved | lost."
+ }
+ },
+ "required": [
+ "slot_name",
+ "slot_type",
+ "active",
+ "restart_lsn",
+ "confirmed_flush_lsn",
+ "wal_status",
+ "database",
+ "plugin"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "wal_position": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Last received LSN on a replica, current LSN on a primary. Null when the probe failed."
+ }
+ },
+ "required": [
+ "is_replica",
+ "wal_position",
+ "slots",
+ "replicas"
+ ],
+ "type": "object"
+}