@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetCurrentMetricDataRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetCurrentMetricDataRequest() |
Modifier and Type | Method and Description |
---|---|
GetCurrentMetricDataRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<CurrentMetric> |
getCurrentMetrics()
The metrics to retrieve.
|
Filters |
getFilters()
The filters to apply to returned metrics.
|
List<String> |
getGroupings()
The grouping applied to the metrics returned.
|
String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
Integer |
getMaxResults()
The maximum number of results to return per page.
|
String |
getNextToken()
The token for the next set of results.
|
List<CurrentMetricSortCriteria> |
getSortCriteria()
The way to sort the resulting response based on metrics.
|
int |
hashCode() |
void |
setCurrentMetrics(Collection<CurrentMetric> currentMetrics)
The metrics to retrieve.
|
void |
setFilters(Filters filters)
The filters to apply to returned metrics.
|
void |
setGroupings(Collection<String> groupings)
The grouping applied to the metrics returned.
|
void |
setInstanceId(String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return per page.
|
void |
setNextToken(String nextToken)
The token for the next set of results.
|
void |
setSortCriteria(Collection<CurrentMetricSortCriteria> sortCriteria)
The way to sort the resulting response based on metrics.
|
String |
toString()
Returns a string representation of this object.
|
GetCurrentMetricDataRequest |
withCurrentMetrics(Collection<CurrentMetric> currentMetrics)
The metrics to retrieve.
|
GetCurrentMetricDataRequest |
withCurrentMetrics(CurrentMetric... currentMetrics)
The metrics to retrieve.
|
GetCurrentMetricDataRequest |
withFilters(Filters filters)
The filters to apply to returned metrics.
|
GetCurrentMetricDataRequest |
withGroupings(Collection<String> groupings)
The grouping applied to the metrics returned.
|
GetCurrentMetricDataRequest |
withGroupings(Grouping... groupings)
The grouping applied to the metrics returned.
|
GetCurrentMetricDataRequest |
withGroupings(String... groupings)
The grouping applied to the metrics returned.
|
GetCurrentMetricDataRequest |
withInstanceId(String instanceId)
The identifier of the Amazon Connect instance.
|
GetCurrentMetricDataRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return per page.
|
GetCurrentMetricDataRequest |
withNextToken(String nextToken)
The token for the next set of results.
|
GetCurrentMetricDataRequest |
withSortCriteria(Collection<CurrentMetricSortCriteria> sortCriteria)
The way to sort the resulting response based on metrics.
|
GetCurrentMetricDataRequest |
withSortCriteria(CurrentMetricSortCriteria... sortCriteria)
The way to sort the resulting response based on metrics.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setInstanceId(String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
instanceId
- The identifier of the Amazon Connect instance. You can find the instance
ID in the Amazon Resource Name (ARN) of the instance.public String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public GetCurrentMetricDataRequest withInstanceId(String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
instanceId
- The identifier of the Amazon Connect instance. You can find the instance
ID in the Amazon Resource Name (ARN) of the instance.public void setFilters(Filters filters)
The filters to apply to returned metrics. You can filter up to the following limits:
Queues: 100
Routing profiles: 100
Channels: 3 (VOICE, CHAT, and TASK channels are supported.)
RoutingStepExpressions: 50
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using the RoutingStepExpression
filter, you need to pass exactly one QueueId
. The
filter is also case sensitive so when using the RoutingStepExpression
filter, grouping by
ROUTING_STEP_EXPRESSION
is required.
Currently tagging is only supported on the resources that are passed in the filter.
filters
- The filters to apply to returned metrics. You can filter up to the following limits:
Queues: 100
Routing profiles: 100
Channels: 3 (VOICE, CHAT, and TASK channels are supported.)
RoutingStepExpressions: 50
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using the RoutingStepExpression
filter, you need to pass exactly one
QueueId
. The filter is also case sensitive so when using the
RoutingStepExpression
filter, grouping by ROUTING_STEP_EXPRESSION
is required.
Currently tagging is only supported on the resources that are passed in the filter.
public Filters getFilters()
The filters to apply to returned metrics. You can filter up to the following limits:
Queues: 100
Routing profiles: 100
Channels: 3 (VOICE, CHAT, and TASK channels are supported.)
RoutingStepExpressions: 50
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using the RoutingStepExpression
filter, you need to pass exactly one QueueId
. The
filter is also case sensitive so when using the RoutingStepExpression
filter, grouping by
ROUTING_STEP_EXPRESSION
is required.
Currently tagging is only supported on the resources that are passed in the filter.
Queues: 100
Routing profiles: 100
Channels: 3 (VOICE, CHAT, and TASK channels are supported.)
RoutingStepExpressions: 50
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using the RoutingStepExpression
filter, you need to pass exactly one
QueueId
. The filter is also case sensitive so when using the
RoutingStepExpression
filter, grouping by ROUTING_STEP_EXPRESSION
is required.
Currently tagging is only supported on the resources that are passed in the filter.
public GetCurrentMetricDataRequest withFilters(Filters filters)
The filters to apply to returned metrics. You can filter up to the following limits:
Queues: 100
Routing profiles: 100
Channels: 3 (VOICE, CHAT, and TASK channels are supported.)
RoutingStepExpressions: 50
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using the RoutingStepExpression
filter, you need to pass exactly one QueueId
. The
filter is also case sensitive so when using the RoutingStepExpression
filter, grouping by
ROUTING_STEP_EXPRESSION
is required.
Currently tagging is only supported on the resources that are passed in the filter.
filters
- The filters to apply to returned metrics. You can filter up to the following limits:
Queues: 100
Routing profiles: 100
Channels: 3 (VOICE, CHAT, and TASK channels are supported.)
RoutingStepExpressions: 50
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using the RoutingStepExpression
filter, you need to pass exactly one
QueueId
. The filter is also case sensitive so when using the
RoutingStepExpression
filter, grouping by ROUTING_STEP_EXPRESSION
is required.
Currently tagging is only supported on the resources that are passed in the filter.
public List<String> getGroupings()
The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels are
supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter. In
addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
QUEUE
, the
metrics returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK
channels are supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter.
In addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is required.
Grouping
public void setGroupings(Collection<String> groupings)
The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels are
supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter. In
addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
groupings
- The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels
are supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter.
In addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
Grouping
public GetCurrentMetricDataRequest withGroupings(String... groupings)
The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels are
supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter. In
addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
NOTE: This method appends the values to the existing list (if any). Use
setGroupings(java.util.Collection)
or withGroupings(java.util.Collection)
if you want to
override the existing values.
groupings
- The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels
are supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter.
In addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
Grouping
public GetCurrentMetricDataRequest withGroupings(Collection<String> groupings)
The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels are
supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter. In
addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
groupings
- The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels
are supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter.
In addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
Grouping
public GetCurrentMetricDataRequest withGroupings(Grouping... groupings)
The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels are
supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter. In
addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
groupings
- The grouping applied to the metrics returned. For example, when grouped by QUEUE
, the metrics
returned apply to each queue rather than aggregated for all queues.
If you group by CHANNEL
, you should include a Channels filter. VOICE, CHAT, and TASK channels
are supported.
If you group by ROUTING_PROFILE
, you must include either a queue or routing profile filter.
In addition, a routing profile filter is required for metrics CONTACTS_SCHEDULED
,
CONTACTS_IN_QUEUE
, and OLDEST_CONTACT_AGE
.
If no Grouping
is included in the request, a summary of metrics is returned.
When using the RoutingStepExpression
filter, group by ROUTING_STEP_EXPRESSION
is
required.
Grouping
public List<CurrentMetric> getCurrentMetrics()
The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a description of all the metrics, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue time.
For example, if a contact that has been queued under <Expression 1>
for 10 seconds has expired
and <Expression 2>
becomes active, then OLDEST_CONTACT_AGE
for this queue will be
counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue
time. For example, if a contact that has been queued under <Expression 1>
for 10
seconds has expired and <Expression 2>
becomes active, then
OLDEST_CONTACT_AGE
for this queue will be counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
public void setCurrentMetrics(Collection<CurrentMetric> currentMetrics)
The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a description of all the metrics, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue time.
For example, if a contact that has been queued under <Expression 1>
for 10 seconds has expired
and <Expression 2>
becomes active, then OLDEST_CONTACT_AGE
for this queue will be
counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
currentMetrics
- The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available.
For a description of all the metrics, see Real-time
Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue
time. For example, if a contact that has been queued under <Expression 1>
for 10
seconds has expired and <Expression 2>
becomes active, then
OLDEST_CONTACT_AGE
for this queue will be counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
public GetCurrentMetricDataRequest withCurrentMetrics(CurrentMetric... currentMetrics)
The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a description of all the metrics, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue time.
For example, if a contact that has been queued under <Expression 1>
for 10 seconds has expired
and <Expression 2>
becomes active, then OLDEST_CONTACT_AGE
for this queue will be
counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
NOTE: This method appends the values to the existing list (if any). Use
setCurrentMetrics(java.util.Collection)
or withCurrentMetrics(java.util.Collection)
if you want
to override the existing values.
currentMetrics
- The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available.
For a description of all the metrics, see Real-time
Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue
time. For example, if a contact that has been queued under <Expression 1>
for 10
seconds has expired and <Expression 2>
becomes active, then
OLDEST_CONTACT_AGE
for this queue will be counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
public GetCurrentMetricDataRequest withCurrentMetrics(Collection<CurrentMetric> currentMetrics)
The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a description of all the metrics, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue time.
For example, if a contact that has been queued under <Expression 1>
for 10 seconds has expired
and <Expression 2>
becomes active, then OLDEST_CONTACT_AGE
for this queue will be
counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
currentMetrics
- The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available.
For a description of all the metrics, see Real-time
Metrics Definitions in the Amazon Connect Administrator Guide.
Unit: COUNT
Name in real-time metrics report: ACW
Unit: COUNT
Name in real-time metrics report: Available
Unit: COUNT
Name in real-time metrics report: Error
Unit: COUNT
Name in real-time metrics report: NPT (Non-Productive Time)
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: On contact
Unit: COUNT
Name in real-time metrics report: Online
Unit: COUNT
Name in real-time metrics report: Staffed
Unit: COUNT
Name in real-time metrics report: In queue
Unit: COUNT
Name in real-time metrics report: Scheduled
Unit: SECONDS
When you use groupings, Unit says SECONDS and the Value is returned in SECONDS.
When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if you get a response like this:
{ "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": 24113.0
The actual OLDEST_CONTACT_AGE is 24 seconds.
When the filter RoutingStepExpression
is used, this metric is still calculated from enqueue
time. For example, if a contact that has been queued under <Expression 1>
for 10
seconds has expired and <Expression 2>
becomes active, then
OLDEST_CONTACT_AGE
for this queue will be counted starting from 10, not 0.
Name in real-time metrics report: Oldest
Unit: COUNT
Name in real-time metrics report: Active
Unit: COUNT
Name in real-time metrics report: Availability
public void setNextToken(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.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
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.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
public String getNextToken()
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.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
public GetCurrentMetricDataRequest withNextToken(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.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
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.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
public void setMaxResults(Integer maxResults)
The maximum number of results to return per page.
maxResults
- The maximum number of results to return per page.public Integer getMaxResults()
The maximum number of results to return per page.
public GetCurrentMetricDataRequest withMaxResults(Integer maxResults)
The maximum number of results to return per page.
maxResults
- The maximum number of results to return per page.public List<CurrentMetricSortCriteria> getSortCriteria()
The way to sort the resulting response based on metrics. You can enter one sort criteria. By default resources
are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection is sorted based on
the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
AGENTS_ONLINE
, DESCENDING
. The metric collection
is sorted based on the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
public void setSortCriteria(Collection<CurrentMetricSortCriteria> sortCriteria)
The way to sort the resulting response based on metrics. You can enter one sort criteria. By default resources
are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection is sorted based on
the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
sortCriteria
- The way to sort the resulting response based on metrics. You can enter one sort criteria. By default
resources are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection
is sorted based on the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
public GetCurrentMetricDataRequest withSortCriteria(CurrentMetricSortCriteria... sortCriteria)
The way to sort the resulting response based on metrics. You can enter one sort criteria. By default resources
are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection is sorted based on
the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
NOTE: This method appends the values to the existing list (if any). Use
setSortCriteria(java.util.Collection)
or withSortCriteria(java.util.Collection)
if you want to
override the existing values.
sortCriteria
- The way to sort the resulting response based on metrics. You can enter one sort criteria. By default
resources are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection
is sorted based on the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
public GetCurrentMetricDataRequest withSortCriteria(Collection<CurrentMetricSortCriteria> sortCriteria)
The way to sort the resulting response based on metrics. You can enter one sort criteria. By default resources
are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection is sorted based on
the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
sortCriteria
- The way to sort the resulting response based on metrics. You can enter one sort criteria. By default
resources are sorted based on AGENTS_ONLINE
, DESCENDING
. The metric collection
is sorted based on the input metrics.
Note the following:
Sorting on SLOTS_ACTIVE
and SLOTS_AVAILABLE
is not supported.
public String toString()
toString
in class Object
Object.toString()
public GetCurrentMetricDataRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()