Add stats APIs and fill in context where needed

This commit is contained in:
ionutboangiu
2021-05-24 15:52:34 +03:00
committed by Dan Christian Bogos
parent a9c3c8b937
commit 9ee73dd1ae
5 changed files with 241 additions and 78 deletions

View File

@@ -60,12 +60,12 @@ type DataDB interface {
SetIndexesDrv(ctx *context.Context, idxItmType, tntCtx string,
indexes map[string]utils.StringSet, commit bool, transactionID string) (err error)
RemoveIndexesDrv(idxItmType, tntCtx, idxKey string) (err error)
GetStatQueueProfileDrv(tenant string, ID string) (sq *StatQueueProfile, err error)
SetStatQueueProfileDrv(sq *StatQueueProfile) (err error)
RemStatQueueProfileDrv(tenant, id string) (err error)
GetStatQueueDrv(tenant, id string) (sq *StatQueue, err error)
SetStatQueueDrv(ssq *StoredStatQueue, sq *StatQueue) (err error)
RemStatQueueDrv(tenant, id string) (err error)
GetStatQueueProfileDrv(ctx *context.Context, tenant string, ID string) (sq *StatQueueProfile, err error)
SetStatQueueProfileDrv(ctx *context.Context, sq *StatQueueProfile) (err error)
RemStatQueueProfileDrv(ctx *context.Context, tenant, id string) (err error)
GetStatQueueDrv(ctx *context.Context, tenant, id string) (sq *StatQueue, err error)
SetStatQueueDrv(ctx *context.Context, ssq *StoredStatQueue, sq *StatQueue) (err error)
RemStatQueueDrv(ctx *context.Context, tenant, id string) (err error)
GetThresholdProfileDrv(ctx *context.Context, tenant string, ID string) (tp *ThresholdProfile, err error)
SetThresholdProfileDrv(ctx *context.Context, tp *ThresholdProfile) (err error)
RemThresholdProfileDrv(ctx *context.Context, tenant, id string) (err error)