pub struct CapacityQuery {
pub matcher: Option<TagMatcher>,
pub group_by: GroupBy,
pub max_rtt_ms: Option<u32>,
pub sum_axis_key: Option<String>,
pub limit: usize,
}Expand description
Operator-facing query shape for Fold::capacity_ranking.
Fields§
§matcher: Option<TagMatcher>Pre-filter on entries before grouping. None includes every
non-faulty entry.
group_by: GroupByHow to bucket matching entries.
max_rtt_ms: Option<u32>Drop entries whose publisher’s RTT exceeds this. None =
no RTT filter (consider every reachable non-faulty entry).
sum_axis_key: Option<String>Optional canonical axis-key string to sum across each
bucket’s entries (e.g. "hardware.gpu.count" for total
GPU capacity per bucket). None leaves
CapacityRow::summed_capacity as None.
limit: usizeTop-N buckets by available descending. 0 = no
truncation.
Trait Implementations§
Source§impl Clone for CapacityQuery
impl Clone for CapacityQuery
Source§fn clone(&self) -> CapacityQuery
fn clone(&self) -> CapacityQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapacityQuery
impl Debug for CapacityQuery
Source§impl Default for CapacityQuery
impl Default for CapacityQuery
Source§fn default() -> CapacityQuery
fn default() -> CapacityQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapacityQuery
impl<'de> Deserialize<'de> for CapacityQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapacityQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapacityQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CapacityQuery
Source§impl PartialEq for CapacityQuery
impl PartialEq for CapacityQuery
Source§fn eq(&self, other: &CapacityQuery) -> bool
fn eq(&self, other: &CapacityQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapacityQuery
impl Serialize for CapacityQuery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CapacityQuery
Auto Trait Implementations§
impl Freeze for CapacityQuery
impl RefUnwindSafe for CapacityQuery
impl Send for CapacityQuery
impl Sync for CapacityQuery
impl Unpin for CapacityQuery
impl UnsafeUnpin for CapacityQuery
impl UnwindSafe for CapacityQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.