Commit Graph

183 Commits

Author SHA1 Message Date
gezimbll
df3dcfb840 replaced CGREvent parameter to DataProvider for GetOpts functions 2025-02-07 13:18:43 +01:00
gezimbll
c602dbc2a5 added rsparser field in dynamicOpts
changed Value field to unexported and created a Value() method
on each dynOpts type that contains logic to create a rsparser
in case the value field a configuration starts with prefix "~"
otherwise it will return the specified value
2025-01-22 17:36:26 +01:00
ionutboangiu
17405af987 Revise service manager logs
Logging is now done as ServiceManager level. Removed any other logs.
2025-01-10 20:18:08 +01:00
gezimbll
2b04066504 added parsing the event for *usage opts in accounts 2025-01-10 12:31:44 +01:00
armirveliaj
8921bf8b99 Revise && add new unit tests 2024-12-20 18:01:15 +01:00
DanB
3c57a8ddca Properly name Values instead of Value within DynamicStringSliceOpt 2024-12-19 16:01:31 +01:00
DanB
6a087122de <RateS> RatingProfile fallback functionality 2024-12-17 20:45:45 +01:00
ionutboangiu
db301f7901 Remove StorDB service param from service constructors
Use ServiceIndexer instead.
Remove CDRs ListenAndServe method.
Pass the storDB connection directly to constructors instead of the
channel.
2024-12-12 11:55:14 +01:00
ionutboangiu
2f387b5a0e chore: remove unnecessary parentheses
gofmt -r '(a) -> a' -w **/*.go
2024-09-05 20:46:40 +02:00
gezimblliku
04f2c69b05 updated dependencies with the latest versions 2024-08-22 20:39:59 +02:00
gezimbll
c51122fd20 Moving apis into each subsystem packages 2023-12-13 20:33:09 +01:00
ionutboangiu
d29f84169c Move cdrs to its own package
Moved engine/cdr.go to utils/cdr.go.
Moved engine/cdrs.go and engine/cdrs_test.go to cdrs package.
Moved api functions from cdrs/cdrs.go to cdrs/apis.go. Same for the
tests.
Deleted CDRsV1 type and its methods.
2023-12-12 10:09:18 +01:00
ionutboangiu
1cec3751e4 Update SetCDR signature to include the cdrID
Updated mongo indexing for cdrs to take into consideration only the
opts.*cdrID field.

Fixed cdrs_it_test.go test.

Before storing CDRs in CDR processEvents, we are now temporarily generating
the *cdrID in APIOpts (until we decide where this should happen).
2023-12-12 10:09:18 +01:00
ionutboangiu
560f42bf8d Add store block back inside *CDRServer.processEvents
Added *store and *rerate dynamic opts for cdrs.
2023-12-12 10:09:18 +01:00
ionutboangiu
e5ab21def5 Implement AdminSv1 Get/RemoveCDRs APIs for CDRs
Addition of storDB to AdminSv1 was required.
2023-11-09 20:50:36 +01:00
gezimbll
c6571492fc Make go vet pass 2023-10-26 15:59:34 +02:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
ionutboangiu
5227b4d447 Solve compilation errors in tests after CDRs service update 2023-05-03 10:05:28 +02:00
adi
734776b113 Unified consts of opts 2022-10-03 18:29:24 +03:00
adi
67163a1ff5 Merge fixes 2022-09-22 20:22:34 +02:00
ionutboangiu
0653e9b5d7 Apply go fmt 2022-08-24 09:32:23 +03:00
porosnicuadrian
5662444a10 Blockers + tests 2022-04-20 20:29:01 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9a4da75210 Resolved unit tests 2022-03-09 14:14:30 +01:00
porosnicuadrian
104a06d24b Added support at mongo dirver for count/list rates 2022-02-17 21:11:55 +02:00
porosnicuadrian
0d1da8e628 Added CGREventWithRateProfile + finished api tests 2022-02-17 21:11:55 +02:00
andronache98
c79d0cb4bd Moving *rateSCost and *accountSCost in APIOpts 2022-02-14 18:06:53 +02:00
porosnicuadrian
dcdd696932 Added ratePRofileRatesFOrEvent apis + tests 2022-02-14 17:23:35 +02:00
porosnicuadrian
f5f6dd746a Added gerRateProfilesForEvents API + tests 2022-02-14 17:23:35 +02:00
porosnicuadrian
01cc2407db Removed setRateProfileRates api + tests 2022-02-14 17:23:35 +02:00
porosnicuadrian
a7d4348b43 Added exists/notExists indexed on necessary subsystems 2022-01-20 21:03:47 +01:00
Trial97
46f0ddb860 Added decimal context config 2021-12-15 19:57:25 +01:00
ionutboangiu
034adf8a52 Make field names for CGRConfig and FilterS values consistent across all Service structs 2021-11-11 12:23:21 +02:00
andronache
7ab4167613 Corrected header in multiple files 2021-11-01 13:50:00 +02:00
Trial97
cb809f976e Updated internal datadb 2021-10-28 18:03:43 +03:00
andronache
1b7108eb7a Finished tests for ProfileIgnoreFilters option 2021-10-22 12:04:12 +03:00
ionutboangiu
09cf26e7b9 Fix tests 2021-10-18 18:09:44 +03:00
ionutboangiu
003a4e667d Change some opts field names to reduce redundancy 2021-10-18 18:09:44 +03:00
ionutboangiu
ad6ee01bd3 Fix unit tests after changing opts structure 2021-10-13 20:32:43 +03:00
ionutboangiu
77e805bee9 Fix tests after changing opts structure (incomplete) 2021-10-13 20:32:43 +03:00
ionutboangiu
5490cf66bf Fix all the compilation errors in non-test files 2021-10-13 20:32:43 +03:00
Trial97
e1701b314e Added *profileIgnoreFilters for rates 2021-10-11 12:06:57 +03:00
porosnicuadrian
dcdfabb5f6 Tested cdrs ProcessEvent with rates 2021-10-08 11:07:45 +03:00
ionutboangiu
1e7ff42468 Implement GetTimeOpts function in libfilters.go 2021-10-06 12:18:40 +02:00
ionutboangiu
b92e64ee86 Use the newly implemented functions to retrieve the opts from APIOpts/config 2021-10-05 21:04:38 +02:00
ionutboangiu
1a4e73a8c6 Fix the compilation errors in non test files (incomplete) 2021-10-04 11:29:37 +02:00
ionutboangiu
5c67d6fd2d Change type of rates opts to map (incomplete) 2021-09-28 20:44:55 +02:00
ionutboangiu
a8e3b311b9 Replace OptsRatesUsage with OptsAccountsUsage where necessary and refactor OptsAsDecimal 2021-09-21 19:32:03 +02:00
ionutboangiu
0d5945cf12 Add StartTime, IntervalStart and Usage as opts for rates 2021-09-20 19:43:56 +02:00