// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ThresholdActivation {
/// This threshold is activated when the reading changes from a value lower than the threshold to a value higher than the threshold.
Increasing,
/// This threshold is activated when the reading changes from a value higher than the threshold to a value lower than the threshold.
Decreasing,
/// This threshold is activated when either the Increasing or Decreasing conditions are met.
Either,
/// 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.
Disabled,
}
#[allow(clippy::derivable_impls)]
impl Default for ThresholdActivation {
fn default() -> ThresholdActivation {
ThresholdActivation::Increasing
}
}
impl crate::Metadata<'static> for ThresholdActivation {
const JSON_SCHEMA: &'static str = "Triggers.v1_3_1.json";
}