#[non_exhaustive]pub struct NamedEntityDefinitionMetricBuilder { /* private fields */ }Expand description
A builder for NamedEntityDefinitionMetric.
Implementations§
source§impl NamedEntityDefinitionMetricBuilder
impl NamedEntityDefinitionMetricBuilder
sourcepub fn aggregation(self, input: NamedEntityAggType) -> Self
pub fn aggregation(self, input: NamedEntityAggType) -> Self
The aggregation of a named entity. Valid values for this structure are SUM, MIN, MAX, COUNT, AVERAGE, DISTINCT_COUNT, STDEV, STDEVP, VAR, VARP, PERCENTILE, MEDIAN, and CUSTOM.
sourcepub fn set_aggregation(self, input: Option<NamedEntityAggType>) -> Self
pub fn set_aggregation(self, input: Option<NamedEntityAggType>) -> Self
The aggregation of a named entity. Valid values for this structure are SUM, MIN, MAX, COUNT, AVERAGE, DISTINCT_COUNT, STDEV, STDEVP, VAR, VARP, PERCENTILE, MEDIAN, and CUSTOM.
sourcepub fn get_aggregation(&self) -> &Option<NamedEntityAggType>
pub fn get_aggregation(&self) -> &Option<NamedEntityAggType>
The aggregation of a named entity. Valid values for this structure are SUM, MIN, MAX, COUNT, AVERAGE, DISTINCT_COUNT, STDEV, STDEVP, VAR, VARP, PERCENTILE, MEDIAN, and CUSTOM.
sourcepub fn aggregation_function_parameters(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn aggregation_function_parameters( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to aggregation_function_parameters.
To override the contents of this collection use set_aggregation_function_parameters.
The additional parameters for an aggregation function.
sourcepub fn set_aggregation_function_parameters(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_aggregation_function_parameters( self, input: Option<HashMap<String, String>> ) -> Self
The additional parameters for an aggregation function.
sourcepub fn get_aggregation_function_parameters(
&self
) -> &Option<HashMap<String, String>>
pub fn get_aggregation_function_parameters( &self ) -> &Option<HashMap<String, String>>
The additional parameters for an aggregation function.
sourcepub fn build(self) -> NamedEntityDefinitionMetric
pub fn build(self) -> NamedEntityDefinitionMetric
Consumes the builder and constructs a NamedEntityDefinitionMetric.
Trait Implementations§
source§impl Clone for NamedEntityDefinitionMetricBuilder
impl Clone for NamedEntityDefinitionMetricBuilder
source§fn clone(&self) -> NamedEntityDefinitionMetricBuilder
fn clone(&self) -> NamedEntityDefinitionMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for NamedEntityDefinitionMetricBuilder
impl Default for NamedEntityDefinitionMetricBuilder
source§fn default() -> NamedEntityDefinitionMetricBuilder
fn default() -> NamedEntityDefinitionMetricBuilder
source§impl PartialEq for NamedEntityDefinitionMetricBuilder
impl PartialEq for NamedEntityDefinitionMetricBuilder
source§fn eq(&self, other: &NamedEntityDefinitionMetricBuilder) -> bool
fn eq(&self, other: &NamedEntityDefinitionMetricBuilder) -> bool
self and other values to be equal, and is used
by ==.