#[non_exhaustive]pub struct GetInterpolatedAssetPropertyValuesInputBuilder { /* private fields */ }Expand description
A builder for GetInterpolatedAssetPropertyValuesInput.
Implementations§
Source§impl GetInterpolatedAssetPropertyValuesInputBuilder
impl GetInterpolatedAssetPropertyValuesInputBuilder
Sourcepub fn set_asset_id(self, input: Option<String>) -> Self
pub fn set_asset_id(self, input: Option<String>) -> Self
The ID of the asset, in UUID format.
Sourcepub fn get_asset_id(&self) -> &Option<String>
pub fn get_asset_id(&self) -> &Option<String>
The ID of the asset, in UUID format.
Sourcepub fn property_id(self, input: impl Into<String>) -> Self
pub fn property_id(self, input: impl Into<String>) -> Self
The ID of the asset property, in UUID format.
Sourcepub fn set_property_id(self, input: Option<String>) -> Self
pub fn set_property_id(self, input: Option<String>) -> Self
The ID of the asset property, in UUID format.
Sourcepub fn get_property_id(&self) -> &Option<String>
pub fn get_property_id(&self) -> &Option<String>
The ID of the asset property, in UUID format.
Sourcepub fn property_alias(self, input: impl Into<String>) -> Self
pub fn property_alias(self, input: impl Into<String>) -> Self
The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
Sourcepub fn set_property_alias(self, input: Option<String>) -> Self
pub fn set_property_alias(self, input: Option<String>) -> Self
The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
Sourcepub fn get_property_alias(&self) -> &Option<String>
pub fn get_property_alias(&self) -> &Option<String>
The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
Sourcepub fn start_time_in_seconds(self, input: i64) -> Self
pub fn start_time_in_seconds(self, input: i64) -> Self
The exclusive start of the range from which to interpolate data, expressed in seconds in Unix epoch time.
This field is required.Sourcepub fn set_start_time_in_seconds(self, input: Option<i64>) -> Self
pub fn set_start_time_in_seconds(self, input: Option<i64>) -> Self
The exclusive start of the range from which to interpolate data, expressed in seconds in Unix epoch time.
Sourcepub fn get_start_time_in_seconds(&self) -> &Option<i64>
pub fn get_start_time_in_seconds(&self) -> &Option<i64>
The exclusive start of the range from which to interpolate data, expressed in seconds in Unix epoch time.
Sourcepub fn start_time_offset_in_nanos(self, input: i32) -> Self
pub fn start_time_offset_in_nanos(self, input: i32) -> Self
The nanosecond offset converted from startTimeInSeconds.
Sourcepub fn set_start_time_offset_in_nanos(self, input: Option<i32>) -> Self
pub fn set_start_time_offset_in_nanos(self, input: Option<i32>) -> Self
The nanosecond offset converted from startTimeInSeconds.
Sourcepub fn get_start_time_offset_in_nanos(&self) -> &Option<i32>
pub fn get_start_time_offset_in_nanos(&self) -> &Option<i32>
The nanosecond offset converted from startTimeInSeconds.
Sourcepub fn end_time_in_seconds(self, input: i64) -> Self
pub fn end_time_in_seconds(self, input: i64) -> Self
The inclusive end of the range from which to interpolate data, expressed in seconds in Unix epoch time.
This field is required.Sourcepub fn set_end_time_in_seconds(self, input: Option<i64>) -> Self
pub fn set_end_time_in_seconds(self, input: Option<i64>) -> Self
The inclusive end of the range from which to interpolate data, expressed in seconds in Unix epoch time.
Sourcepub fn get_end_time_in_seconds(&self) -> &Option<i64>
pub fn get_end_time_in_seconds(&self) -> &Option<i64>
The inclusive end of the range from which to interpolate data, expressed in seconds in Unix epoch time.
Sourcepub fn end_time_offset_in_nanos(self, input: i32) -> Self
pub fn end_time_offset_in_nanos(self, input: i32) -> Self
The nanosecond offset converted from endTimeInSeconds.
Sourcepub fn set_end_time_offset_in_nanos(self, input: Option<i32>) -> Self
pub fn set_end_time_offset_in_nanos(self, input: Option<i32>) -> Self
The nanosecond offset converted from endTimeInSeconds.
Sourcepub fn get_end_time_offset_in_nanos(&self) -> &Option<i32>
pub fn get_end_time_offset_in_nanos(&self) -> &Option<i32>
The nanosecond offset converted from endTimeInSeconds.
Sourcepub fn quality(self, input: Quality) -> Self
pub fn quality(self, input: Quality) -> Self
The quality of the asset property value. You can use this parameter as a filter to choose only the asset property values that have a specific quality.
This field is required.Sourcepub fn set_quality(self, input: Option<Quality>) -> Self
pub fn set_quality(self, input: Option<Quality>) -> Self
The quality of the asset property value. You can use this parameter as a filter to choose only the asset property values that have a specific quality.
Sourcepub fn get_quality(&self) -> &Option<Quality>
pub fn get_quality(&self) -> &Option<Quality>
The quality of the asset property value. You can use this parameter as a filter to choose only the asset property values that have a specific quality.
Sourcepub fn interval_in_seconds(self, input: i64) -> Self
pub fn interval_in_seconds(self, input: i64) -> Self
The time interval in seconds over which to interpolate data. Each interval starts when the previous one ends.
This field is required.Sourcepub fn set_interval_in_seconds(self, input: Option<i64>) -> Self
pub fn set_interval_in_seconds(self, input: Option<i64>) -> Self
The time interval in seconds over which to interpolate data. Each interval starts when the previous one ends.
Sourcepub fn get_interval_in_seconds(&self) -> &Option<i64>
pub fn get_interval_in_seconds(&self) -> &Option<i64>
The time interval in seconds over which to interpolate data. Each interval starts when the previous one ends.
Sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to be used for the next set of paginated results.
Sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to be used for the next set of paginated results.
Sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to be used for the next set of paginated results.
Sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return for each paginated request. If not specified, the default value is 10.
Sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return for each paginated request. If not specified, the default value is 10.
Sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return for each paginated request. If not specified, the default value is 10.
Sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The interpolation type.
Valid values: LINEAR_INTERPOLATION | LOCF_INTERPOLATION
-
LINEAR_INTERPOLATION– Estimates missing data using linear interpolation.For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated value on July 2, 2021, at 9 AM, the second interpolated value on July 3, 2021, at 9 AM, and so on.
-
LOCF_INTERPOLATION– Estimates missing data using last observation carried forward interpolationIf no data point is found for an interval, IoT SiteWise returns the last observed data point for the previous interval and carries forward this interpolated value until a new data point is found.
For example, you can get the state of an on-off valve every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the last observed data point between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated value. If a data point isn't found after 9 AM on July 2, 2021, IoT SiteWise uses the same interpolated value for the rest of the days.
Sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The interpolation type.
Valid values: LINEAR_INTERPOLATION | LOCF_INTERPOLATION
-
LINEAR_INTERPOLATION– Estimates missing data using linear interpolation.For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated value on July 2, 2021, at 9 AM, the second interpolated value on July 3, 2021, at 9 AM, and so on.
-
LOCF_INTERPOLATION– Estimates missing data using last observation carried forward interpolationIf no data point is found for an interval, IoT SiteWise returns the last observed data point for the previous interval and carries forward this interpolated value until a new data point is found.
For example, you can get the state of an on-off valve every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the last observed data point between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated value. If a data point isn't found after 9 AM on July 2, 2021, IoT SiteWise uses the same interpolated value for the rest of the days.
Sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The interpolation type.
Valid values: LINEAR_INTERPOLATION | LOCF_INTERPOLATION
-
LINEAR_INTERPOLATION– Estimates missing data using linear interpolation.For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated value on July 2, 2021, at 9 AM, the second interpolated value on July 3, 2021, at 9 AM, and so on.
-
LOCF_INTERPOLATION– Estimates missing data using last observation carried forward interpolationIf no data point is found for an interval, IoT SiteWise returns the last observed data point for the previous interval and carries forward this interpolated value until a new data point is found.
For example, you can get the state of an on-off valve every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the last observed data point between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated value. If a data point isn't found after 9 AM on July 2, 2021, IoT SiteWise uses the same interpolated value for the rest of the days.
Sourcepub fn interval_window_in_seconds(self, input: i64) -> Self
pub fn interval_window_in_seconds(self, input: i64) -> Self
The query interval for the window, in seconds. IoT SiteWise computes each interpolated value by using data points from the timestamp of each interval, minus the window to the timestamp of each interval plus the window. If not specified, the window ranges between the start time minus the interval and the end time plus the interval.
-
If you specify a value for the
intervalWindowInSecondsparameter, the value for thetypeparameter must beLINEAR_INTERPOLATION. -
If a data point isn't found during the specified query window, IoT SiteWise won't return an interpolated value for the interval. This indicates that there's a gap in the ingested data points.
For example, you can get the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 2, 2021 to compute the first interpolated value. Next, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 3, 2021 to compute the second interpolated value, and so on.
Sourcepub fn set_interval_window_in_seconds(self, input: Option<i64>) -> Self
pub fn set_interval_window_in_seconds(self, input: Option<i64>) -> Self
The query interval for the window, in seconds. IoT SiteWise computes each interpolated value by using data points from the timestamp of each interval, minus the window to the timestamp of each interval plus the window. If not specified, the window ranges between the start time minus the interval and the end time plus the interval.
-
If you specify a value for the
intervalWindowInSecondsparameter, the value for thetypeparameter must beLINEAR_INTERPOLATION. -
If a data point isn't found during the specified query window, IoT SiteWise won't return an interpolated value for the interval. This indicates that there's a gap in the ingested data points.
For example, you can get the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 2, 2021 to compute the first interpolated value. Next, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 3, 2021 to compute the second interpolated value, and so on.
Sourcepub fn get_interval_window_in_seconds(&self) -> &Option<i64>
pub fn get_interval_window_in_seconds(&self) -> &Option<i64>
The query interval for the window, in seconds. IoT SiteWise computes each interpolated value by using data points from the timestamp of each interval, minus the window to the timestamp of each interval plus the window. If not specified, the window ranges between the start time minus the interval and the end time plus the interval.
-
If you specify a value for the
intervalWindowInSecondsparameter, the value for thetypeparameter must beLINEAR_INTERPOLATION. -
If a data point isn't found during the specified query window, IoT SiteWise won't return an interpolated value for the interval. This indicates that there's a gap in the ingested data points.
For example, you can get the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 2, 2021 to compute the first interpolated value. Next, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 3, 2021 to compute the second interpolated value, and so on.
Sourcepub fn build(
self,
) -> Result<GetInterpolatedAssetPropertyValuesInput, BuildError>
pub fn build( self, ) -> Result<GetInterpolatedAssetPropertyValuesInput, BuildError>
Consumes the builder and constructs a GetInterpolatedAssetPropertyValuesInput.
Source§impl GetInterpolatedAssetPropertyValuesInputBuilder
impl GetInterpolatedAssetPropertyValuesInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<GetInterpolatedAssetPropertyValuesOutput, SdkError<GetInterpolatedAssetPropertyValuesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<GetInterpolatedAssetPropertyValuesOutput, SdkError<GetInterpolatedAssetPropertyValuesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for GetInterpolatedAssetPropertyValuesInputBuilder
impl Clone for GetInterpolatedAssetPropertyValuesInputBuilder
Source§fn clone(&self) -> GetInterpolatedAssetPropertyValuesInputBuilder
fn clone(&self) -> GetInterpolatedAssetPropertyValuesInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GetInterpolatedAssetPropertyValuesInputBuilder
impl Default for GetInterpolatedAssetPropertyValuesInputBuilder
Source§fn default() -> GetInterpolatedAssetPropertyValuesInputBuilder
fn default() -> GetInterpolatedAssetPropertyValuesInputBuilder
Source§impl PartialEq for GetInterpolatedAssetPropertyValuesInputBuilder
impl PartialEq for GetInterpolatedAssetPropertyValuesInputBuilder
Source§fn eq(&self, other: &GetInterpolatedAssetPropertyValuesInputBuilder) -> bool
fn eq(&self, other: &GetInterpolatedAssetPropertyValuesInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetInterpolatedAssetPropertyValuesInputBuilder
Auto Trait Implementations§
impl Freeze for GetInterpolatedAssetPropertyValuesInputBuilder
impl RefUnwindSafe for GetInterpolatedAssetPropertyValuesInputBuilder
impl Send for GetInterpolatedAssetPropertyValuesInputBuilder
impl Sync for GetInterpolatedAssetPropertyValuesInputBuilder
impl Unpin for GetInterpolatedAssetPropertyValuesInputBuilder
impl UnwindSafe for GetInterpolatedAssetPropertyValuesInputBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);