1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
// Generated by redfish-codegen. Do not modify.
use redfish_macros::IntoRedfishMessage;
/// This registry defines messages used for general events related to Sensor resources.
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum SensorEvent {
/// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously below the threshold, is now above the value of the `Reading` property within the `LowerFatal` property. However, the value of the `Reading` property is still below at least one `Reading` property of another lower threshold and is not within the normal operating range.
#[message(message = "Sensor '%1' reading of %2 (%3) is now above the %4 lower fatal threshold but remains outside of normal range.")]
#[message(id = "SensorEvent.1.0.0.ReadingAboveLowerFatalThreshold")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingAboveLowerFatalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `LowerFatal` property of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is above the value of the `Reading` property within the `UpperFatal` property.
#[message(message = "Sensor '%1' reading of %2 (%3) is above the %4 upper fatal threshold.")]
#[message(id = "SensorEvent.1.0.0.ReadingAboveUpperFatalThreshold")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingAboveUpperFatalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `UpperFatal` property of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource exceeds the value of an internal critical level. This message shall be used for `Sensor` resources that do not contain readable critical threshold values, such as boolean trip points or similiar hardware mechanisms. This message shall not be used if the `Reading` property within a corresponding critical threshold is available.
#[message(message = "Sensor '%1' reading of %2 (%3) exceeds the critical level.")]
#[message(id = "SensorEvent.1.0.0.ReadingCritical")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingCritical(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
),
/// This message shall be used to indicate that the service is unable to communicate with a sensor or has otherwise detected a fault condition with the sensor.
#[message(message = "Sensor '%1' has failed.")]
#[message(id = "SensorEvent.1.0.0.SensorFailure")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the sensor hardware or connection.")]
SensorFailure(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is below the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties.
#[message(message = "Sensor '%1' reading of %2 (%3) is below the %4 lower caution threshold.")]
#[message(id = "SensorEvent.1.0.0.ReadingBelowLowerCautionThreshold")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingBelowLowerCautionThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `LowerCaution` or `LowerCautionUser` properties of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is below the value of the `Reading` property within the `LowerFatal` property.
#[message(message = "Sensor '%1' reading of %2 (%3) is below the %4 lower fatal threshold.")]
#[message(id = "SensorEvent.1.0.0.ReadingBelowLowerFatalThreshold")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingBelowLowerFatalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `LowerFatal` property of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously above the threshold, is now below the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties. However, the value of the `Reading` property is still above at least one `Reading` property of another upper threshold and is not within the normal operating range.
#[message(message = "Sensor '%1' reading of %2 (%3) is now below the %4 upper critical threshold but remains outside of normal range.")]
#[message(id = "SensorEvent.1.0.0.ReadingBelowUpperCriticalThreshold")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingBelowUpperCriticalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource no longer exceeds the value of an internal critical level, but the value still exceeds an internal warning level. This message shall be used for `Sensor` resources that do not contain readable critical threshold values, such as boolean trip points or similiar hardware mechanisms. This message shall not be used if the `Reading` property within a corresponding critical threshold is available.
#[message(message = "Sensor '%1' reading of %2 (%3) no longer exceeds the critcal level.")]
#[message(id = "SensorEvent.1.0.0.ReadingNoLongerCritical")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingNoLongerCritical(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is below the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties.
#[message(message = "Sensor '%1' reading of %2 (%3) is below the %4 lower critical threshold.")]
#[message(id = "SensorEvent.1.0.0.ReadingBelowLowerCriticalThreshold")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingBelowLowerCriticalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource exceeds the value of an internal warning level. This message shall be used for `Sensor` resources that do not contain readable caution threshold values, such as boolean trip points or similiar hardware mechanisms. This message shall not be used if the `Reading` property within a corresponding caution threshold is available.
#[message(message = "Sensor '%1' reading of %2 (%3) exceeds the warning level.")]
#[message(id = "SensorEvent.1.0.0.ReadingWarning")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingWarning(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is above the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties.
#[message(message = "Sensor '%1' reading of %2 (%3) is above the %4 upper caution threshold.")]
#[message(id = "SensorEvent.1.0.0.ReadingAboveUpperCautionThreshold")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingAboveUpperCautionThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `UpperCaution` or `UpperCautionUser` properties of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously above the threshold, is now below the value of the `Reading` property within the `UpperFatal` property. However, the value of the `Reading` property is still above at least one `Reading` property of another upper threshold and is not within the normal operating range.
#[message(message = "Sensor '%1' reading of %2 (%3) is now below the %4 upper fatal threshold but remains outside of normal range.")]
#[message(id = "SensorEvent.1.0.0.ReadingBelowUpperFatalThreshold")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingBelowUpperFatalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `UpperFatal` property of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the service is able to communicate with a sensor that had previously failed, or the sensor has been repaired or replaced.
#[message(message = "Sensor '%1' has been restored.")]
#[message(id = "SensorEvent.1.0.0.SensorRestored")]
#[message(severity = "crate::models::resource::Health::OK")]
#[message(resolution = "None.")]
SensorRestored(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
),
/// This message shall be used to indicate that the value of the `Reading` property in a `Sensor` resource is above the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties.
#[message(message = "Sensor '%1' reading of %2 (%3) is above the %4 upper critical threshold.")]
#[message(id = "SensorEvent.1.0.0.ReadingAboveUpperCriticalThreshold")]
#[message(severity = "crate::models::resource::Health::Critical")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingAboveUpperCriticalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `UpperCritical` or `UpperCriticalUser` properties of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the service received invalid data while attempting to update the value of the `Reading` property in a `Sensor` resource.
#[message(message = "Invalid reading received from sensor '%1'.")]
#[message(id = "SensorEvent.1.0.0.InvalidSensorReading")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the sensor hardware or connection.")]
InvalidSensorReading(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
),
/// This message shall be used to indicate that the value of the `Reading` in a `Sensor` resource, previously below the threshold, is now above the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties. However, the value of the `Reading` property is still below at least one `Reading` property of another lower threshold and is not within the normal operating range.
#[message(message = "Sensor '%1' reading of %2 (%3) is now above the %4 lower critical threshold but remains outside of normal range.")]
#[message(id = "SensorEvent.1.0.0.ReadingAboveLowerCriticalThreshold")]
#[message(severity = "crate::models::resource::Health::Warning")]
#[message(resolution = "Check the condition of the resources listed in RelatedItem.")]
ReadingAboveLowerCriticalThreshold(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
/// This argument shall contain a number that equals the value of the `Reading` property within the `LowerCritical` or `LowerCriticalUser` properties of the `Sensor` resource.
f64,
),
/// This message shall be used to indicate that the value of the `Reading` property within a `Sensor` resource has returned to its normal operating range.
#[message(message = "Sensor '%1' reading of %2 (%3) is within normal operating range.")]
#[message(id = "SensorEvent.1.0.0.SensorReadingNormalRange")]
#[message(severity = "crate::models::resource::Health::OK")]
#[message(resolution = "None.")]
SensorReadingNormalRange(
/// This argument shall contain a string that identifies or describes the `Sensor` resource.
String,
/// This argument shall contain a number that equals the value of the `Reading` property of the `Sensor` resource.
f64,
/// This argument shall contain a string that equals the value of the `ReadingUnits` property of the `Sensor` resource. Unitless readings should use `count`.
String,
),
}