mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Basic RankingS implementation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user