Changed opts for Event Exporter

This commit is contained in:
andronache
2021-05-10 10:26:45 +03:00
committed by Dan Christian Bogos
parent 2d88a1394e
commit 2d679ac268
3 changed files with 8 additions and 8 deletions

View File

@@ -452,8 +452,8 @@ const CGRATES_CFG_JSON = `
// SQL
// "sqlMaxIdleConns": 0, // SQLMaxIdleConns
// "maxOpenConns": 0, // SQLMaxOpenConns
// "maxConnLifetime": 0, // SQLMaxConnLifetime
// "sqlMaxOpenConns": 0, // SQLMaxOpenConns
// "sqlMaxConnLifetime": 0, // SQLMaxConnLifetime
// "tableName":"cdrs", // the name of the table from where the events are exported

View File

@@ -398,8 +398,8 @@
"sqlTableName": "expTable", // tableName is mandatory in opts for sql exporter
"sslMode": "disable",
"sqlMaxIdleConns": "10",
"maxOpenConns": "100",
"maxConnLifetime": "0",
"sqlMaxOpenConns": "100",
"sqlMaxConnLifetime": "0",
},
"fields":[ // in case that the path is *exp.*row user must complete all the fields one to one with his sql schema in the correct order
{"tag": "CGRID", "path": "*exp.*row", "type": "*group", "value": "~*req.CGRID"},
@@ -419,8 +419,8 @@
"sqlTableName": "expTable",
"sslMode": "disable",
"sqlMaxIdleConns": "10",
"maxOpenConns": "100",
"maxConnLifetime": "0",
"sqlMaxOpenConns": "100",
"sqlMaxConnLifetime": "0",
},
"fields":[ // the path constains *exp.columnName
{"tag": "CGRID", "path": "*exp.cgrid", "type": "*variable", "value": "~*req.CGRID"},

View File

@@ -2251,8 +2251,8 @@ const (
ElsVersionType = "elsVersionType"
ElsWaitForActiveShards = "elsWaitForActiveShards"
// SQLEe options
SQLMaxOpenConns = "maxOpenConns"
SQLMaxConnLifetime = "maxConnLifetime"
SQLMaxOpenConns = "sqlMaxOpenConns"
SQLMaxConnLifetime = "sqlMaxConnLifetime"
// Others
OptsContext = "*context"