mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Add SQL Exporter
This commit is contained in:
committed by
Dan Christian Bogos
parent
26c04a2415
commit
07159d8d6a
@@ -386,7 +386,30 @@
|
||||
"flags": ["*attributes"],
|
||||
"attribute_context": "customContext",
|
||||
"attempts": 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "SQLExporter",
|
||||
"type": "*sql",
|
||||
"tenant": "cgrates.org",
|
||||
"attempts": 1,
|
||||
"opts": {
|
||||
"user": "cgrates",
|
||||
"password": "CGRateS.org",
|
||||
"host": "127.0.0.1",
|
||||
"port": "3306",
|
||||
"name": "exportedDatabase",
|
||||
"tableName": "expTable",
|
||||
"maxIdleConns": "10",
|
||||
"maxOpenConns": "100",
|
||||
"maxConnLifetime": "0",
|
||||
},
|
||||
"fields":[
|
||||
{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
|
||||
{"tag": "AnswerTime", "path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"},
|
||||
{"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
|
||||
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user