mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
updated sags service name to ranking
This commit is contained in:
committed by
Dan Christian Bogos
parent
4d4392d196
commit
85bd7a50e7
@@ -296,11 +296,11 @@ CREATE TABLE tp_stats (
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for tabls `tp_sags`
|
||||
-- Table structure for tabls `tp_rankings`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_sags;
|
||||
CREATE TABLE tp_sags(
|
||||
DROP TABLE IF EXISTS tp_rankings;
|
||||
CREATE TABLE tp_rankings(
|
||||
`pk` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`tpid` varchar(64) NOT NULL,
|
||||
`tenant` varchar(64) NOT NULL,
|
||||
@@ -314,7 +314,7 @@ CREATE TABLE tp_sags(
|
||||
`created_at` TIMESTAMP,
|
||||
PRIMARY KEY (`pk`),
|
||||
KEY `tpid` (`tpid`),
|
||||
UNIQUE KEY `unique_tp_sags` (`tpid`,`tenant`,`id`,`stat_ids`)
|
||||
UNIQUE KEY `unique_tp_rankings` (`tpid`,`tenant`,`id`,`stat_ids`)
|
||||
);
|
||||
|
||||
--
|
||||
|
||||
@@ -290,11 +290,11 @@ CREATE INDEX tp_stats_idx ON tp_stats (tpid);
|
||||
CREATE INDEX tp_stats_unique ON tp_stats ("tpid","tenant", "id", "filter_ids","metric_ids");
|
||||
|
||||
--
|
||||
-- Table structure for table `tp_sags`
|
||||
-- Table structure for table `tp_rankings`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS tp_sags;
|
||||
CREATE TABLE tp_sags(
|
||||
DROP TABLE IF EXISTS tp_rankings;
|
||||
CREATE TABLE tp_rankings(
|
||||
"pk" SERIAL PRIMARY KEY,
|
||||
"tpid" varchar(64) NOT NULL,
|
||||
"tenant" varchar(64) NOT NULL,
|
||||
@@ -307,8 +307,8 @@ CREATE TABLE tp_sags(
|
||||
"threshold_ids" varchar(64) NOT NULL,
|
||||
"created_at" TIMESTAMP WITH TIME ZONE
|
||||
);
|
||||
CREATE INDEX tp_sags_idx ON tp_sags (tpid);
|
||||
CREATE INDEX tp_sags_unique ON tp_sags ("tpid","tenant", "id","stat_ids");
|
||||
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 tabls `tp_trends`
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#Tenant[0],Id[1],QueryInterval[2],StatIDs[2],MetricIDs[3],Sorting[4],SortingParameters[5],ThresholdIDs[6]
|
||||
cgrates.org,SAGS1,15m,Stats2;Stats3;Stats4,Metric1;Metric3,*asc,,TD1;THD2
|
||||
cgrates.org,RANK1,15m,Stats2;Stats3;Stats4,Metric1;Metric3,*asc,,TD1;THD2
|
||||
|
Reference in New Issue
Block a user