mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Uniformize the commands in cgr-console between profile and subsystem
This commit is contained in:
committed by
Dan Christian Bogos
parent
f95693795a
commit
ab2f91c71d
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetAttributes{
|
||||
name: "attributes",
|
||||
name: "attribute_profile",
|
||||
rpcMethod: utils.APIerSv1GetAttributeProfile,
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetAttributeIDs{
|
||||
name: "attribute_ids",
|
||||
name: "attribute_profile_ids",
|
||||
rpcMethod: utils.APIerSv1GetAttributeProfileIDs,
|
||||
rpcParams: &utils.TenantArgWithPaginator{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveAttributes{
|
||||
name: "attributes_remove",
|
||||
name: "attribute_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveAttributeProfile,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetAttributes{
|
||||
name: "attributes_set",
|
||||
name: "attribute_profile_set",
|
||||
rpcMethod: utils.APIerSv2SetAttributeProfile,
|
||||
rpcParams: &v2.AttributeWithCache{},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetChargers{
|
||||
name: "chargers",
|
||||
name: "charger_profile",
|
||||
rpcMethod: utils.APIerSv1GetChargerProfile,
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetChargerIDs{
|
||||
name: "chargers_ids",
|
||||
name: "charger_profile_ids",
|
||||
rpcMethod: utils.APIerSv1GetChargerProfileIDs,
|
||||
rpcParams: &utils.TenantArgWithPaginator{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveChargers{
|
||||
name: "chargers_remove",
|
||||
name: "charger_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveChargerProfile,
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetChargers{
|
||||
name: "chargers_set",
|
||||
name: "charger_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetChargerProfile,
|
||||
rpcParams: &v1.ChargerWithCache{},
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveDispatcherHost{
|
||||
name: "dispatcher_host_remove",
|
||||
name: "dispatcher_host_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveDispatcherHost,
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetDispatcherProfile{
|
||||
name: "dispatcherprofile_get",
|
||||
name: "dispatcher_profile",
|
||||
rpcMethod: utils.APIerSv1GetDispatcherProfile,
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetDispatcherProfileIDs{
|
||||
name: "dispatcherprofile_ids",
|
||||
name: "dispatcher_profile_ids",
|
||||
rpcMethod: utils.APIerSv1GetDispatcherProfileIDs,
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveDispatcherProfile{
|
||||
name: "dispatcherprofile_remove",
|
||||
name: "dispatcher_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveDispatcherProfile,
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetDispatcherProfile{
|
||||
name: "dispatcherprofile_set",
|
||||
name: "dispatcher_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetDispatcherProfile,
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdDispatcherProfile{
|
||||
name: "dispatcherprofile",
|
||||
name: "dispatches_for_event",
|
||||
rpcMethod: utils.DispatcherSv1GetProfileForEvent,
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveFilter{
|
||||
name: "filter_remove",
|
||||
name: "filter_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveFilter,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetRateProfile{
|
||||
name: "rateprofile",
|
||||
name: "rate_profile",
|
||||
rpcMethod: utils.APIerSv1GetRateProfile,
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdRateProfileIDs{
|
||||
name: "rateprofile_ids",
|
||||
name: "rate_profile_ids",
|
||||
rpcMethod: utils.APIerSv1GetRateProfileIDs,
|
||||
rpcParams: &utils.TenantArgWithPaginator{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveRateProfile{
|
||||
name: "rateprofile_remove",
|
||||
name: "rate_profile_remove",
|
||||
rpcMethod: utils.APIerSv1RemoveRateProfile,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetRateProfile{
|
||||
name: "rateprofile_set",
|
||||
name: "rate_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetRateProfile,
|
||||
rpcParams: &v1.RateProfileWithCache{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveResource{
|
||||
name: "resource_remove",
|
||||
name: "resource_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveResourceProfile,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetResource{
|
||||
name: "resource_set",
|
||||
name: "resource_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetResourceProfile,
|
||||
rpcParams: &v1.ResourceWithCache{},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetRoute{
|
||||
name: "route_get",
|
||||
name: "route_profile",
|
||||
rpcMethod: utils.APIerSv1GetRouteProfile,
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveRoute{
|
||||
name: "route_remove",
|
||||
name: "route_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveRouteProfile,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetRoute{
|
||||
name: "route_set",
|
||||
name: "route_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetRouteProfile,
|
||||
rpcParams: &v1.RouteWithCache{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveStatQueue{
|
||||
name: "statqueue_remove",
|
||||
name: "statqueue_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveStatQueueProfile,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetStatQueue{
|
||||
name: "statqueue_set",
|
||||
name: "statqueue_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetStatQueueProfile,
|
||||
rpcParams: &engine.StatQueueWithCache{},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveThreshold{
|
||||
name: "threshold_remove",
|
||||
name: "threshold_profile_rem",
|
||||
rpcMethod: utils.APIerSv1RemoveThresholdProfile,
|
||||
rpcParams: &utils.TenantIDWithCache{},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdSetThreshold{
|
||||
name: "threshold_set",
|
||||
name: "threshold_profile_set",
|
||||
rpcMethod: utils.APIerSv1SetThresholdProfile,
|
||||
rpcParams: &engine.ThresholdWithCache{},
|
||||
}
|
||||
Reference in New Issue
Block a user