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 72b7618807
commit 893da9be8d
3 changed files with 8 additions and 8 deletions

View File

@@ -475,8 +475,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 @@
"tableName": "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 @@
"tableName": "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

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