Parsing nested JSON in Genesys Cloud v2.analytics.conversation.aggregate events in Go

RawMessage helps, but manual decoding is faster for high-volume streams. In my Grafana plugins, I skip full unmarshalling for groups and target specific metrics directly.

func parseGroup(raw json.RawMessage) (QueueMetrics, error) {
 var m QueueMetrics
 return m, json.Unmarshal(raw, &m)
}

This reduces heap pressure significantly when processing /api/v2/analytics/conversations/queues aggregates.