@Generated(value="software.amazon.awssdk:codegen") public final class GetMetricDataRequest extends ConnectRequest implements ToCopyableBuilder<GetMetricDataRequest.Builder,GetMetricDataRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetMetricDataRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetMetricDataRequest.Builder |
builder() |
Instant |
endTime()
The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical
metrics data.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Filters |
filters()
The queues, up to 100, or channels, to use to filter the metrics returned.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<Grouping> |
groupings()
The grouping applied to the metrics returned.
|
List<String> |
groupingsAsStrings()
The grouping applied to the metrics returned.
|
boolean |
hasGroupings()
For responses, this returns true if the service returned a value for the Groupings property.
|
int |
hashCode() |
boolean |
hasHistoricalMetrics()
For responses, this returns true if the service returned a value for the HistoricalMetrics property.
|
List<HistoricalMetric> |
historicalMetrics()
The metrics to retrieve.
|
String |
instanceId()
The identifier of the Amazon Connect instance.
|
Integer |
maxResults()
The maximum number of results to return per page.
|
String |
nextToken()
The token for the next set of results.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetMetricDataRequest.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of
historical metrics data.
|
GetMetricDataRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String instanceId()
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
public final Instant startTime()
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.
The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available only for 24 hours.
public final Instant endTime()
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.
The time range between the start and end time must be less than 24 hours.
public final 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.
To filter by Queues, enter the queue ID/ARN, not the name of the queue.
public final List<Grouping> groupings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroupings() method.
If no grouping is specified, a summary of metrics for all queues is returned.
public final boolean hasGroupings()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> groupingsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroupings() method.
If no grouping is specified, a summary of metrics for all queues is returned.
public final boolean hasHistoricalMetrics()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<HistoricalMetric> historicalMetrics()
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 CONTACTS_INCOMING metric missing from the documented list).
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: PERCENT
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: MAX
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. For
Comparison, you must enter LT (for "Less than").
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasHistoricalMetrics() method.
This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the documented list).
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: COUNT
Statistic: SUM
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: PERCENT
Statistic: AVG
Unit: SECONDS
Statistic: AVG
Unit: SECONDS
Statistic: MAX
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. For Comparison, you must enter LT (for "Less than").
public final String nextToken()
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.
public final Integer maxResults()
The maximum number of results to return per page.
public GetMetricDataRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetMetricDataRequest.Builder,GetMetricDataRequest>toBuilder in class ConnectRequestpublic static GetMetricDataRequest.Builder builder()
public static Class<? extends GetMetricDataRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.