pub struct AggregateQuery {
pub name: String,
pub function: String,
pub bucket_size: Option<i64>,
pub start_time: Option<i64>,
pub end_time: Option<i64>,
}Expand description
Query parameters for aggregating metrics
Fields§
§name: StringMetric name to aggregate
function: StringAggregation function (sum, avg, min, max)
bucket_size: Option<i64>Time bucket size in seconds (for time-series aggregation)
start_time: Option<i64>Start time (nanoseconds since Unix epoch)
end_time: Option<i64>End time (nanoseconds since Unix epoch)
Trait Implementations§
Source§impl Debug for AggregateQuery
impl Debug for AggregateQuery
Source§impl<'de> Deserialize<'de> for AggregateQuery
impl<'de> Deserialize<'de> for AggregateQuery
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 IntoParams for AggregateQuery
impl IntoParams for AggregateQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Auto Trait Implementations§
impl Freeze for AggregateQuery
impl RefUnwindSafe for AggregateQuery
impl Send for AggregateQuery
impl Sync for AggregateQuery
impl Unpin for AggregateQuery
impl UnsafeUnpin for AggregateQuery
impl UnwindSafe for AggregateQuery
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