diff --git a/apps/grafana/restapi/custom/api.pm b/apps/grafana/api/custom/api.pm similarity index 99% rename from apps/grafana/restapi/custom/api.pm rename to apps/grafana/api/custom/api.pm index 8e50bc092..12cdbfe44 100644 --- a/apps/grafana/restapi/custom/api.pm +++ b/apps/grafana/api/custom/api.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::grafana::restapi::custom::api; +package apps::grafana::api::custom::api; use base qw(centreon::plugins::mode); diff --git a/apps/grafana/restapi/mode/health.pm b/apps/grafana/api/mode/health.pm similarity index 98% rename from apps/grafana/restapi/mode/health.pm rename to apps/grafana/api/mode/health.pm index 309663e3a..29c7d7ba1 100644 --- a/apps/grafana/restapi/mode/health.pm +++ b/apps/grafana/api/mode/health.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::grafana::restapi::mode::health; +package apps::grafana::api::mode::health; use base qw(centreon::plugins::templates::counter); diff --git a/apps/grafana/restapi/plugin.pm b/apps/grafana/api/plugin.pm similarity index 84% rename from apps/grafana/restapi/plugin.pm rename to apps/grafana/api/plugin.pm index 7e7433de4..c3ec9c38a 100644 --- a/apps/grafana/restapi/plugin.pm +++ b/apps/grafana/api/plugin.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::grafana::restapi::plugin; +package apps::grafana::api::plugin; use strict; use warnings; @@ -31,10 +31,10 @@ sub new { $self->{version} = '1.0'; $self->{modes} = { - 'health' => 'apps::grafana::restapi::mode::health' + 'health' => 'apps::grafana::api::mode::health' }; - $self->{custom_modes}->{api} = 'apps::grafana::restapi::custom::api'; + $self->{custom_modes}->{api} = 'apps::grafana::api::custom::api'; return $self; } @@ -44,6 +44,6 @@ __END__ =head1 PLUGIN DESCRIPTION -Check Grafana with Rest API. +Check Grafana with API. =cut