/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the connect-2017-08-08.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Connect.Model
{
///
/// Container for the parameters to the GetMetricData operation.
/// Gets historical metric data from the specified Amazon Connect instance.
///
///
///
/// For a description of each historical metric, see Historical
/// Metrics Definitions in the Amazon Connect Administrator Guide.
///
///
public partial class GetMetricDataRequest : AmazonConnectRequest
{
private DateTime? _endTime;
private Filters _filters;
private List _groupings = new List();
private List _historicalMetrics = new List();
private string _instanceId;
private int? _maxResults;
private string _nextToken;
private DateTime? _startTime;
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Required=true)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property 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.
///
///
///
[AWSProperty(Required=true)]
public Filters Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Max=2)]
public List Groupings
{
get { return this._groupings; }
set { this._groupings = value; }
}
// Check to see if Groupings property is set
internal bool IsSetGroupings()
{
return this._groupings != null && this._groupings.Count > 0;
}
///
/// Gets and sets the property 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).
///
/// - ABANDON_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- AFTER_CONTACT_WORK_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- API_CONTACTS_HANDLED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CALLBACK_CONTACTS_HANDLED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_ABANDONED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_AGENT_HUNG_UP_FIRST
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_CONSULTED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_HANDLED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_HANDLED_INCOMING
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_HANDLED_OUTBOUND
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_HOLD_ABANDONS
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_MISSED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_QUEUED
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_TRANSFERRED_IN
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_TRANSFERRED_IN_FROM_QUEUE
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_TRANSFERRED_OUT
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
-
///
/// Unit: COUNT
///
///
///
/// Statistic: SUM
///
///
- HANDLE_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- HOLD_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- INTERACTION_AND_HOLD_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- INTERACTION_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- OCCUPANCY
-
///
/// Unit: PERCENT
///
///
///
/// Statistic: AVG
///
///
- QUEUE_ANSWER_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: AVG
///
///
- QUEUED_TIME
-
///
/// Unit: SECONDS
///
///
///
/// Statistic: MAX
///
///
- SERVICE_LEVEL
-
///
/// 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").
///
///
///
[AWSProperty(Required=true)]
public List HistoricalMetrics
{
get { return this._historicalMetrics; }
set { this._historicalMetrics = value; }
}
// Check to see if HistoricalMetrics property is set
internal bool IsSetHistoricalMetrics()
{
return this._historicalMetrics != null && this._historicalMetrics.Count > 0;
}
///
/// Gets and sets the property InstanceId.
///
/// The identifier of the Amazon Connect instance. You can find
/// the instance ID in the Amazon Resource Name (ARN) of the instance.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of results to return per page.
///
///
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property 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 string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Required=true)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
}