Skip to main content

aws_sdk_appmonetization/client/
get_app_usage_summary.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 [`GetAppUsageSummary`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
7    ///   - [`started_at(DateTime)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::started_at) / [`set_started_at(Option<DateTime>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_started_at):<br>required: **true**<br>Start of the reporting window.<br>
8    ///   - [`ended_at(DateTime)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::ended_at) / [`set_ended_at(Option<DateTime>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_ended_at):<br>required: **true**<br>End of the reporting window. Must be after startedAt, at most 720 hours after it, and not in the future.<br>
9    ///   - [`group_by(UsageSummaryDimension)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::group_by) / [`set_group_by(Option<UsageSummaryDimension>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_group_by):<br>required: **false**<br>The breakdown dimension. Defaults to METRIC when omitted.<br>
10    ///   - [`filter_by(UsageSummaryDimension, Vec::<String>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::filter_by) / [`set_filter_by(Option<HashMap::<UsageSummaryDimension, Vec::<String>>>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_filter_by):<br>required: **false**<br>Filter constraints keyed by dimension. A filter dimension may differ from groupBy.<br>
11    ///   - [`scope(RequestScope)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::set_scope):<br>required: **true**<br>Required. The environment: live or sandbox.<br>
12    /// - On success, responds with [`GetAppUsageSummaryOutput`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput) with field(s):
13    ///   - [`app_id(String)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::app_id): The ID of the app.
14    ///   - [`group_by(UsageSummaryDimension)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::group_by): The dimension that the summary is grouped by.
15    ///   - [`total_events(i64)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::total_events): The total number of usage events counted across the window.
16    ///   - [`groups(Vec::<UsageGroup>)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::groups): One row per value of the groupBy dimension (usage per metric, user, or UTC day).
17    ///   - [`started_at(DateTime)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::started_at): Start of the reporting window the summary covers.
18    ///   - [`ended_at(DateTime)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::ended_at): End of the reporting window the summary covers.
19    ///   - [`updated_at(DateTime)`](crate::operation::get_app_usage_summary::GetAppUsageSummaryOutput::updated_at): The time the summary was last updated.
20    /// - On failure, responds with [`SdkError<GetAppUsageSummaryError>`](crate::operation::get_app_usage_summary::GetAppUsageSummaryError)
21    pub fn get_app_usage_summary(&self) -> crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder {
22        crate::operation::get_app_usage_summary::builders::GetAppUsageSummaryFluentBuilder::new(self.handle.clone())
23    }
24}