Split schema and project documentation into focused contracts
This commit is contained in:
1 parent
b0e6402d66
commit
d0d7233700
21 files changed
+405
-327
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Contract: Hardware Ingest - sensors
|
||||
|
||||
Part of [hardware components](../contract.md), schema version 2.10.
|
||||
|
||||
## sensors (опционально)
|
||||
|
||||
Данные хранятся как last-known-value на уровне Asset. Идентификатор: `(sensor_type, name)`.
|
||||
Поле `location` передавать не нужно — игнорируется. Сенсоры без `name` игнорируются.
|
||||
|
||||
```json
|
||||
"sensors": {
|
||||
"fans": [{ "name": "FAN1", "rpm": 4200, "status": "OK" }],
|
||||
"power": [{ "name": "12V Rail", "voltage_v": 12.06, "status": "OK" }],
|
||||
"temperatures": [{ "name": "CPU0 Temp", "celsius": 46.0, "threshold_warning_celsius": 80.0, "threshold_critical_celsius": 95.0, "status": "OK" }],
|
||||
"other": [{ "name": "System Humidity", "value": 38.5, "unit": "%" }]
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user