redfish_codegen/models/triggers/v1_3_1/trigger_action_enum.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// The actions to perform when a trigger condition is met.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum TriggerActionEnum {
7 /// This value indicates that when a trigger condition is met, the service shall log the occurrence of the condition to the log that the LogService property in the telemetry service resource describes.
8 LogToLogService,
9 /// This value indicates that when a trigger condition is met, the service shall send an event to subscribers.
10 RedfishEvent,
11 /// This value indicates that when a trigger condition is met, the service shall force the metric reports managed by the MetricReportDefinitions specified by the MetricReportDefinitions property to be updated, regardless of the MetricReportDefinitionType property value. The actions specified in the ReportActions property of each MetricReportDefinition shall be performed. Added in version v1_1_0.
12 RedfishMetricReport,
13}
14
15#[allow(clippy::derivable_impls)]
16impl Default for TriggerActionEnum {
17 fn default() -> TriggerActionEnum {
18 TriggerActionEnum::LogToLogService
19 }
20}
21
22impl crate::Metadata<'static> for TriggerActionEnum {
23 const JSON_SCHEMA: &'static str = "Triggers.v1_3_1.json";
24}