{ // 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": "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": "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": "RateFilterIDs", "type": "*variable", "value": "~*req.8"}, {"tag": "RateActivationTimes", "path": "RateActivationTimes", "type": "*variable", "value": "~*req.9"}, {"tag": "RateWeights", "path": "RateWeights", "type": "*variable", "value": "~*req.10"}, {"tag": "RateBlocker", "path": "RateBlocker", "type": "*variable", "value": "~*req.11"}, {"tag": "RateIntervalStart", "path": "RateIntervalStart", "type": "*variable", "value": "~*req.12"}, {"tag": "RateFixedFee", "path": "RateFixedFee", "type": "*variable", "value": "~*req.13"}, {"tag": "RateRecurrentFee", "path": "RateRecurrentFee", "type": "*variable", "value": "~*req.14"}, {"tag": "RateUnit", "path": "RateUnit", "type": "*variable", "value": "~*req.15"}, {"tag": "RateIncrement", "path": "RateIncrement", "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": "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": "Opts", "path": "Opts", "type": "*variable", "value": "~*req.4"}, {"tag": "BalanceID", "path": "BalanceID", "type": "*variable", "value": "~*req.5"}, {"tag": "BalanceFilterIDs", "path": "BalanceFilterIDs", "type": "*variable", "value": "~*req.6"}, {"tag": "BalanceWeights", "path": "BalanceWeights", "type": "*variable", "value": "~*req.7"}, {"tag": "BalanceType", "path": "BalanceType", "type": "*variable", "value": "~*req.8"}, {"tag": "BalanceUnits", "path": "BalanceUnits", "type": "*variable", "value": "~*req.9"}, {"tag": "BalanceUnitFactors", "path": "BalanceUnitFactors", "type": "*variable", "value": "~*req.10"}, {"tag": "BalanceOpts", "path": "BalanceOpts", "type": "*variable", "value": "~*req.11"}, {"tag": "BalanceCostIncrements", "path": "BalanceCostIncrements", "type": "*variable", "value": "~*req.12"}, {"tag": "BalanceAttributeIDs", "path": "BalanceAttributeIDs", "type": "*variable", "value": "~*req.13"}, {"tag": "BalanceRateProfileIDs", "path": "BalanceRateProfileIDs", "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": "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": "Schedule", "path": "Schedule", "type": "*variable", "value": "~*req.4"}, {"tag": "TargetType", "path": "TargetType", "type": "*variable", "value": "~*req.5"}, {"tag": "TargetIDs", "path": "TargetIDs", "type": "*variable", "value": "~*req.6"}, {"tag": "ActionID", "path": "ActionID", "type": "*variable", "value": "~*req.7"}, {"tag": "ActionFilterIDs", "path": "ActionFilterIDs", "type": "*variable", "value": "~*req.8"}, {"tag": "ActionBlocker", "path": "ActionBlocker", "type": "*variable", "value": "~*req.9"}, {"tag": "ActionTTL", "path": "ActionTTL", "type": "*variable", "value": "~*req.10"}, {"tag": "ActionType", "path": "ActionType", "type": "*variable", "value": "~*req.11"}, {"tag": "ActionOpts", "path": "ActionOpts", "type": "*variable", "value": "~*req.12"}, {"tag": "ActionPath", "path": "ActionPath", "type": "*variable", "value": "~*req.13"}, {"tag": "ActionValue", "path": "ActionValue", "type": "*variable", "value": "~*req.14"}, ], }, ], } ], "admins": { "enabled": true, }, }