Struct relay_cardinality::limiter::CardinalityReport
source · pub struct CardinalityReport {
pub organization_id: Option<u64>,
pub project_id: Option<ProjectId>,
pub metric_type: Option<MetricType>,
pub metric_name: Option<MetricName>,
pub cardinality: u32,
}
Expand description
Cardinality report for a specific limit.
Contains scoping information for the enforced limit and the current cardinality.
If all of the scoping information is None
, the limit is a global cardinality limit.
Fields§
§organization_id: Option<u64>
Organization id for which the cardinality limit was applied.
Only available if the the limit was at least scoped to
CardinalityScope::Organization
.
project_id: Option<ProjectId>
Project id for which the cardinality limit was applied.
Only available if the the limit was at least scoped to
CardinalityScope::Project
.
metric_type: Option<MetricType>
Metric type for which the cardinality limit was applied.
Only available if the the limit was scoped to
CardinalityScope::Type
.
metric_name: Option<MetricName>
Metric name for which the cardinality limit was applied.
Only available if the the limit was scoped to
CardinalityScope::Name
.
cardinality: u32
The current cardinality.
Trait Implementations§
source§impl Clone for CardinalityReport
impl Clone for CardinalityReport
source§fn clone(&self) -> CardinalityReport
fn clone(&self) -> CardinalityReport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CardinalityReport
impl Debug for CardinalityReport
source§impl Ord for CardinalityReport
impl Ord for CardinalityReport
source§fn cmp(&self, other: &CardinalityReport) -> Ordering
fn cmp(&self, other: &CardinalityReport) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CardinalityReport
impl PartialEq for CardinalityReport
source§fn eq(&self, other: &CardinalityReport) -> bool
fn eq(&self, other: &CardinalityReport) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CardinalityReport
impl PartialOrd for CardinalityReport
source§fn partial_cmp(&self, other: &CardinalityReport) -> Option<Ordering>
fn partial_cmp(&self, other: &CardinalityReport) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CardinalityReport
impl StructuralPartialEq for CardinalityReport
Auto Trait Implementations§
impl Freeze for CardinalityReport
impl RefUnwindSafe for CardinalityReport
impl Send for CardinalityReport
impl Sync for CardinalityReport
impl Unpin for CardinalityReport
impl UnwindSafe for CardinalityReport
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.