mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
133 lines
6.8 KiB
JSON
133 lines
6.8 KiB
JSON
{
|
|
// CGRateS Configuration file
|
|
// used for apis/preload_it_test.go
|
|
|
|
"general": {
|
|
"log_level": 7,
|
|
},
|
|
|
|
"data_db": {
|
|
"db_type": "*internal"
|
|
},
|
|
|
|
"stor_db": {
|
|
"db_type": "*internal"
|
|
},
|
|
|
|
"loaders": [
|
|
{
|
|
"id": "Rates_Loader",
|
|
"enabled": true,
|
|
"dry_run": false,
|
|
"tenant": "cgrates.org",
|
|
"run_delay": "0",
|
|
"lockfile_path": ".cgr.lock",
|
|
"caches_conns": ["*internal"],
|
|
"field_separator": ",",
|
|
"tp_in_dir": "/tmp/RatesIn",
|
|
"tp_out_dir": "/tmp/RatesOut",
|
|
"data":[
|
|
{
|
|
"type": "*rate_profiles",
|
|
"file_name": "Rates.csv",
|
|
"fields": [
|
|
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
|
{"tag": "ID", "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": "MinCost", "path": "MinCost", "type": "*variable", "value": "~*req.4"},
|
|
{"tag": "MaxCost", "path": "MaxCost", "type": "*variable", "value": "~*req.5"},
|
|
{"tag": "MaxCostStrategy", "path": "MaxCostStrategy", "type": "*variable", "value": "~*req.6"},
|
|
// {"tag": "RateID", "path": "RateID", "type": "*variable", "value": "~*req.7"},
|
|
{"tag": "RateFilterIDs", "path": "Rates[<~*req.7>].FilterIDs", "type": "*variable", "value": "~*req.8"},
|
|
{"tag": "RateActivationTimes", "path": "Rates[<~*req.7>].ActivationTimes", "type": "*variable", "value": "~*req.9"},
|
|
{"tag": "RateWeights", "path": "Rates[<~*req.7>].Weights", "type": "*variable", "value": "~*req.10"},
|
|
{"tag": "RateBlocker", "path": "Rates[<~*req.7>].Blocker", "type": "*variable", "value": "~*req.11"},
|
|
{"tag": "RateIntervalStart", "path": "Rates[<~*req.7>].IntervalRates.IntervalStart", "type": "*variable", "value": "~*req.12","new_branch":true},
|
|
{"tag": "RateFixedFee", "path": "Rates[<~*req.7>].IntervalRates.FixedFee", "type": "*variable", "value": "~*req.13"},
|
|
{"tag": "RateRecurrentFee", "path": "Rates[<~*req.7>].IntervalRates.RecurrentFee", "type": "*variable", "value": "~*req.14"},
|
|
{"tag": "RateUnit", "path": "Rates[<~*req.7>].IntervalRates.Unit", "type": "*variable", "value": "~*req.15"},
|
|
{"tag": "RateIncrement", "path": "Rates[<~*req.7>].IntervalRates.Increment", "type": "*variable", "value": "~*req.16"},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"id": "Accounts_Loader",
|
|
"enabled": true,
|
|
"dry_run": false,
|
|
"tenant": "cgrates.org",
|
|
"run_delay": "0",
|
|
"lockfile_path": ".cgr2.lock",
|
|
"caches_conns": ["*internal"],
|
|
"field_separator": ",",
|
|
"tp_in_dir": "/tmp/AccountsIn",
|
|
"tp_out_dir": "/tmp/AccountsOut",
|
|
"data":[
|
|
{
|
|
"type": "*accounts",
|
|
"file_name": "Accounts.csv",
|
|
"fields": [
|
|
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
|
{"tag": "ID", "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": "Opts", "path": "Opts", "type": "*variable", "value": "~*req.4"},
|
|
// {"tag": "BalanceID", "path": "Balances.ID", "type": "*variable", "value": "~*req.5"},
|
|
{"tag": "BalanceFilterIDs", "path": "Balances[<~*req.5>].FilterIDs", "type": "*variable", "value": "~*req.6"},
|
|
{"tag": "BalanceWeights", "path": "Balances[<~*req.5>].Weights", "type": "*variable", "value": "~*req.7"},
|
|
{"tag": "BalanceType", "path": "Balances[<~*req.5>].Type", "type": "*variable", "value": "~*req.8"},
|
|
{"tag": "BalanceUnits", "path": "Balances[<~*req.5>].Units", "type": "*variable", "value": "~*req.9"},
|
|
{"tag": "BalanceUnitFactors", "path": "Balances[<~*req.5>].UnitFactors", "type": "*variable", "value": "~*req.10"},
|
|
{"tag": "BalanceOpts", "path": "Balances[<~*req.5>].Opts", "type": "*variable", "value": "~*req.11"},
|
|
{"tag": "BalanceCostIncrements", "path": "Balances[<~*req.5>].CostIncrements", "type": "*variable", "value": "~*req.12"},
|
|
{"tag": "BalanceAttributeIDs", "path": "Balances[<~*req.5>].AttributeIDs", "type": "*variable", "value": "~*req.13"},
|
|
{"tag": "BalanceRateProfileIDs", "path": "Balances[<~*req.5>].RateProfileIDs", "type": "*variable", "value": "~*req.14"},
|
|
{"tag": "ThresholdIDs", "path": "ThresholdIDs", "type": "*variable", "value": "~*req.15"},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"id": "Actions_Loader",
|
|
"enabled": true,
|
|
"dry_run": false,
|
|
"tenant": "cgrates.org",
|
|
"run_delay": "0",
|
|
"lockfile_path": ".cgr3.lock",
|
|
"caches_conns": ["*internal"],
|
|
"field_separator": ",",
|
|
"tp_in_dir": "/tmp/ActionsIn",
|
|
"tp_out_dir": "/tmp/ActionsOut",
|
|
"data":[
|
|
{
|
|
"type": "*action_profiles",
|
|
"file_name": "Actions.csv",
|
|
"fields": [
|
|
{"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~*req.0", "mandatory": true},
|
|
{"tag": "ID", "path": "ID", "type": "*variable", "value": "~*req.1", "mandatory": true},
|
|
{"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~*req.2"},
|
|
{"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~*req.3"},
|
|
{"tag": "Schedule", "path": "Schedule", "type": "*variable", "value": "~*req.4"},
|
|
// {"tag": "TargetType", "path": "TargetType", "type": "*variable", "value": "~*req.5"},
|
|
{"tag": "TargetIDs", "path": "Targets[<~*req.5>]", "type": "*variable", "value": "~*req.6"},
|
|
{"tag": "ActionID", "path": "Actions.ID", "type": "*variable", "value": "~*req.7"},
|
|
{"tag": "ActionFilterIDs", "path": "Actions.FilterIDs", "type": "*variable", "value": "~*req.8"},
|
|
{"tag": "ActionBlocker", "path": "Actions.Blocker", "type": "*variable", "value": "~*req.9"},
|
|
{"tag": "ActionTTL", "path": "Actions.TTL", "type": "*variable", "value": "~*req.10"},
|
|
{"tag": "ActionType", "path": "Actions.Type", "type": "*variable", "value": "~*req.11"},
|
|
{"tag": "ActionOpts", "path": "Actions.Opts", "type": "*variable", "value": "~*req.12"},
|
|
{"tag": "ActionPath", "path": "Actions.Path", "type": "*variable", "value": "~*req.13"},
|
|
{"tag": "ActionValue", "path": "Actions.Value", "type": "*variable", "value": "~*req.14"},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
],
|
|
|
|
"admins": {
|
|
"enabled": true,
|
|
},
|
|
|
|
}
|