146 Commits

Author SHA1 Message Date
ionutboangiu
117fee4e29 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:24 +01:00
ionutboangiu
656911e4aa Exclude expired metrics before retrieval
Remove all StatQueue locking methods (unused).
2024-08-09 09:16:36 +02:00
ionutboangiu
b7d172f78a Fix misspellings 2023-06-21 11:02:39 +02:00
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
Trial97
ab4944dc1a Removed config.NavigableMap 2020-05-18 12:43:13 +02:00
TeoV
a75ce1f8e1 Move testing for setDDestinations in integration tests 2020-04-15 16:01:07 +02:00
Trial97
ff8a7f23f0 Added nested_fields config 2020-01-10 08:04:45 +02:00
TeoV
2ee574002a Add support for BiRPC in ConnManager 2019-12-12 08:54:42 +02:00
TeoV
27789c4d36 Add connection from StatS to Threshold through ConnManager 2019-12-12 08:52:49 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
TeoV
0226f4c8e1 Update merge 2019-11-27 11:10:32 -05:00
DanB
1e79739911 Reverting *req in filter prefixes 2019-11-25 18:23:53 +01:00
TeoV
821b5492ce Add ~*req prefix when sending NavigableMap to Pass for filtering 2019-11-25 17:18:04 +02:00
TeoV
ab843fa6c5 Disable Cache when using internalDB as DataDB 2019-11-06 19:36:01 +01:00
Trial97
45ab2f9257 Added connection reload for SessionS 2019-10-28 12:17:15 +01:00
Trial97
22212e1125 Added connection reload for Stat service 2019-10-28 12:17:15 +01:00
Trial97
4763133501 Added StatS as service in ServiceManager 2019-09-17 18:07:53 +02:00
TeoV
e511a2e110 Starting services message uniformity 2019-08-27 11:57:46 +02:00
TeoV
120060d95f Correct verify CGREvent in case of nil and add constants in engine package 2019-05-28 15:23:19 +02:00
TeoV
0987fb79db Replacing CGREvent with *CGRevent when inherited for StatService 2019-05-27 20:39:55 +02:00
TeoV
14ebcb3812 Replacing CGREvent with *CGRevent when inherited for ThresholdService 2019-05-27 20:39:55 +02:00
TeoV
22250fe9cc Add Wrapper for CDR and ExternalCDR and use it in methods 2019-04-08 17:59:57 +02:00
TeoV
c878c7b6e9 Consider ArgDispatcher for Agents and subsystems 2019-04-07 18:23:31 +02:00
TeoV
8519a40e34 Add ArgDispatcher in Arguments from SessionS, ThresholdS, SupplierS, etc... 2019-04-07 18:23:31 +02:00
DanB
772322e6f4 Redesign of CacheS init 2019-03-27 15:18:26 +01:00
TeoV
950907c366 Update Set/Remove ThresoldProfile 2019-03-25 17:40:51 +01:00
DanB
fa75764203 Guardian - better remote locking through reference IDs 2019-03-17 20:31:40 +01:00
TeoV
56b5532a3d Update integration tests 2019-03-13 15:10:55 +01:00
Trial97
dfda3ffe72 Added indexed_selects option per subsystem 2019-03-13 13:39:51 +01:00
DanB
c6fad981a6 DispatcherS.dispatcherForEvent method, exporting MatchingItemIDsForEvent from engine 2019-01-31 11:57:25 +01:00
TeoV
8af148da1a Remove CDRStats and LCR 2018-11-21 18:28:33 +01:00
Trial97
a4896dbc32 Added General config 2018-10-05 20:33:28 +03:00
TeoV
ed2b45d8b0 Clarify cacheRead/cacheWrite for stats 2018-09-25 17:14:46 +02:00
TeoV
fdd441179d Clarify cacheRead/cacheWrite for statProfiles 2018-09-24 17:54:33 +02:00
TeoV
a0131b72af Adding option to disable threshold processing via *none 2018-08-31 13:09:16 +02:00
TeoV
cf24c1919f Add StatIDs option for Stat ProcessEvent 2018-08-31 13:09:16 +02:00
TeoV
6d1a3f07fd Move DataProvider,NavigableMap,RsrParser into config package 2018-08-30 11:40:06 +02:00
TeoV
3a70ba1d46 Add locking for matchItemIDForEvent fixes #1128 2018-07-06 17:46:23 +02:00
TeoV
509ed8a959 Add option indexed_selects in filter cfg 2018-07-05 13:06:15 +02:00
DanB
73552ef89c NavigableMap with ordered items 2018-06-13 18:34:46 +02:00
DanB
95e38104bb NavigableMap moved to engine, DataProvider interface with AsNavigableMap method 2018-06-12 15:28:10 +02:00
DanB
b3ed751e28 FilterS.Pass over DataProvider interface 2018-06-11 18:23:14 +02:00
TeoV
dbff560dfb Stats Process Event return now StatQueueIDs 2018-05-22 14:39:46 +02:00
TeoV
e55d6629dc Update Threshold ProcessEvent in Stats and Resource 2018-05-17 12:57:10 +02:00
DanB
ec843eb9e0 Adding locking for statQueues, fixes #1067 2018-05-09 19:59:41 +02:00
DanB
92a5b349fb Protect new subsystems against empty event in APIs 2018-04-23 18:27:36 +02:00
DanB
9d196c1427 Engine using TransCache instead of built-in 2018-03-06 17:20:04 +01:00
TeoV
1984934ae3 CDRS sendind rated cdr to statS 2018-02-28 15:32:30 +01:00
TeoV
0c718a919c Recompute filter indexes to use transactions and resolve connection between statS/resourceS and thresholdS 2018-02-27 14:26:32 +01:00