pub struct LastStatsResponse {
pub stime: Option<String>,
pub etime: Option<String>,
pub interval: Option<String>,
pub metrics: Value,
}
Expand description
Last stats response for single resource Response for last stats endpoint - the API returns metrics directly
Fields§
§stime: Option<String>
Start time of the stats interval
etime: Option<String>
End time of the stats interval
interval: Option<String>
Interval duration (e.g., “5min”, “1hour”)
metrics: Value
All metric values for the last interval (dynamic field names)
Trait Implementations§
Source§impl Clone for LastStatsResponse
impl Clone for LastStatsResponse
Source§fn clone(&self) -> LastStatsResponse
fn clone(&self) -> LastStatsResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LastStatsResponse
impl Debug for LastStatsResponse
Source§impl<'de> Deserialize<'de> for LastStatsResponse
impl<'de> Deserialize<'de> for LastStatsResponse
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
Auto Trait Implementations§
impl Freeze for LastStatsResponse
impl RefUnwindSafe for LastStatsResponse
impl Send for LastStatsResponse
impl Sync for LastStatsResponse
impl Unpin for LastStatsResponse
impl UnwindSafe for LastStatsResponse
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