#[non_exhaustive]pub struct CreateFleetMetricInput {
pub metric_name: Option<String>,
pub query_string: Option<String>,
pub aggregation_type: Option<AggregationType>,
pub period: Option<i32>,
pub aggregation_field: Option<String>,
pub description: Option<String>,
pub query_version: Option<String>,
pub index_name: Option<String>,
pub unit: Option<FleetMetricUnit>,
pub tags: Option<Vec<Tag>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metric_name: Option<String>The name of the fleet metric to create.
query_string: Option<String>The search query string.
aggregation_type: Option<AggregationType>The type of the aggregation query.
period: Option<i32>The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
aggregation_field: Option<String>The field to aggregate.
description: Option<String>The fleet metric description.
query_version: Option<String>The query version.
index_name: Option<String>The name of the index to search.
unit: Option<FleetMetricUnit>Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
Metadata, which can be used to manage the fleet metric.
Implementations§
source§impl CreateFleetMetricInput
impl CreateFleetMetricInput
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the fleet metric to create.
sourcepub fn query_string(&self) -> Option<&str>
pub fn query_string(&self) -> Option<&str>
The search query string.
sourcepub fn aggregation_type(&self) -> Option<&AggregationType>
pub fn aggregation_type(&self) -> Option<&AggregationType>
The type of the aggregation query.
sourcepub fn period(&self) -> Option<i32>
pub fn period(&self) -> Option<i32>
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
sourcepub fn aggregation_field(&self) -> Option<&str>
pub fn aggregation_field(&self) -> Option<&str>
The field to aggregate.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The fleet metric description.
sourcepub fn query_version(&self) -> Option<&str>
pub fn query_version(&self) -> Option<&str>
The query version.
sourcepub fn index_name(&self) -> Option<&str>
pub fn index_name(&self) -> Option<&str>
The name of the index to search.
sourcepub fn unit(&self) -> Option<&FleetMetricUnit>
pub fn unit(&self) -> Option<&FleetMetricUnit>
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
Metadata, which can be used to manage the fleet metric.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
source§impl CreateFleetMetricInput
impl CreateFleetMetricInput
sourcepub fn builder() -> CreateFleetMetricInputBuilder
pub fn builder() -> CreateFleetMetricInputBuilder
Creates a new builder-style object to manufacture CreateFleetMetricInput.
Trait Implementations§
source§impl Clone for CreateFleetMetricInput
impl Clone for CreateFleetMetricInput
source§fn clone(&self) -> CreateFleetMetricInput
fn clone(&self) -> CreateFleetMetricInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateFleetMetricInput
impl Debug for CreateFleetMetricInput
source§impl PartialEq for CreateFleetMetricInput
impl PartialEq for CreateFleetMetricInput
source§fn eq(&self, other: &CreateFleetMetricInput) -> bool
fn eq(&self, other: &CreateFleetMetricInput) -> bool
self and other values to be equal, and is used
by ==.