Commit Graph

171 Commits

Author SHA1 Message Date
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
ionutboangiu
9b406acf71 Make usageTTL opt a pointer to be able to determine whether or not it has been set in config 2021-11-17 18:50:03 +01:00
ionutboangiu
e374e3fa6c Use the newly implemented functions to retrieve opts 2021-11-17 18:50:03 +01:00
ionutboangiu
007cc0e7c8 Replace ArgRSv1ResourceUsage struct with CGREvent and fix tests 2021-11-11 12:22:41 +02:00
ionutboangiu
89782f8bdb Add opts for resources and fix compilation errors 2021-11-11 12:22:41 +02:00
ionutboangiu
777580a06e Add opts field for thresholds cfg struct and use the CGREvent instead of the ArgsProcessEvent struct 2021-11-05 21:15:50 +02:00
ionutboangiu
e6d7a71aa7 Remove error handling for recordUsage 2021-07-31 15:29:46 +02:00
ionutboangiu
0e4ae73958 Fix typo loopStoped -> loopStopped 2021-07-31 15:29:46 +02:00
Trial97
d024f97f31 Updated threshold caching 2021-07-29 08:43:49 +02:00
Trial97
28fbb85882 Updated stats caching 2021-07-29 08:43:49 +02:00
Trial97
8aad584997 Updated resource caching 2021-07-29 08:43:49 +02:00
Trial97
b0d01452ef Updated treshold handling in resources 2021-07-23 10:57:08 +02:00
Trial97
87f0026573 Updated resource error handling 2021-07-23 10:57:08 +02:00
Trial97
b0c6e59740 Added tests for resources 2021-07-23 10:57:08 +02:00
ionutboangiu
1db0390b16 Change utils.PrefixSliceItems function signature to start with prefix 2021-07-19 16:54:57 +02:00
Trial97
d8e44865b2 Updated resources unit tests 2021-07-19 15:37:19 +02:00
DanB
1d8577d0cf Resources locking at API level 2021-07-19 14:10:49 +02:00
Trial97
492946d363 Updated Resource handling in datamanager 2021-05-21 17:11:28 +02:00
Trial97
ccbccb8ff7 Updated threshold processing for resources 2021-05-21 14:14:53 +02:00
ionutboangiu
7e7a1ded59 Add reason as comment for ignoring returned error in allocateResource 2021-05-11 20:55:08 +02:00
ionutboangiu
7fce3f2bff Give up on handling error returned by clearUsage() from allocateResource func in resources.go 2021-05-10 16:59:20 +02:00
Trial97
5afa506300 Updated resource removeExpiredUnits 2021-05-07 10:54:12 +02:00
nickolasdaniel
76a53556ce Renamed AllocateResource and ReleaseResource to their plural in /apier/v1 2021-05-05 16:10:32 +02:00
andronache
806c8295be Finished changing Opts to APIOpts for structs used in api_interfaces 2021-03-23 14:35:11 +01:00
andronache
32c234a6c7 In CGREvent changed Opts in APIOpts 2021-03-23 14:35:11 +01:00
andronache
c61e2046f3 Changed in multiple structs the field Opts to APIOpts 2021-03-18 16:48:54 +01:00
andronache
a6f41adaf9 Replaced TenantIDWithOpts with TenantIDWithAPIOpts 2021-03-18 13:04:28 +01:00
Trial97
f2c9ca3530 Fixed typo in license header 2021-03-10 16:22:37 +01:00
andronache
2edfd207d2 Refactoring and tests in services 2021-02-25 18:14:21 +01:00
porosnicuadrian
245f690b78 Fixed integration tests for stats/resources for internal 2021-02-22 18:11:44 +01:00
porosnicuadrian
2ccf3f7fa5 New type ResourceWithConfig + Available method 2021-02-19 19:15:47 +01:00
porosnicuadrian
f74608dedc New availabale method + integration test 2021-02-19 19:15:47 +01:00
root
e82c853fa3 Refactoring in services 2021-02-16 16:26:44 +01:00
andronache
322bfe1d9f rename 2021-01-19 13:13:34 +01:00
andronache
3ce3e04417 Refactored tests in engine 2021-01-19 13:13:34 +01:00
TeoV
ae146640f4 Start merging CGREventWithOpts with CGREvent 2021-01-14 10:30:35 +01:00
andronache
4ff3b9242d Consts in utils 2021-01-07 18:15:35 +01:00
andronache
1470267727 Modified consts in utils 2021-01-07 18:15:35 +01:00
Trial97
f63dc62519 Updated integration tests 2020-12-09 17:00:04 +01:00
Trial97
114e8e9504 Started moving Destinations caching in datamanager 2020-12-04 18:44:27 +01:00
Trial97
a81fce8341 Updated services shutdown 2020-11-16 10:11:46 +01:00
porosnicuadrian
cbc3151a95 Updated tests and methods for resourcesv1 with tenant default value 2020-10-15 12:43:40 +02:00
Trial97
61d2b4e922 Added *eventType to opts for process threhold 2020-10-09 14:27:48 +02:00
Trial97
5c558545bd Removed old threshold connection from resources 2020-10-06 13:03:55 +02:00
TeoV
863e9b719d Add integration test for Unlimited resource ( for monitoring ) 2020-10-04 11:19:01 +02:00
TeoV
01a0e4fecf In case of setting the same resource update it 2020-09-30 12:26:21 +02:00
Trial97
d606a60eab Finished replacing ArgDispatcher with Opts 2020-07-30 11:17:57 +02:00
Trial97
11dac21b88 Starting replacing ArgDispatcher with Opts 2020-07-30 11:17:57 +02:00
TeoV
05e2377d3c Add infrastructure for *suffix filter indexes 2020-07-30 11:13:37 +02:00
Trial97
b0c354c7c1 Updated filter indexes to only index dynamic path 2020-07-24 15:11:45 +02:00