Files
napalm-redfish/tests/fixtures/dmtf-public-rackmount1/Chassis/1U/Sensors/TotalPower/index.json
T
Christian Manivong c8bcd5ace1 Add DMTF mockup fixtures and test helpers
Unmodified files from DMTF Redfish-Publications (public-rackmount1, public-localstorage, public-telemetry), only those the tests use, each set with DMTF's BSD-3-Clause license and a COMMANDS.txt naming the source commit and request paths.

conftest.py loads them by request path and serves a mockup over mocked HTTP, with a SessionService that hands out a token, for the transport tests.
2026-10-12 23:42:14 +00:00

53 lines
1.6 KiB
JSON

{
"@odata.type": "#Sensor.v1_14_0.Sensor",
"Id": "TotalPower",
"Name": "Power reading for the Chassis",
"ReadingType": "Power",
"ElectricalContext": "Total",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Reading": 374,
"ReadingUnits": "W",
"Implementation": "Synthesized",
"ReadingTime": "2019-08-13T04:14:33+06:00",
"ReadingRangeMin": 0,
"ReadingRangeMax": 600,
"ApparentVA": 2749.2,
"ReactiveVAR": 281.4,
"PowerFactor": 0.99,
"Accuracy": 0.2,
"Precision": 1,
"SensingInterval": "PT0.25S",
"PhysicalContext": "Chassis",
"Thresholds": {
"UpperCritical": {
"Reading": 600,
"Activation": "Increasing",
"DwellTime": "PT1M",
"HysteresisReading": -10,
"HysteresisDuration": "PT1M",
"@Redfish.WriteableProperties": [
"Reading",
"DwellTime",
"HysteresisReading",
"HysteresisDuration"
]
},
"UpperCaution": {
"Reading": 580,
"DwellTime": "PT10M",
"HysteresisReading": -10,
"HysteresisDuration": "PT10M",
"@Redfish.WriteableProperties": [
"Reading",
"DwellTime",
"HysteresisReading",
"HysteresisDuration"
]
}
},
"@odata.id": "/redfish/v1/Chassis/1U/Sensors/TotalPower",
"@Redfish.Copyright": "Copyright 2014-2026 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
}