So I started working on building the EES config block, and here's what I've got so far.
"ees": {
"enabled": true,
"attributes_conns":["*localhost"],
"exporters": [
{
"id": "cdr_billing_event",
"type": "*http_post",
"synchronous": true,
"field_separator": ",",
"flags": ["*cdrs","*log"],
"attempts": 1,
"fields": [
{"tag": "transaction_id","path": "*exp.transaction_id","type": "*variable","value": "~*req.OriginID"},
{"tag": "external_subscription_id","path": "*exp.external_subscription_id", "type": "*variable","value": "~*req.Account"},
{"tag": "code", "path": "*exp.code", "type": "*variable", "value": "hpbx_mins_usage"},
{"tag": "precise_total_amount_cents", "path": "*exp.precise_total_amount_cents", "type": "*variable", "value": "~*req.Cost{*multiply:100}", "width": 7, "strip": "*right", "padding": "*zeroleft"},
{"tag": "hpbx_mins_count", "path": "*exp.hpbx_mins_count", "type": "*variable", "value": "~*req.Usage{*divide:60000000000}"},
{"tag": "hpbx_mins_direction","path": "*exp.hpbx_mins_direction","type": "*variable","value": "~*req.Category"},
{"tag": "hpbx_mins_type","path": "*exp.hpbx_mins_type","type": "*constant","value": "local"}
],
"opts": {
"httpParameters": {
"method": "POST",
"headers": {
"Content-Type": "application/json",
},
"body": {
"event": {
"transaction_id": "~*exp.transaction_id",
"external_subscription_id": "~*exp.external_subscription_id",
"code": "~*exp.code",
"precise_total_amount_cents": "~*exp.precise_total_amount_cents",
"properties": {
"hpbx_mins_count": "~*exp.hpbx_mins_count",
"hpbx_mins_direction": "~*exp.hpbx_mins_direction",
"hpbx_mins_type": "~*exp.hpbx_mins_type"
}
}
}
}
}
}
]
}