redfish_codegen/models/sensor/v1_7_0/reading_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ReadingType {
6 /// This value shall indicate a temperature measurement, in degrees Celsius units. The ReadingUnits property shall contain `Cel`.
7 Temperature,
8 /// This value shall indicate a relative humidity measurement, in percent units. The ReadingUnits property shall contain `%`.
9 Humidity,
10 /// This value shall indicate the arithmetic mean of product terms of instantaneous voltage and current values measured over integer number of line cycles for a circuit, in watt units. The ReadingUnits property shall contain `W`.
11 Power,
12 /// This value shall indicate the energy, integral of real power over time, of the monitored item. If representing metered power consumption the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in kilowatt-hour units and the ReadingUnits property shall contain `kW.h`. This value is used for large-scale energy consumption measurements, while `EnergyJoules` and `EnergyWh` are used for device-level consumption measurements.
13 EnergykWh,
14 /// This value shall indicate the energy, integral of real power over time, of the monitored item. If representing metered power consumption the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in joule units and the ReadingUnits property shall contain `J`. This value is used for device-level energy consumption measurements, while `EnergykWh` is used for large-scale consumption measurements.
15 EnergyJoules,
16 /// This value shall indicate the energy, integral of real power over time, of the monitored item. If representing metered power consumption the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in watt-hour units and the ReadingUnits property shall contain `W.h`. This value is used for device-level energy consumption measurements, while `EnergykWh` is used for large-scale consumption measurements. Added in version v1_4_0.
17 EnergyWh,
18 /// This value shall indicate the amount of charge of the monitored item. If representing metered power consumption, integral of real power over time, the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in ampere-hour units and the ReadingUnits property shall contain `A.h`. Added in version v1_4_0.
19 ChargeAh,
20 /// This value shall indicate a measurement of the root mean square (RMS) of instantaneous voltage calculated over an integer number of line cycles for a circuit. Voltage is expressed in volt units and the ReadingUnits property shall contain `V`.
21 Voltage,
22 /// This value shall indicate a measurement of the root mean square (RMS) of instantaneous current calculated over an integer number of line cycles for a circuit. Current is expressed in ampere units and the ReadingUnits property shall contain `A`.
23 Current,
24 /// This value shall indicate a frequency measurement, in hertz units. The ReadingUnits property shall contain `Hz`.
25 Frequency,
26 /// This value shall indicate a measurement of force, in pascal units, applied perpendicular to the surface of an object per unit area over which that force is distributed. The ReadingUnits property shall contain `Pa`.
27 Pressure,
28 /// This value shall indicate a measurement of pressure, in kilopascal units, relative to atmospheric pressure. The ReadingUnits property shall contain `kPa`. Added in version v1_5_0.
29 PressurekPa,
30 /// This value shall indicate a measurement of pressure, in pascal units, relative to atmospheric pressure. The ReadingUnits property shall contain `Pa`. Added in version v1_7_0.
31 PressurePa,
32 /// This value shall indicate a measurement of fluid height, in centimeter units, relative to a specified vertical datum and the ReadingUnits property shall contain `cm`.
33 LiquidLevel,
34 /// This value shall indicate a measurement of rotational frequency, in revolutions per minute unit. The ReadingUnits property shall contain either `{rev}/min`, which is preferred, or `RPM`, which is a deprecated value.
35 Rotational,
36 /// This value shall indicate a measurement of a volume of gas per unit of time, in cubic feet per minute units, that flows through a particular junction. The ReadingUnits property shall contain `[ft_i]3/min`.
37 AirFlow,
38 /// This value shall indicate a measurement of a volume of gas per unit of time, in cubic meters per minute units, that flows through a particular junction. The ReadingUnits property shall contain `m3/min`. Added in version v1_7_0.
39 AirFlowCMM,
40 /// This value shall indicate a measurement of a volume of liquid per unit of time, in liters per second units, that flows through a particular junction. The ReadingUnits property shall contain `L/s`.
41 LiquidFlow,
42 /// This value shall indicate a measurement of a volume of liquid per unit of time, in liters per minute units, that flows through a particular junction. The ReadingUnits property shall contain `L/min`. Added in version v1_7_0.
43 LiquidFlowLPM,
44 /// This value shall indicate a measurement of barometric pressure, in millimeters of a mercury column. The ReadingUnits property shall contain `mm[Hg]`.
45 Barometric,
46 /// This value shall indicate a measurement of altitude, in meter units, defined as the elevation above sea level. The ReadingUnits property shall contain `m`.
47 Altitude,
48 /// This value shall indicate a percentage measurement, in percent units. The ReadingUnits property shall contain `%`. Added in version v1_1_0.
49 Percent,
50 /// This value shall indicate an absolute (volumetric) humidity measurement, in grams per cubic meter units. The ReadingUnits property shall contain `g/m3`. Added in version v1_5_0.
51 AbsoluteHumidity,
52 /// This value shall indicate a heat measurement, in kilowatt units. The ReadingUnits property shall contain `kW`. Added in version v1_7_0.
53 Heat,
54}
55
56#[allow(clippy::derivable_impls)]
57impl Default for ReadingType {
58 fn default() -> ReadingType {
59 ReadingType::Temperature
60 }
61}
62
63impl crate::Metadata<'static> for ReadingType {
64 const JSON_SCHEMA: &'static str = "Sensor.v1_7_0.json";
65}