mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 06:38:45 +05:00
rankings,trends: added implementation,services and tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
766a717b3c
commit
132a2b3bf9
@@ -76,6 +76,29 @@ CREATE TABLE tp_trends(
|
||||
CREATE INDEX tp_trends_idx ON tp_trends(tpid);
|
||||
CREATE INDEX tp_trends_unique ON tp_trends("tpid","tenant","id","stat_id");
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `tp_rankings`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_rankings;
|
||||
CREATE TABLE tp_rankings(
|
||||
"pk" SERIAL PRIMARY KEY,
|
||||
"tpid" varchar(64) NOT NULL,
|
||||
"tenant" varchar(64) NOT NULL,
|
||||
"id" varchar(64) NOT NULL,
|
||||
"schedule" varchar(32) NOT NULL,
|
||||
"stat_ids" varchar(64) NOT NULL,
|
||||
"metric_ids" varchar(64) NOT NULL,
|
||||
"sorting" varchar(32) NOT NULL,
|
||||
"sorting_parameters" varchar(64) NOT NULL,
|
||||
"stored" BOOLEAN NOT NULL,
|
||||
"threshold_ids" varchar(64) NOT NULL,
|
||||
"created_at" TIMESTAMP WITH TIME ZONE
|
||||
);
|
||||
CREATE INDEX tp_rankings_idx ON tp_rankings (tpid);
|
||||
CREATE INDEX tp_rankings_unique ON tp_rankings ("tpid","tenant", "id","stat_ids");
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `tp_threshold_cfgs`
|
||||
|
||||
Reference in New Issue
Block a user