| 1 | { |
| 2 | "jsonSchema": { |
| 3 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 4 | "title": "Ethtool 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 | "timeout": { |
| 15 | "title": "Timeout", |
| 16 | "description": "Timeout for executing the binary, specified in seconds.", |
| 17 | "type": "number", |
| 18 | "minimum": 0.5, |
| 19 | "default": 2 |
| 20 | }, |
| 21 | "optical_interfaces": { |
| 22 | "title": "Optical Interfaces", |
| 23 | "description": "Space-separated list of optical interface names which must have optical transceiver modules with [DDM](https://en.wikipedia.org/wiki/Small_Form-factor_Pluggable#Digital_diagnostics_monitoring).", |
| 24 | "type": "string" |
| 25 | } |
| 26 | }, |
| 27 | "required": [ |
| 28 | "optical_interfaces" |
| 29 | ] |
| 30 | }, |
| 31 | "uiSchema": { |
| 32 | "uiOptions": { |
| 33 | "fullPage": true |
| 34 | }, |
| 35 | "optical_interfaces": { |
| 36 | "ui:placeholder": "enp1s0 enp1s1 enp2s0" |
| 37 | }, |
| 38 | "timeout": { |
| 39 | "ui:help": "Accepts decimals for precise control (e.g., type 1.5 for 1.5 seconds)." |
| 40 | } |
| 41 | } |
| 42 | } |