![]() |
![]()
| ![]() |
![]()
NAMEPaws::Connect::GetCurrentMetricData - Arguments for method GetCurrentMetricData on Paws::Connect DESCRIPTIONThis class represents the parameters used for calling the method GetCurrentMetricData on the Amazon Connect Service service. Use the attributes of this class as arguments to method GetCurrentMetricData. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetCurrentMetricData. SYNOPSISmy $connect = Paws->service('Connect'); my $GetCurrentMetricDataResponse = $connect->GetCurrentMetricData( CurrentMetrics => [ { Name => 'AGENTS_ONLINE' , # values: AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE; OPTIONAL Unit => 'SECONDS', # values: SECONDS, COUNT, PERCENT; OPTIONAL }, ... ], Filters => { Channels => [ 'VOICE', ... # values: VOICE, CHAT, TASK ], # max: 1; OPTIONAL Queues => [ 'MyQueueId', ... ], # min: 1, max: 100; OPTIONAL }, InstanceId => 'MyInstanceId', Groupings => [ 'QUEUE', ... # values: QUEUE, CHANNEL ], # OPTIONAL MaxResults => 1, # OPTIONAL NextToken => 'MyNextToken', # OPTIONAL ); # Results: my $DataSnapshotTime = $GetCurrentMetricDataResponse->DataSnapshotTime; my $MetricResults = $GetCurrentMetricDataResponse->MetricResults; my $NextToken = $GetCurrentMetricDataResponse->NextToken; # Returns a L<Paws::Connect::GetCurrentMetricDataResponse> object. Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/connect/GetCurrentMetricData> ATTRIBUTESREQUIRED CurrentMetrics => ArrayRef[Paws::Connect::CurrentMetric]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 (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) in the Amazon Connect Administrator Guide.
REQUIRED Filters => Paws::Connect::FiltersThe 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. Groupings => ArrayRef[Str|Undef]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 no "Grouping" is included in the request, a summary of metrics is returned. REQUIRED InstanceId => StrThe identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance. MaxResults => IntThe maximum number of results to return per page. NextToken => StrThe 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. SEE ALSOThis class forms part of Paws, documenting arguments for method GetCurrentMetricData in Paws::Connect BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|