mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-19 22:28:45 +05:00
Added Tenant field to TPstats
This commit is contained in:
@@ -36,6 +36,7 @@ func (self *ApierV1) SetTPStat(attr utils.TPStats, reply *string) error {
|
||||
|
||||
type AttrGetTPStat struct {
|
||||
TPid string // Tariff plan id
|
||||
Tenant string
|
||||
ID string
|
||||
}
|
||||
|
||||
@@ -57,6 +58,7 @@ func (self *ApierV1) GetTPStat(attr AttrGetTPStat, reply *utils.TPStats) error {
|
||||
|
||||
type AttrGetTPStatIds struct {
|
||||
TPid string // Tariff plan id
|
||||
Tenant string
|
||||
utils.Paginator
|
||||
}
|
||||
|
||||
|
||||
@@ -126,6 +126,7 @@ func testTPStatsGetTPStatBeforeSet(t *testing.T) {
|
||||
|
||||
func testTPStatsSetTPStat(t *testing.T) {
|
||||
tpStat = &utils.TPStats{
|
||||
Tenant: "Tester",
|
||||
TPid: "TPS1",
|
||||
ID: "Stat1",
|
||||
Filters: []*utils.TPRequestFilter{
|
||||
|
||||
Reference in New Issue
Block a user