From 8af77aca0a459e9a87a2092837bb008bb514e06f Mon Sep 17 00:00:00 2001 From: TeoV Date: Wed, 19 Aug 2020 11:34:43 +0300 Subject: [PATCH] Update console commands to have a common format --- console/{attribute_profile.go => attributes_profile.go} | 2 +- console/{attribute_profile_ids.go => attributes_profile_ids.go} | 2 +- console/{attribute_profile_rem.go => attributes_profile_rem.go} | 2 +- console/{attribute_profile_set.go => attributes_profile_set.go} | 2 +- console/{charger_profile.go => chargers_profile.go} | 2 +- console/{charger_profile_ids.go => chargers_profile_ids.go} | 2 +- console/{charger_profile_rem.go => chargers_profile_rem.go} | 2 +- console/{charger_profile_set.go => chargers_profile_set.go} | 2 +- console/{dispatcher_host.go => dispatchers_host.go} | 2 +- console/{dispatcher_host_ids.go => dispatchers_host_ids.go} | 2 +- console/{dispatcher_host_rem.go => dispatchers_host_rem.go} | 2 +- console/{dispatcher_host_set.go => dispatchers_host_set.go} | 2 +- console/{dispatcher_profile.go => dispatchers_profile.go} | 2 +- .../{dispatcher_profile_ids.go => dispatchers_profile_ids.go} | 2 +- .../{dispatcher_profile_rem.go => dispatchers_profile_rem.go} | 2 +- .../{dispatcher_profile_set.go => dispatchers_profile_set.go} | 2 +- console/{filter_rem.go => filter_remove.go} | 2 +- console/{rate_profile.go => rates_profile.go} | 2 +- console/{rate_profile_ids.go => rates_profile_ids.go} | 2 +- console/{rate_profile_rem.go => rates_profile_remove.go} | 2 +- console/{rate_profile_set.go => rates_profile_set.go} | 2 +- console/{ratingprofile_rem.go => ratingprofile_remove.go} | 2 +- console/{resource.go => resources.go} | 2 +- console/{resource_profile.go => resources_profile.go} | 2 +- console/{resource_ids.go => resources_profile_ids.go} | 2 +- console/{resource_profile_rem.go => resources_profile_rem.go} | 2 +- console/{resource_profile_set.go => resources_profile_set.go} | 2 +- console/{route_profile.go => routes_profile.go} | 2 +- console/{route_ids.go => routes_profile_ids.go} | 2 +- console/{route_profile_rem.go => routes_profile_remove.go} | 2 +- console/{route_profile_set.go => routes_profile_set.go} | 2 +- ...route_profiles_for_event.go => routes_profiles_for_event.go} | 2 +- console/{statqueue_profile.go => stats_profile.go} | 2 +- console/{statqueue_ids.go => stats_profile_ids.go} | 2 +- console/{statqueue_profile_rem.go => stats_profile_rem.go} | 2 +- console/{statqueue_profile_set.go => stats_profile_set.go} | 2 +- console/{threshold_profile.go => thresholds_profile.go} | 2 +- console/{threshold_ids.go => thresholds_profile_ids.go} | 2 +- .../{threshold_profile_rem.go => thresholds_profile_remove.go} | 2 +- console/{threshold_profile_set.go => thresholds_profile_set.go} | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) rename console/{attribute_profile.go => attributes_profile.go} (97%) rename console/{attribute_profile_ids.go => attributes_profile_ids.go} (97%) rename console/{attribute_profile_rem.go => attributes_profile_rem.go} (97%) rename console/{attribute_profile_set.go => attributes_profile_set.go} (97%) rename console/{charger_profile.go => chargers_profile.go} (98%) rename console/{charger_profile_ids.go => chargers_profile_ids.go} (97%) rename console/{charger_profile_rem.go => chargers_profile_rem.go} (97%) rename console/{charger_profile_set.go => chargers_profile_set.go} (97%) rename console/{dispatcher_host.go => dispatchers_host.go} (98%) rename console/{dispatcher_host_ids.go => dispatchers_host_ids.go} (97%) rename console/{dispatcher_host_rem.go => dispatchers_host_rem.go} (97%) rename console/{dispatcher_host_set.go => dispatchers_host_set.go} (97%) rename console/{dispatcher_profile.go => dispatchers_profile.go} (97%) rename console/{dispatcher_profile_ids.go => dispatchers_profile_ids.go} (97%) rename console/{dispatcher_profile_rem.go => dispatchers_profile_rem.go} (97%) rename console/{dispatcher_profile_set.go => dispatchers_profile_set.go} (97%) rename console/{filter_rem.go => filter_remove.go} (98%) rename console/{rate_profile.go => rates_profile.go} (98%) rename console/{rate_profile_ids.go => rates_profile_ids.go} (97%) rename console/{rate_profile_rem.go => rates_profile_remove.go} (97%) rename console/{rate_profile_set.go => rates_profile_set.go} (98%) rename console/{ratingprofile_rem.go => ratingprofile_remove.go} (97%) rename console/{resource.go => resources.go} (98%) rename console/{resource_profile.go => resources_profile.go} (98%) rename console/{resource_ids.go => resources_profile_ids.go} (97%) rename console/{resource_profile_rem.go => resources_profile_rem.go} (97%) rename console/{resource_profile_set.go => resources_profile_set.go} (97%) rename console/{route_profile.go => routes_profile.go} (98%) rename console/{route_ids.go => routes_profile_ids.go} (97%) rename console/{route_profile_rem.go => routes_profile_remove.go} (97%) rename console/{route_profile_set.go => routes_profile_set.go} (97%) rename console/{route_profiles_for_event.go => routes_profiles_for_event.go} (97%) rename console/{statqueue_profile.go => stats_profile.go} (98%) rename console/{statqueue_ids.go => stats_profile_ids.go} (97%) rename console/{statqueue_profile_rem.go => stats_profile_rem.go} (97%) rename console/{statqueue_profile_set.go => stats_profile_set.go} (97%) rename console/{threshold_profile.go => thresholds_profile.go} (98%) rename console/{threshold_ids.go => thresholds_profile_ids.go} (97%) rename console/{threshold_profile_rem.go => thresholds_profile_remove.go} (97%) rename console/{threshold_profile_set.go => thresholds_profile_set.go} (97%) diff --git a/console/attribute_profile.go b/console/attributes_profile.go similarity index 97% rename from console/attribute_profile.go rename to console/attributes_profile.go index 659550874..96b36f993 100644 --- a/console/attribute_profile.go +++ b/console/attributes_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetAttributes{ - name: "attribute_profile", + name: "attributes_profile", rpcMethod: utils.APIerSv1GetAttributeProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/attribute_profile_ids.go b/console/attributes_profile_ids.go similarity index 97% rename from console/attribute_profile_ids.go rename to console/attributes_profile_ids.go index 362b20bbf..4149b8468 100644 --- a/console/attribute_profile_ids.go +++ b/console/attributes_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetAttributeIDs{ - name: "attribute_profile_ids", + name: "attributes_profile_ids", rpcMethod: utils.APIerSv1GetAttributeProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/attribute_profile_rem.go b/console/attributes_profile_rem.go similarity index 97% rename from console/attribute_profile_rem.go rename to console/attributes_profile_rem.go index 6c50c6c65..26e9ef006 100644 --- a/console/attribute_profile_rem.go +++ b/console/attributes_profile_rem.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveAttributes{ - name: "attribute_profile_rem", + name: "attributes_profile_remove", rpcMethod: utils.APIerSv1RemoveAttributeProfile, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/attribute_profile_set.go b/console/attributes_profile_set.go similarity index 97% rename from console/attribute_profile_set.go rename to console/attributes_profile_set.go index 2fe0ee64f..ed840560f 100644 --- a/console/attribute_profile_set.go +++ b/console/attributes_profile_set.go @@ -26,7 +26,7 @@ import ( func init() { c := &CmdSetAttributes{ - name: "attribute_profile_set", + name: "attributes_profile_set", rpcMethod: utils.APIerSv2SetAttributeProfile, rpcParams: &v2.AttributeWithCache{}, } diff --git a/console/charger_profile.go b/console/chargers_profile.go similarity index 98% rename from console/charger_profile.go rename to console/chargers_profile.go index f56a70a3b..f518a26cc 100644 --- a/console/charger_profile.go +++ b/console/chargers_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetChargers{ - name: "charger_profile", + name: "chargers_profile", rpcMethod: utils.APIerSv1GetChargerProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/charger_profile_ids.go b/console/chargers_profile_ids.go similarity index 97% rename from console/charger_profile_ids.go rename to console/chargers_profile_ids.go index ce1641fcb..360ff1fb9 100644 --- a/console/charger_profile_ids.go +++ b/console/chargers_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetChargerIDs{ - name: "charger_profile_ids", + name: "chargers_profile_ids", rpcMethod: utils.APIerSv1GetChargerProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/charger_profile_rem.go b/console/chargers_profile_rem.go similarity index 97% rename from console/charger_profile_rem.go rename to console/chargers_profile_rem.go index bdac93bc0..c312570a1 100644 --- a/console/charger_profile_rem.go +++ b/console/chargers_profile_rem.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveChargers{ - name: "charger_profile_rem", + name: "chargers_profile_remove", rpcMethod: utils.APIerSv1RemoveChargerProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/charger_profile_set.go b/console/chargers_profile_set.go similarity index 97% rename from console/charger_profile_set.go rename to console/chargers_profile_set.go index b6a48f042..1b759d0d6 100644 --- a/console/charger_profile_set.go +++ b/console/chargers_profile_set.go @@ -26,7 +26,7 @@ import ( func init() { c := &CmdSetChargers{ - name: "charger_profile_set", + name: "chargers_profile_set", rpcMethod: utils.APIerSv1SetChargerProfile, rpcParams: &v1.ChargerWithCache{}, } diff --git a/console/dispatcher_host.go b/console/dispatchers_host.go similarity index 98% rename from console/dispatcher_host.go rename to console/dispatchers_host.go index f491cf07c..34ef01d61 100644 --- a/console/dispatcher_host.go +++ b/console/dispatchers_host.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetDispatcherHost{ - name: "dispatcher_host", + name: "dispatchers_host", rpcMethod: utils.APIerSv1GetDispatcherHost, } commands[c.Name()] = c diff --git a/console/dispatcher_host_ids.go b/console/dispatchers_host_ids.go similarity index 97% rename from console/dispatcher_host_ids.go rename to console/dispatchers_host_ids.go index 650255563..f4b9b1885 100644 --- a/console/dispatcher_host_ids.go +++ b/console/dispatchers_host_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetDispatcherHostIDs{ - name: "dispatcher_host_ids", + name: "dispatchers_host_ids", rpcMethod: utils.APIerSv1GetDispatcherHostIDs, } commands[c.Name()] = c diff --git a/console/dispatcher_host_rem.go b/console/dispatchers_host_rem.go similarity index 97% rename from console/dispatcher_host_rem.go rename to console/dispatchers_host_rem.go index 7b298dc8e..032576b75 100644 --- a/console/dispatcher_host_rem.go +++ b/console/dispatchers_host_rem.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdRemoveDispatcherHost{ - name: "dispatcher_host_rem", + name: "dispatchers_host_remove", rpcMethod: utils.APIerSv1RemoveDispatcherHost, } commands[c.Name()] = c diff --git a/console/dispatcher_host_set.go b/console/dispatchers_host_set.go similarity index 97% rename from console/dispatcher_host_set.go rename to console/dispatchers_host_set.go index a88f34914..74368a0c7 100644 --- a/console/dispatcher_host_set.go +++ b/console/dispatchers_host_set.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdSetDispatcherHost{ - name: "dispatcher_host_set", + name: "dispatchers_host_set", rpcMethod: utils.APIerSv1SetDispatcherHost, } commands[c.Name()] = c diff --git a/console/dispatcher_profile.go b/console/dispatchers_profile.go similarity index 97% rename from console/dispatcher_profile.go rename to console/dispatchers_profile.go index aa9805068..8687c31f7 100644 --- a/console/dispatcher_profile.go +++ b/console/dispatchers_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetDispatcherProfile{ - name: "dispatcher_profile", + name: "dispatchers_profile", rpcMethod: utils.APIerSv1GetDispatcherProfile, } commands[c.Name()] = c diff --git a/console/dispatcher_profile_ids.go b/console/dispatchers_profile_ids.go similarity index 97% rename from console/dispatcher_profile_ids.go rename to console/dispatchers_profile_ids.go index 447089fc3..b58055377 100644 --- a/console/dispatcher_profile_ids.go +++ b/console/dispatchers_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetDispatcherProfileIDs{ - name: "dispatcher_profile_ids", + name: "dispatchers_profile_ids", rpcMethod: utils.APIerSv1GetDispatcherProfileIDs, } commands[c.Name()] = c diff --git a/console/dispatcher_profile_rem.go b/console/dispatchers_profile_rem.go similarity index 97% rename from console/dispatcher_profile_rem.go rename to console/dispatchers_profile_rem.go index 4e0d64cd5..7fee0edc0 100644 --- a/console/dispatcher_profile_rem.go +++ b/console/dispatchers_profile_rem.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdRemoveDispatcherProfile{ - name: "dispatcher_profile_rem", + name: "dispatchers_profile_remove", rpcMethod: utils.APIerSv1RemoveDispatcherProfile, } commands[c.Name()] = c diff --git a/console/dispatcher_profile_set.go b/console/dispatchers_profile_set.go similarity index 97% rename from console/dispatcher_profile_set.go rename to console/dispatchers_profile_set.go index 137c4973c..947f6f3d8 100644 --- a/console/dispatcher_profile_set.go +++ b/console/dispatchers_profile_set.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdSetDispatcherProfile{ - name: "dispatcher_profile_set", + name: "dispatchers_profile_set", rpcMethod: utils.APIerSv1SetDispatcherProfile, } commands[c.Name()] = c diff --git a/console/filter_rem.go b/console/filter_remove.go similarity index 98% rename from console/filter_rem.go rename to console/filter_remove.go index e62c8343a..58d7ba296 100644 --- a/console/filter_rem.go +++ b/console/filter_remove.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveFilter{ - name: "filter_rem", + name: "filter_remove", rpcMethod: utils.APIerSv1RemoveFilter, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/rate_profile.go b/console/rates_profile.go similarity index 98% rename from console/rate_profile.go rename to console/rates_profile.go index 3d100c7e7..da71c55ef 100644 --- a/console/rate_profile.go +++ b/console/rates_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetRateProfile{ - name: "rate_profile", + name: "rates_profile", rpcMethod: utils.APIerSv1GetRateProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/rate_profile_ids.go b/console/rates_profile_ids.go similarity index 97% rename from console/rate_profile_ids.go rename to console/rates_profile_ids.go index 824c209fa..829ae5813 100644 --- a/console/rate_profile_ids.go +++ b/console/rates_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdRateProfileIDs{ - name: "rate_profile_ids", + name: "rates_profile_ids", rpcMethod: utils.APIerSv1GetRateProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/rate_profile_rem.go b/console/rates_profile_remove.go similarity index 97% rename from console/rate_profile_rem.go rename to console/rates_profile_remove.go index 82f5ce71b..c9d445bd6 100644 --- a/console/rate_profile_rem.go +++ b/console/rates_profile_remove.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveRateProfile{ - name: "rate_profile_remove", + name: "rates_profile_remove", rpcMethod: utils.APIerSv1RemoveRateProfile, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/rate_profile_set.go b/console/rates_profile_set.go similarity index 98% rename from console/rate_profile_set.go rename to console/rates_profile_set.go index 7fcbdcf8e..8fa3b0616 100644 --- a/console/rate_profile_set.go +++ b/console/rates_profile_set.go @@ -26,7 +26,7 @@ import ( func init() { c := &CmdSetRateProfile{ - name: "rate_profile_set", + name: "rates_profile_set", rpcMethod: utils.APIerSv1SetRateProfile, rpcParams: &v1.RateProfileWithCache{}, } diff --git a/console/ratingprofile_rem.go b/console/ratingprofile_remove.go similarity index 97% rename from console/ratingprofile_rem.go rename to console/ratingprofile_remove.go index ab5c0dc66..5c0287c84 100644 --- a/console/ratingprofile_rem.go +++ b/console/ratingprofile_remove.go @@ -27,7 +27,7 @@ import ( func init() { c := &CmdRemRatingProfile{ - name: "ratingprofile_rem", + name: "ratingprofile_remove", rpcMethod: utils.APIerSv1RemoveRatingProfile, } commands[c.Name()] = c diff --git a/console/resource.go b/console/resources.go similarity index 98% rename from console/resource.go rename to console/resources.go index dc5d2dc28..2dc47796f 100644 --- a/console/resource.go +++ b/console/resources.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetResource{ - name: "resource", + name: "resources", rpcMethod: utils.ResourceSv1GetResource, rpcParams: &utils.TenantIDWithOpts{}, } diff --git a/console/resource_profile.go b/console/resources_profile.go similarity index 98% rename from console/resource_profile.go rename to console/resources_profile.go index 6e0c8d635..f3c53befb 100644 --- a/console/resource_profile.go +++ b/console/resources_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetResourceProfile{ - name: "resource_profile", + name: "resources_profile", rpcMethod: utils.APIerSv1GetResourceProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/resource_ids.go b/console/resources_profile_ids.go similarity index 97% rename from console/resource_ids.go rename to console/resources_profile_ids.go index e0273d9e9..86d246750 100644 --- a/console/resource_ids.go +++ b/console/resources_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetResourceIDs{ - name: "resource_ids", + name: "resources_profile_ids", rpcMethod: utils.APIerSv1GetResourceProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/resource_profile_rem.go b/console/resources_profile_rem.go similarity index 97% rename from console/resource_profile_rem.go rename to console/resources_profile_rem.go index 9bb750993..c0d13fee6 100644 --- a/console/resource_profile_rem.go +++ b/console/resources_profile_rem.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveResource{ - name: "resource_profile_rem", + name: "resources_profile_remove", rpcMethod: utils.APIerSv1RemoveResourceProfile, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/resource_profile_set.go b/console/resources_profile_set.go similarity index 97% rename from console/resource_profile_set.go rename to console/resources_profile_set.go index d6c189c9d..6b69eb647 100644 --- a/console/resource_profile_set.go +++ b/console/resources_profile_set.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdSetResource{ - name: "resource_profile_set", + name: "resources_profile_set", rpcMethod: utils.APIerSv1SetResourceProfile, rpcParams: &v1.ResourceWithCache{}, } diff --git a/console/route_profile.go b/console/routes_profile.go similarity index 98% rename from console/route_profile.go rename to console/routes_profile.go index 5f024f44a..6aba94094 100644 --- a/console/route_profile.go +++ b/console/routes_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetRoute{ - name: "route_profile", + name: "routes_profile", rpcMethod: utils.APIerSv1GetRouteProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/route_ids.go b/console/routes_profile_ids.go similarity index 97% rename from console/route_ids.go rename to console/routes_profile_ids.go index fab9ffd20..8719521fd 100644 --- a/console/route_ids.go +++ b/console/routes_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdRouteIDs{ - name: "route_ids", + name: "route_profile_ids", rpcMethod: utils.APIerSv1GetRouteProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/route_profile_rem.go b/console/routes_profile_remove.go similarity index 97% rename from console/route_profile_rem.go rename to console/routes_profile_remove.go index 76101a17d..3f7274885 100644 --- a/console/route_profile_rem.go +++ b/console/routes_profile_remove.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveRoute{ - name: "route_profile_rem", + name: "routes_profile_remove", rpcMethod: utils.APIerSv1RemoveRouteProfile, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/route_profile_set.go b/console/routes_profile_set.go similarity index 97% rename from console/route_profile_set.go rename to console/routes_profile_set.go index 0e95e577a..2d2984ec0 100644 --- a/console/route_profile_set.go +++ b/console/routes_profile_set.go @@ -26,7 +26,7 @@ import ( func init() { c := &CmdSetRoute{ - name: "route_profile_set", + name: "routes_profile_set", rpcMethod: utils.APIerSv1SetRouteProfile, rpcParams: &v1.RouteWithCache{}, } diff --git a/console/route_profiles_for_event.go b/console/routes_profiles_for_event.go similarity index 97% rename from console/route_profiles_for_event.go rename to console/routes_profiles_for_event.go index 993abd49f..f5409a4f8 100644 --- a/console/route_profiles_for_event.go +++ b/console/routes_profiles_for_event.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetRouteForEvent{ - name: "route_profiles_for_event", + name: "routes_profiles_for_event", rpcMethod: utils.RouteSv1GetRouteProfilesForEvent, rpcParams: &utils.CGREventWithOpts{}, } diff --git a/console/statqueue_profile.go b/console/stats_profile.go similarity index 98% rename from console/statqueue_profile.go rename to console/stats_profile.go index 3e8f36b40..ca2203f7b 100644 --- a/console/statqueue_profile.go +++ b/console/stats_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetStatQueueProfile{ - name: "statqueue_profile", + name: "stats_profile", rpcMethod: utils.APIerSv1GetStatQueueProfile, rpcParams: &utils.TenantID{}, } diff --git a/console/statqueue_ids.go b/console/stats_profile_ids.go similarity index 97% rename from console/statqueue_ids.go rename to console/stats_profile_ids.go index 27c66e176..16b6f06fb 100644 --- a/console/statqueue_ids.go +++ b/console/stats_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetStatQueueIDs{ - name: "statqueue_ids", + name: "stats_profile_ids", rpcMethod: utils.APIerSv1GetStatQueueProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/statqueue_profile_rem.go b/console/stats_profile_rem.go similarity index 97% rename from console/statqueue_profile_rem.go rename to console/stats_profile_rem.go index ba952c89f..7f8ad82cc 100644 --- a/console/statqueue_profile_rem.go +++ b/console/stats_profile_rem.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveStatQueue{ - name: "statqueue_profile_rem", + name: "stats_profile_remove", rpcMethod: utils.APIerSv1RemoveStatQueueProfile, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/statqueue_profile_set.go b/console/stats_profile_set.go similarity index 97% rename from console/statqueue_profile_set.go rename to console/stats_profile_set.go index dde6b4851..59956f909 100644 --- a/console/statqueue_profile_set.go +++ b/console/stats_profile_set.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdSetStatQueue{ - name: "statqueue_profile_set", + name: "stats_profile_set", rpcMethod: utils.APIerSv1SetStatQueueProfile, rpcParams: &engine.StatQueueWithCache{}, } diff --git a/console/threshold_profile.go b/console/thresholds_profile.go similarity index 98% rename from console/threshold_profile.go rename to console/thresholds_profile.go index 70092a06c..0ee3865df 100644 --- a/console/threshold_profile.go +++ b/console/thresholds_profile.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdGetThresholdProfile{ - name: "threshold_profile", + name: "thresholds_profile", rpcMethod: utils.APIerSv1GetThresholdProfile, rpcParams: &utils.TenantIDWithOpts{}, } diff --git a/console/threshold_ids.go b/console/thresholds_profile_ids.go similarity index 97% rename from console/threshold_ids.go rename to console/thresholds_profile_ids.go index df7b1cc30..ed2104321 100644 --- a/console/threshold_ids.go +++ b/console/thresholds_profile_ids.go @@ -24,7 +24,7 @@ import ( func init() { c := &CmdGetThresholdIDs{ - name: "threshold_ids", + name: "thresholds_profile_ids", rpcMethod: utils.APIerSv1GetThresholdProfileIDs, rpcParams: &utils.TenantArgWithPaginator{}, } diff --git a/console/threshold_profile_rem.go b/console/thresholds_profile_remove.go similarity index 97% rename from console/threshold_profile_rem.go rename to console/thresholds_profile_remove.go index 6b4c8b471..842ec5a1b 100644 --- a/console/threshold_profile_rem.go +++ b/console/thresholds_profile_remove.go @@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils" func init() { c := &CmdRemoveThreshold{ - name: "threshold_profile_rem", + name: "thresholds_profile_remove", rpcMethod: utils.APIerSv1RemoveThresholdProfile, rpcParams: &utils.TenantIDWithCache{}, } diff --git a/console/threshold_profile_set.go b/console/thresholds_profile_set.go similarity index 97% rename from console/threshold_profile_set.go rename to console/thresholds_profile_set.go index 312dd29a4..f6c82822b 100644 --- a/console/threshold_profile_set.go +++ b/console/thresholds_profile_set.go @@ -25,7 +25,7 @@ import ( func init() { c := &CmdSetThreshold{ - name: "threshold_profile_set", + name: "thresholds_profile_set", rpcMethod: utils.APIerSv1SetThresholdProfile, rpcParams: &engine.ThresholdWithCache{}, }