redfish_codegen/models/triggers/v1_3_1/threshold_activation.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ThresholdActivation {
6 /// This threshold is activated when the reading changes from a value lower than the threshold to a value higher than the threshold.
7 Increasing,
8 /// This threshold is activated when the reading changes from a value higher than the threshold to a value lower than the threshold.
9 Decreasing,
10 /// This threshold is activated when either the Increasing or Decreasing conditions are met.
11 Either,
12 /// This value shall indicate the threshold is disabled and no actions shall be taken as a result of the reading crossing the threshold value. Added in version v1_3_0.
13 Disabled,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for ThresholdActivation {
18 fn default() -> ThresholdActivation {
19 ThresholdActivation::Increasing
20 }
21}
22
23impl crate::Metadata<'static> for ThresholdActivation {
24 const JSON_SCHEMA: &'static str = "Triggers.v1_3_1.json";
25}