added sars model,tp,api

This commit is contained in:
gezimbll
2024-06-24 11:06:57 -04:00
committed by Dan Christian Bogos
parent 9d7fcdc0c6
commit 6c2fbbec28
43 changed files with 1401 additions and 24 deletions

View File

@@ -104,6 +104,9 @@ type DataDB interface {
SetSagProfileDrv(sq *SagProfile) (err error)
GetSagProfileDrv(tenant string, id string) (sq *SagProfile, err error)
RemSagProfileDrv(tenant string, id string) (err error)
SetSarProfileDrv(sq *SarProfile) (err error)
GetSarProfileDrv(tenant string, id string) (sq *SarProfile, err error)
RemSarProfileDrv(tenant string, id string) (err error)
GetThresholdProfileDrv(tenant string, ID string) (tp *ThresholdProfile, err error)
SetThresholdProfileDrv(tp *ThresholdProfile) (err error)
RemThresholdProfileDrv(tenant, id string) (err error)
@@ -176,6 +179,7 @@ type LoadReader interface {
GetTPAccountActions(*utils.TPAccountActions) ([]*utils.TPAccountActions, error)
GetTPResources(string, string, string) ([]*utils.TPResourceProfile, error)
GetTPStats(string, string, string) ([]*utils.TPStatProfile, error)
GetTPSars(string, string, string) ([]*utils.TPSarsProfile, error)
GetTPSags(string, string, string) ([]*utils.TPSagsProfile, error)
GetTPThresholds(string, string, string) ([]*utils.TPThresholdProfile, error)
GetTPFilters(string, string, string) ([]*utils.TPFilterProfile, error)
@@ -201,6 +205,7 @@ type LoadWriter interface {
SetTPAccountActions([]*utils.TPAccountActions) error
SetTPResources([]*utils.TPResourceProfile) error
SetTPStats([]*utils.TPStatProfile) error
SetTPSars([]*utils.TPSarsProfile) error
SetTPSags([]*utils.TPSagsProfile) error
SetTPThresholds([]*utils.TPThresholdProfile) error
SetTPFilters([]*utils.TPFilterProfile) error