| 1 | { |
| 2 | "jsonSchema": { |
| 3 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 4 | "title": "Postfix collector configuration", |
| 5 | "type": "object", |
| 6 | "properties": { |
| 7 | "update_every": { |
| 8 | "title": "Update every", |
| 9 | "description": "Data collection interval, measured in seconds.", |
| 10 | "type": "integer", |
| 11 | "minimum": 1, |
| 12 | "default": 10 |
| 13 | }, |
| 14 | "binary_path": { |
| 15 | "title": "Binary path", |
| 16 | "description": "Path to the `postqueue` binary.", |
| 17 | "type": "string", |
| 18 | "default": "/usr/sbin/postqueue" |
| 19 | }, |
| 20 | "timeout": { |
| 21 | "title": "Timeout", |
| 22 | "description": "Timeout for executing the binary, specified in seconds.", |
| 23 | "type": "number", |
| 24 | "minimum": 0.5, |
| 25 | "default": 2 |
| 26 | } |
| 27 | }, |
| 28 | "required": [ |
| 29 | "binary_path" |
| 30 | ] |
| 31 | }, |
| 32 | "uiSchema": { |
| 33 | "uiOptions": { |
| 34 | "fullPage": true |
| 35 | }, |
| 36 | "binary_path": { |
| 37 | "ui:help": "If an absolute path is provided, the collector will use it directly; otherwise, it will search for the binary in directories specified in the PATH environment variable." |
| 38 | }, |
| 39 | "timeout": { |
| 40 | "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)." |
| 41 | } |
| 42 | } |
| 43 | } |