|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "title": "A003 report schema", |
| 4 | + "type": "object", |
| 5 | + "additionalProperties": false, |
| 6 | + "required": ["checkId", "checkTitle", "timestamptz", "nodes", "results"], |
| 7 | + "properties": { |
| 8 | + "checkId": { "const": "A003" }, |
| 9 | + "checkTitle": { "const": "Postgres settings" }, |
| 10 | + "timestamptz": { "type": "string" }, |
| 11 | + "nodes": { "$ref": "#/$defs/nodes" }, |
| 12 | + "results": { |
| 13 | + "type": "object", |
| 14 | + "minProperties": 1, |
| 15 | + "additionalProperties": { "$ref": "#/$defs/nodeResult" } |
| 16 | + } |
| 17 | + }, |
| 18 | + "$defs": { |
| 19 | + "nodes": { |
| 20 | + "type": "object", |
| 21 | + "additionalProperties": false, |
| 22 | + "required": ["primary", "standbys"], |
| 23 | + "properties": { |
| 24 | + "primary": { "type": "string" }, |
| 25 | + "standbys": { "type": "array", "items": { "type": "string" } } |
| 26 | + } |
| 27 | + }, |
| 28 | + "postgresVersion": { |
| 29 | + "type": "object", |
| 30 | + "additionalProperties": false, |
| 31 | + "required": ["version", "server_version_num", "server_major_ver", "server_minor_ver"], |
| 32 | + "properties": { |
| 33 | + "version": { "type": "string" }, |
| 34 | + "server_version_num": { "type": "string" }, |
| 35 | + "server_major_ver": { "type": "string" }, |
| 36 | + "server_minor_ver": { "type": "string" } |
| 37 | + } |
| 38 | + }, |
| 39 | + "setting": { |
| 40 | + "type": "object", |
| 41 | + "additionalProperties": false, |
| 42 | + "required": ["setting", "unit", "category", "context", "vartype", "pretty_value"], |
| 43 | + "properties": { |
| 44 | + "setting": { "type": "string" }, |
| 45 | + "unit": { "type": "string" }, |
| 46 | + "category": { "type": "string" }, |
| 47 | + "context": { "type": "string" }, |
| 48 | + "vartype": { "type": "string" }, |
| 49 | + "pretty_value": { "type": "string" } |
| 50 | + } |
| 51 | + }, |
| 52 | + "data": { |
| 53 | + "type": "object", |
| 54 | + "additionalProperties": { "$ref": "#/$defs/setting" } |
| 55 | + }, |
| 56 | + "nodeResult": { |
| 57 | + "type": "object", |
| 58 | + "additionalProperties": false, |
| 59 | + "required": ["data"], |
| 60 | + "properties": { |
| 61 | + "data": { "$ref": "#/$defs/data" }, |
| 62 | + "postgres_version": { "$ref": "#/$defs/postgresVersion" } |
| 63 | + } |
| 64 | + } |
| 65 | + } |
| 66 | +} |
| 67 | + |
| 68 | + |
0 commit comments