Struct rusoto_connect::GetMetricDataRequest
source · [−]pub struct GetMetricDataRequest {
pub end_time: f64,
pub filters: Filters,
pub groupings: Option<Vec<String>>,
pub historical_metrics: Vec<HistoricalMetric>,
pub instance_id: String,
pub max_results: Option<i64>,
pub next_token: Option<String>,
pub start_time: f64,
}
Fields
end_time: f64
The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the start time timestamp.
The time range between the start and end time must be less than 24 hours.
filters: Filters
The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the resources associated with the queues or channels included in the filter. You can include both queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.
To filter by Queues
, enter the queue ID/ARN, not the name of the queue.
groupings: Option<Vec<String>>
The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues.
If no grouping is specified, a summary of metrics for all queues is returned.
historical_metrics: Vec<HistoricalMetric>
The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical metrics are available. For a description of each metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.
This API does not support a contacts incoming metric (there's no CONTACTSINCOMING metric missing from the documented list).
- ABANDONTIME
-
Unit: SECONDS
Statistic: AVG
- AFTERCONTACTWORKTIME
-
Unit: SECONDS
Statistic: AVG
- APICONTACTSHANDLED
-
Unit: COUNT
Statistic: SUM
- CALLBACKCONTACTSHANDLED
-
Unit: COUNT
Statistic: SUM
- CONTACTSABANDONED
-
Unit: COUNT
Statistic: SUM
- CONTACTSAGENTHUNGUPFIRST
-
Unit: COUNT
Statistic: SUM
- CONTACTSCONSULTED
-
Unit: COUNT
Statistic: SUM
- CONTACTSHANDLED
-
Unit: COUNT
Statistic: SUM
- CONTACTSHANDLEDINCOMING
-
Unit: COUNT
Statistic: SUM
- CONTACTSHANDLEDOUTBOUND
-
Unit: COUNT
Statistic: SUM
- CONTACTSHOLDABANDONS
-
Unit: COUNT
Statistic: SUM
- CONTACTSMISSED
-
Unit: COUNT
Statistic: SUM
- CONTACTSQUEUED
-
Unit: COUNT
Statistic: SUM
- CONTACTSTRANSFERREDIN
-
Unit: COUNT
Statistic: SUM
- CONTACTSTRANSFERREDINFROMQUEUE
-
Unit: COUNT
Statistic: SUM
- CONTACTSTRANSFERREDOUT
-
Unit: COUNT
Statistic: SUM
- CONTACTSTRANSFERREDOUTFROMQUEUE
-
Unit: COUNT
Statistic: SUM
- HANDLETIME
-
Unit: SECONDS
Statistic: AVG
- HOLDTIME
-
Unit: SECONDS
Statistic: AVG
- INTERACTIONANDHOLDTIME
-
Unit: SECONDS
Statistic: AVG
- INTERACTIONTIME
-
Unit: SECONDS
Statistic: AVG
- OCCUPANCY
-
Unit: PERCENT
Statistic: AVG
- QUEUEANSWERTIME
-
Unit: SECONDS
Statistic: AVG
- QUEUEDTIME
-
Unit: SECONDS
Statistic: MAX
- SERVICELEVEL
-
You can include up to 20 SERVICE_LEVEL metrics in a request.
Unit: PERCENT
Statistic: AVG
Threshold: For
ThresholdValue
, enter any whole number from 1 to 604800 (inclusive), in seconds. ForComparison
, you must enterLT
(for "Less than").
instance_id: String
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
max_results: Option<i64>
The maximum number of results to return per page.
next_token: Option<String>
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
start_time: f64
The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15.
The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available only for 24 hours.
Trait Implementations
sourceimpl Clone for GetMetricDataRequest
impl Clone for GetMetricDataRequest
sourcefn clone(&self) -> GetMetricDataRequest
fn clone(&self) -> GetMetricDataRequest
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 GetMetricDataRequest
impl Debug for GetMetricDataRequest
sourceimpl Default for GetMetricDataRequest
impl Default for GetMetricDataRequest
sourcefn default() -> GetMetricDataRequest
fn default() -> GetMetricDataRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<GetMetricDataRequest> for GetMetricDataRequest
impl PartialEq<GetMetricDataRequest> for GetMetricDataRequest
sourcefn eq(&self, other: &GetMetricDataRequest) -> bool
fn eq(&self, other: &GetMetricDataRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GetMetricDataRequest) -> bool
fn ne(&self, other: &GetMetricDataRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for GetMetricDataRequest
impl Serialize for GetMetricDataRequest
impl StructuralPartialEq for GetMetricDataRequest
Auto Trait Implementations
impl RefUnwindSafe for GetMetricDataRequest
impl Send for GetMetricDataRequest
impl Sync for GetMetricDataRequest
impl Unpin for GetMetricDataRequest
impl UnwindSafe for GetMetricDataRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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