pub struct StatsHistoryResponse {
pub buckets: Vec<StatsHistoryBucketResponse>,
pub granularity: HistoryGranularity,
pub period: HistoryPeriod,
pub workflow: Option<String>,
}Expand description
Time-bucketed historical statistics response.
§Examples
use ironflow_api::entities::StatsHistoryResponse;JSON schema
{
"description": "Time-bucketed historical statistics response.\n\n# Examples\n\n```\nuse ironflow_api::entities::StatsHistoryResponse;\n```",
"type": "object",
"required": [
"buckets",
"granularity",
"period"
],
"properties": {
"buckets": {
"description": "Every bucket of the period, zero-filled, sorted by time ascending.",
"type": "array",
"items": {
"$ref": "#/components/schemas/StatsHistoryBucketResponse"
}
},
"granularity": {
"$ref": "#/components/schemas/HistoryGranularity"
},
"period": {
"$ref": "#/components/schemas/HistoryPeriod"
},
"workflow": {
"description": "Workflow name filter, if applied.",
"type": [
"string",
"null"
]
}
}
}
```ignore
</details>Fields§
§buckets: Vec<StatsHistoryBucketResponse>Every bucket of the period, zero-filled, sorted by time ascending.
granularity: HistoryGranularity§period: HistoryPeriod§workflow: Option<String>Workflow name filter, if applied.
Implementations§
Source§impl StatsHistoryResponse
impl StatsHistoryResponse
pub fn builder() -> StatsHistoryResponse
Trait Implementations§
Source§impl Clone for StatsHistoryResponse
impl Clone for StatsHistoryResponse
Source§impl Debug for StatsHistoryResponse
impl Debug for StatsHistoryResponse
Source§impl<'de> Deserialize<'de> for StatsHistoryResponse
impl<'de> Deserialize<'de> for StatsHistoryResponse
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 From<StatsHistoryResponse> for StatsHistoryResponse
impl From<StatsHistoryResponse> for StatsHistoryResponse
Source§fn from(value: StatsHistoryResponse) -> Self
fn from(value: StatsHistoryResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for StatsHistoryResponse
impl Serialize for StatsHistoryResponse
Source§impl TryFrom<StatsHistoryResponse> for StatsHistoryResponse
impl TryFrom<StatsHistoryResponse> for StatsHistoryResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StatsHistoryResponse) -> Result<Self, ConversionError>
fn try_from(value: StatsHistoryResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StatsHistoryResponse
impl RefUnwindSafe for StatsHistoryResponse
impl Send for StatsHistoryResponse
impl Sync for StatsHistoryResponse
impl Unpin for StatsHistoryResponse
impl UnsafeUnpin for StatsHistoryResponse
impl UnwindSafe for StatsHistoryResponse
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