pub struct MetricDimension {
pub dimension_name: String,
pub operator: Option<String>,
}Expand description
The dimension of a metric.
Fields§
§dimension_name: StringA unique identifier for the dimension.
operator: Option<String>Defines how the dimensionValues of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.
Trait Implementations§
Source§impl Clone for MetricDimension
impl Clone for MetricDimension
Source§fn clone(&self) -> MetricDimension
fn clone(&self) -> MetricDimension
Returns a duplicate of the value. Read more
1.0.0 · 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 MetricDimension
impl Debug for MetricDimension
Source§impl Default for MetricDimension
impl Default for MetricDimension
Source§fn default() -> MetricDimension
fn default() -> MetricDimension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricDimension
impl<'de> Deserialize<'de> for MetricDimension
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 PartialEq for MetricDimension
impl PartialEq for MetricDimension
Source§impl Serialize for MetricDimension
impl Serialize for MetricDimension
impl StructuralPartialEq for MetricDimension
Auto Trait Implementations§
impl Freeze for MetricDimension
impl RefUnwindSafe for MetricDimension
impl Send for MetricDimension
impl Sync for MetricDimension
impl Unpin for MetricDimension
impl UnwindSafe for MetricDimension
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