We are trying to parse the nested JSON structure of a Genesys Cloud v2.analytics.conversation.aggregate event. The metrics object seems to have a different hierarchy than the documentation suggests, causing our deserializer to fail. Here is a snippet of the payload we are receiving.
{
"event": {
"type": "v2.analytics.conversation.aggregate",
"data": {
"metrics": {
"acwSeconds": {
"total": 120
}
}
}
}
}
The documentation states that the metrics should be flattened at the root level. We are using a Python dataclass to map this, but it keeps throwing a ValidationError. How is the actual schema structured for this event type?