|
Post by dkodihalli on Sept 30, 2021 7:28:40 GMT
We want to represent the status of a power supply input to another resource as follows:
/redfish/v1/Chassis/{ChassisId}/Sensors/{SensorId}, where {ChassisId} : Id of the resource to which the power supply feeds power {SensorId} : Represents the power supply sensor - where there is power or not
The Sensor here will not have a Reading and no Thresholds (this is analogous to IPMI discrete sensor). We intend to use the 'Health' property of the Sensor resource to denote whether the Power Supply is good or not. Question is - is this a valid use of the schema or should we do something else, like actually model the PS and use its Health? It seems like Sensor.Health is related to the value/thresholds, but neither exist in the case I described.
|
|
|
Post by jautor on Oct 5, 2021 0:34:40 GMT
It's not clear what you mean "to another resource" here - are you trying to show the power state of another device - something that is powered by a power supply? I would expect something in that device's resource to provide a power state, if that's the case.
A sensor must have a Reading to be useful - if not, then this really becomes a property (perhaps a boolean) somewhere in context.
Looking at the schema I also see we didn't define a simple "LineInputState" property to show that there is power on the input side of a power supply. While that information could be determined by looking at the metrics resource and the input voltage, that is a lot to go through. And more importantly - simple, un-mananaged power supplies may provide a discrete signal to indicate a line fault as opposed to an internal fault - so I think it's worth adding.
Jeff
|
|