mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated console commands with constants
This commit is contained in:
committed by
Dan Christian Bogos
parent
dd48ce1057
commit
1146e2ef2f
@@ -18,15 +18,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
package console
|
||||
|
||||
import "github.com/cgrates/cgrates/engine"
|
||||
import (
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
c := &CmdGetMaxUsage{
|
||||
name: "maxusage",
|
||||
rpcMethod: "APIerSv1.GetMaxUsage",
|
||||
clientArgs: []string{"ToR", "RequestType", "Tenant",
|
||||
"Category", "Account", "Subject", "Destination",
|
||||
"SetupTime", "AnswerTime", "Usage", "ExtraFields"},
|
||||
rpcMethod: utils.APIerSv1GetMaxUsage,
|
||||
clientArgs: []string{utils.ToR, utils.RequestType, utils.Tenant,
|
||||
utils.Category, utils.Account, utils.Subject, utils.Destination,
|
||||
utils.SetupTime, utils.AnswerTime, utils.Usage, utils.ExtraFields},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
|
||||
Reference in New Issue
Block a user