Statistics of metrics

Hi,when I used the query following to get analystic data ,
I got some fields which I didn't expect. And I want to know the meaning and the usage(what the fields are used for) of them,but can't find any document I can refer to.

Can you give me some advice,thank you !

■QUERY
/api/v2/analytics/conversations/aggregates/query
Analytics APIs (genesys.cloud)

■Statistic fields
・countNegative
・countPositive
・current

■one part of returned data
"data" : [ {
"interval" : "2022-10-06T02:30:00.000Z/2022-10-06T03:00:00.000Z",
"metrics" : [ {
"metric" : "nFlow",
"qualifier" : null,
"stats" : {
"max" : null,
"min" : null,
"count" : 2,
"countNegative" : null,
"countPositive" : null,
"sum" : null,
"current" : null,
"ratio" : null,
"numerator" : null,
"denominator" : null,
"target" : null
}
Below is the only docuent I can find referring to statistics ,but I need more infromation.
Metrics (genesys.cloud)

Thank you !

Those data fields will not be returned from a conversation aggregate query, but are listed in the aggregate data model because other aggregate endpoints do support those fields. For countNegative/countPositive, that's used in a transcript aggregate query response. https://developer.genesys.cloud/analyticsdatamanagement/analytics/aggregate/transcripts-query

1 Like

Thank you for your reply,
it is really helpful!

My problem on countNegative/countPositive was solved ,thank you for your helpful information.

I still have quesiton on the field. Referring to the document following ,
it says 'The oServiceTarget metric only has a target' , but the response returns from conversation aggregate query don't return the value of target ,but returns the value of current.

Do you know how this come or can you give me some advice?

■documet on Statistics
Genesys Cloud Developer Center

■the response of the conversation aggregate query
{
"metric" : "oServiceTarget",
"qualifier" : null,
"stats" : {
"max" : null,
"min" : null,
"count" : null,
"countNegative" : null,
"countPositive" : null,
"sum" : null,
"current" : 0.8,
"ratio" : null,
"numerator" : null,
"denominator" : null,
"target" : null
}

Thank you!

Sorry, I sitll need help on this problem.

Can someone give me some advice?
Any advice is welcome,thank you!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.