Struct aws_sdk_iot::input::CreateFleetMetricInput
source · [−]#[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
sourceimpl CreateFleetMetricInput
impl CreateFleetMetricInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFleetMetric, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFleetMetric, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateFleetMetric
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateFleetMetricInput
sourceimpl 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.
Trait Implementations
sourceimpl Clone for CreateFleetMetricInput
impl Clone for CreateFleetMetricInput
sourcefn clone(&self) -> CreateFleetMetricInput
fn clone(&self) -> CreateFleetMetricInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateFleetMetricInput
impl Debug for CreateFleetMetricInput
sourceimpl PartialEq<CreateFleetMetricInput> for CreateFleetMetricInput
impl PartialEq<CreateFleetMetricInput> for CreateFleetMetricInput
sourcefn eq(&self, other: &CreateFleetMetricInput) -> bool
fn eq(&self, other: &CreateFleetMetricInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateFleetMetricInput) -> bool
fn ne(&self, other: &CreateFleetMetricInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateFleetMetricInput
Auto Trait Implementations
impl RefUnwindSafe for CreateFleetMetricInput
impl Send for CreateFleetMetricInput
impl Sync for CreateFleetMetricInput
impl Unpin for CreateFleetMetricInput
impl UnwindSafe for CreateFleetMetricInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more