pub struct MetricValue {
pub metric_definition: Option<IdRef>,
pub metric_id: Option<String>,
pub metric_property: Option<String>,
pub metric_value: Option<String>,
pub timestamp: Option<String>,
}
Expand description
Properties that capture a metric value and other associated information.
Fields§
§metric_definition: Option<IdRef>
§metric_id: Option<String>
The metric definitions identifier for this metric.
metric_property: Option<String>
The URI for the property from which this metric is derived.
metric_value: Option<String>
The metric value, as a string.
timestamp: Option<String>
The date and time when the metric is obtained. A management application can establish a time series of metric data by retrieving the instances of metric value and sorting them according to their timestamp.
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
Source§fn clone(&self) -> MetricValue
fn clone(&self) -> MetricValue
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetricValue
impl Debug for MetricValue
Source§impl Default for MetricValue
impl Default for MetricValue
Source§impl<'de> Deserialize<'de> for MetricValue
impl<'de> Deserialize<'de> for MetricValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Metadata<'static> for MetricValue
impl Metadata<'static> for MetricValue
Source§const JSON_SCHEMA: &'static str = "TelemetryService.v1_3_2.json"
const JSON_SCHEMA: &'static str = "TelemetryService.v1_3_2.json"
Name of the json-schema file that describes the entity that implements this trait. Should
be only the file name, so that it can be resolved relative to the URL of the redfish
service, or the public Redfish schema index.
Auto Trait Implementations§
impl Freeze for MetricValue
impl RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnwindSafe for MetricValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more