Struct aws_sdk_iotsitewise::types::builders::TumblingWindowBuilder
source · #[non_exhaustive]pub struct TumblingWindowBuilder { /* private fields */ }Expand description
A builder for TumblingWindow.
Implementations§
source§impl TumblingWindowBuilder
impl TumblingWindowBuilder
sourcepub fn interval(self, input: impl Into<String>) -> Self
pub fn interval(self, input: impl Into<String>) -> Self
The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.
IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on.
When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.
This field is required.sourcepub fn set_interval(self, input: Option<String>) -> Self
pub fn set_interval(self, input: Option<String>) -> Self
The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.
IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on.
When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.
sourcepub fn get_interval(&self) -> &Option<String>
pub fn get_interval(&self) -> &Option<String>
The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.
IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on.
When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.
sourcepub fn offset(self, input: impl Into<String>) -> Self
pub fn offset(self, input: impl Into<String>) -> Self
The offset for the tumbling window. The offset parameter accepts the following:
-
The offset time.
For example, if you specify
18hforoffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
-
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
-
-
The ISO 8601 format.
For example, if you specify
PT18Hforoffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
-
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
-
-
The 24-hour clock.
For example, if you specify
00:03:00foroffset,5mforinterval, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC). -
The offset time zone.
For example, if you specify
2021-07-23T18:00-08foroffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.
-
If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.
-
sourcepub fn set_offset(self, input: Option<String>) -> Self
pub fn set_offset(self, input: Option<String>) -> Self
The offset for the tumbling window. The offset parameter accepts the following:
-
The offset time.
For example, if you specify
18hforoffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
-
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
-
-
The ISO 8601 format.
For example, if you specify
PT18Hforoffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
-
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
-
-
The 24-hour clock.
For example, if you specify
00:03:00foroffset,5mforinterval, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC). -
The offset time zone.
For example, if you specify
2021-07-23T18:00-08foroffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.
-
If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.
-
sourcepub fn get_offset(&self) -> &Option<String>
pub fn get_offset(&self) -> &Option<String>
The offset for the tumbling window. The offset parameter accepts the following:
-
The offset time.
For example, if you specify
18hforoffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
-
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
-
-
The ISO 8601 format.
For example, if you specify
PT18Hforoffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
-
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
-
-
The 24-hour clock.
For example, if you specify
00:03:00foroffset,5mforinterval, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC). -
The offset time zone.
For example, if you specify
2021-07-23T18:00-08foroffsetand1dforinterval, IoT SiteWise aggregates data in one of the following ways:-
If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.
-
If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.
-
sourcepub fn build(self) -> Result<TumblingWindow, BuildError>
pub fn build(self) -> Result<TumblingWindow, BuildError>
Consumes the builder and constructs a TumblingWindow.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TumblingWindowBuilder
impl Clone for TumblingWindowBuilder
source§fn clone(&self) -> TumblingWindowBuilder
fn clone(&self) -> TumblingWindowBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TumblingWindowBuilder
impl Debug for TumblingWindowBuilder
source§impl Default for TumblingWindowBuilder
impl Default for TumblingWindowBuilder
source§fn default() -> TumblingWindowBuilder
fn default() -> TumblingWindowBuilder
source§impl PartialEq for TumblingWindowBuilder
impl PartialEq for TumblingWindowBuilder
source§fn eq(&self, other: &TumblingWindowBuilder) -> bool
fn eq(&self, other: &TumblingWindowBuilder) -> bool
self and other values to be equal, and is used
by ==.