Fixed loaders cfg and weights

This commit is contained in:
porosnicuadrian
2022-03-04 12:17:25 +02:00
committed by Dan Christian Bogos
parent 3bdc28a1d3
commit 4a2b8ff6e1
6 changed files with 5 additions and 29 deletions

View File

@@ -61,7 +61,6 @@
"file_name": "Attributes.csv",
"fields": [
{"tag": "AttributesFields","type": "*template", "value": "attrTemplateLoader"}
],
},
],
@@ -199,7 +198,7 @@
{"path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
{"path": "ID", "type": "*variable", "value": "~*req.1", "mandatory": true},
{"path": "FilterIDs", "type": "*variable", "value": "~*req.2"},
{"path": "Weight", "type": "*variable", "value": "~*req.3"},
{"path": "Weights", "type": "*variable", "value": "~*req.3"},
{"path": "Attributes.FilterIDs", "type": "*variable", "value": "~*req.4","new_branch":true},
{"path": "Attributes.Path", "type": "*variable", "value": "~*req.5"},
{"path": "Attributes.Type", "type": "*variable", "value": "~*req.6"},

View File

@@ -102,7 +102,6 @@
"file_name": "Attributes.csv",
"fields": [
{"tag": "AttributesFields","type": "*template", "value": "attrTemplateLoader"}
],
},
],
@@ -247,7 +246,7 @@
{"path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
{"path": "ID", "type": "*variable", "value": "~*req.1", "mandatory": true},
{"path": "FilterIDs", "type": "*variable", "value": "~*req.2"},
{"path": "Weight", "type": "*variable", "value": "~*req.3"},
{"path": "Weights", "type": "*variable", "value": "~*req.3"},
{"path": "Attributes.FilterIDs", "type": "*variable", "value": "~*req.4","new_branch":true},
{"path": "Attributes.Path", "type": "*variable", "value": "~*req.5"},
{"path": "Attributes.Type", "type": "*variable", "value": "~*req.6"},

View File

@@ -61,17 +61,7 @@
"type": "*attributes",
"file_name": "Attributes.csv",
"fields": [
//{"tag": "AttributesFields","type": "*template", "value": "attrTemplateLoader"}
{"tag": "TenantID", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
{"tag": "ProfileID", "path": "ID", "type": "*variable", "value": "~*req.1", "mandatory": true},
{"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~*req.2"},
{"tag": "Weights", "path": "Weights", "type": "*variable", "value": "~*req.3"},
{"tag": "AttributeFilterIDs", "path": "Attributes.FilterIDs", "type": "*variable", "value": "~*req.4","new_branch":true},
{"tag": "Path", "path": "Attributes.Path", "type": "*variable", "value": "~*req.5"},
{"tag": "Type", "path": "Attributes.Type", "type": "*variable", "value": "~*req.6"},
{"tag": "Value", "path": "Attributes.Value", "type": "*variable", "value": "~*req.7"},
{"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~*req.8"},
{"tag": "AttributesFields","type": "*template", "value": "attrTemplateLoader"}
],
},
],
@@ -253,7 +243,7 @@
{"path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
{"path": "ID", "type": "*variable", "value": "~*req.1", "mandatory": true},
{"path": "FilterIDs", "type": "*variable", "value": "~*req.2"},
{"path": "Weight", "type": "*variable", "value": "~*req.3"},
{"path": "Weights", "type": "*variable", "value": "~*req.3"},
{"path": "Attributes.FilterIDs", "type": "*variable", "value": "~*req.4","new_branch":true},
{"path": "Attributes.Path", "type": "*variable", "value": "~*req.5"},
{"path": "Attributes.Type", "type": "*variable", "value": "~*req.6"},

View File

@@ -30,8 +30,6 @@
},
},
"schedulers": {
"enabled": true,
},

View File

@@ -25,27 +25,17 @@
"db_type": "*internal"
},
"rals": {
"enabled": true,
"thresholds_conns": ["*internal"],
"max_increments":3000000
},
"schedulers": {
"enabled": true,
"cdrs_conns": ["*internal"],
"stats_conns": ["*localhost"]
},
"cdrs": {
"enabled": true,
"chargers_conns":["*internal"]
},
"attributes": {
"enabled": true,
"stats_conns": ["*localhost"],

View File

@@ -123,7 +123,7 @@ cgrates.org,RoutePrf1,,,,,route1,,,,ResGroup4,Stat3,;10,,
AttributesCSVContent = `
#Tenant,ID,FilterIDs,Weights,AttributeFilterIDs,Path,Type,Value,Blocker
cgrates.org,ALS1,*string:~*req.Account:1001;*string:~*opts.*context:con1,;20,*string:~*req.Field1:Initial,*req.Field1,*variable,Sub1,true
cgrates.org,ALS1,*string:~*opts.*context:con2|con3,;20,,*req.Field2,*variable,Sub2,true
cgrates.org,ALS1,*string:~*opts.*context:con2|con3,,,*req.Field2,*variable,Sub2,true
`
ChargersCSVContent = `
#Tenant,ID,FilterIDs,Weights,RunID,AttributeIDs