PeterM | 2020-01-21 00:00:47 UTC | #1
I need to determine the number of users who were handling calls from a queue during an interval. It seems using oInteracting Metric with the .NET SDK PostAnalyticsConversationsAggregatesQuery (mapped to https://developer.mypurecloud.com/api/rest/v2/analytics/#post-api-v2-analytics-conversations-aggregates-query) is the way to go.
However, if I include MetricsEnum.Ointeracting in ConversationAggregationQuery.Metrics a HTTP 400 response is returned with "unsupported metric oInteracting". The post-api-v2-analytics-conversations-aggregates-query link above indicates the oInteracting metric is supported and other metrics are working OK so I can't figure out what I'm doing wrong. Any ideas would be appreciated.
tim.smith | 2020-01-21 15:58:08 UTC | #2
I'm seeing the same behavior. Please open a case with PureCloud Care to report the bug with the API. I can't say for sure if the bug is that the parameter is supported and not working or if it's not supposed to be supported and shouldn't be documented in the list. My guess is that it's the latter.
Observation metrics, which is metrics starting with o, are generally only supposed to be used with observation queries because observations are real-time data, not historical. For example you can use it with, POST /api/v2/analytics/queues/observations/query.
PeterM, post:1, topic:6923
I need to determine the number of users who were handling calls from a queue during an interval.
I don't think there's any way to directly get that number. You would need to do a detail query with filters appropriate to your case (e.g. media type and queue) and iterate over the results to identify the user that handled the conversation and count them.
PeterM | 2020-01-21 23:49:15 UTC | #3
I've also come to the conclusion that this is likely to be a documentation error as, since I posted this question, I've also found the oWaiting metric exhibits the same error.
I'll log a PureCloud Care case for them to confirm how the "o" metrics are supposed to function and correct the documentation if applicable.
system | 2020-02-21 23:49:16 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 6923