pub struct CardinalityReport {
pub timestamp: UnixTimestamp,
pub organization_id: Option<OrganizationId>,
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§
§timestamp: UnixTimestamp
Time for which the cardinality limit was enforced.
organization_id: Option<OrganizationId>
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§impl PartialOrd for CardinalityReport
impl PartialOrd for CardinalityReport
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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
key
and return true
if they are equal.§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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more