Basic RankingS implementation

This commit is contained in:
DanB
2024-10-16 18:42:13 +02:00
parent 762896c3d7
commit 4d7cb6c88a
7 changed files with 660 additions and 35 deletions

View File

@@ -1660,7 +1660,7 @@ type ArgScheduleTrendQueries struct {
}
type ArgScheduledTrends struct {
TenantIDWithAPIOpts
TrendIDPrefix []string
TrendIDPrefixes []string
}
type ArgGetTrend struct {
@@ -1675,5 +1675,21 @@ type ArgGetTrend struct {
type ScheduledTrend struct {
TrendID string
Next time.Time
Prev time.Time
Previous time.Time
}
type ArgScheduleRankingQueries struct {
TenantIDWithAPIOpts
RankingIDs []string
}
type ArgScheduledRankings struct {
TenantIDWithAPIOpts
RankingIDPrefixes []string
}
type ScheduledRanking struct {
RankingID string
Next time.Time
Previous time.Time
}

View File

@@ -512,7 +512,9 @@ const (
TotalUsage = "TotalUsage"
StatID = "StatID"
StatIDs = "StatIDs"
SortedStatIDs = "SortedStatIDs"
TrendID = "TrendID"
RankingID = "RankingID"
BalanceType = "BalanceType"
BalanceID = "BalanceID"
BalanceDestinationIds = "BalanceDestinationIds"
@@ -529,6 +531,7 @@ const (
AccountUpdate = "AccountUpdate"
StatUpdate = "StatUpdate"
TrendUpdate = "TrendUpdate"
RankingUpdate = "RankingUpdate"
ResourceUpdate = "ResourceUpdate"
CDR = "CDR"
CDRs = "CDRs"
@@ -1993,6 +1996,7 @@ const (
CacheRankingProfiles = "*ranking_profiles"
CacheTrendProfiles = "*trend_profiles"
CacheTrends = "*trends"
CacheRankings = "*rankings"
CacheThresholdProfiles = "*threshold_profiles"
CacheThresholds = "*thresholds"
CacheFilters = "*filters"