redfish_codegen/models/metric_report_definition/v1_4_3/report_updates_enum.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// Handling of subsequent metric reports when a metric report exists.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum ReportUpdatesEnum {
7 /// This value shall indicate the service overwrites the metric report referenced by the MetricReport property.
8 Overwrite,
9 /// This value shall indicate the service appends new information to the metric report referenced by the MetricReport property. The service shall overwrite entries in the metric report with new entries when the metric report has reached its maximum capacity.
10 AppendWrapsWhenFull,
11 /// This value shall indicate the service appends new information to the metric report referenced by the MetricReport property. The service shall stop adding entries when the metric report has reached its maximum capacity. The State property within Status should be set to `Disabled` and the MetricReportDefinitionEnabled property should be set to `false` when the append limit is reached.
12 AppendStopsWhenFull,
13 /// This value shall indicate the service creates a new metric report resource, whose Id property is a service-defined identifier concatenated with the timestamp. The metric report referenced by the MetricReport property shall reference the metric report most recently created by this metric report definition.
14 NewReport,
15}
16
17#[allow(clippy::derivable_impls)]
18impl Default for ReportUpdatesEnum {
19 fn default() -> ReportUpdatesEnum {
20 ReportUpdatesEnum::Overwrite
21 }
22}
23
24impl crate::Metadata<'static> for ReportUpdatesEnum {
25 const JSON_SCHEMA: &'static str = "MetricReportDefinition.v1_4_3.json";
26}