aws_sdk_iot/client/get_percentiles.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetPercentiles`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`index_name(impl Into<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::index_name) / [`set_index_name(Option<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::set_index_name):<br>required: **false**<br><p>The name of the index to search.</p><br>
7 /// - [`query_string(impl Into<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::query_string) / [`set_query_string(Option<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::set_query_string):<br>required: **true**<br><p>The search query string.</p><br>
8 /// - [`aggregation_field(impl Into<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::aggregation_field) / [`set_aggregation_field(Option<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::set_aggregation_field):<br>required: **false**<br><p>The field to aggregate.</p><br>
9 /// - [`query_version(impl Into<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::query_version) / [`set_query_version(Option<String>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::set_query_version):<br>required: **false**<br><p>The query version.</p><br>
10 /// - [`percents(f64)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::percents) / [`set_percents(Option<Vec::<f64>>)`](crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::set_percents):<br>required: **false**<br><p>The percentile groups returned.</p><br>
11 /// - On success, responds with [`GetPercentilesOutput`](crate::operation::get_percentiles::GetPercentilesOutput) with field(s):
12 /// - [`percentiles(Option<Vec::<PercentPair>>)`](crate::operation::get_percentiles::GetPercentilesOutput::percentiles): <p>The percentile values of the aggregated fields.</p>
13 /// - On failure, responds with [`SdkError<GetPercentilesError>`](crate::operation::get_percentiles::GetPercentilesError)
14 pub fn get_percentiles(&self) -> crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder {
15 crate::operation::get_percentiles::builders::GetPercentilesFluentBuilder::new(self.handle.clone())
16 }
17}