enh(grafana): Rename restapi to api (#3159)

This commit is contained in:
THEPAUT 2021-09-30 06:21:22 -04:00 committed by GitHub
parent 86ccc5c0f5
commit 051f1ffc93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package apps::grafana::restapi::custom::api; package apps::grafana::api::custom::api;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package apps::grafana::restapi::mode::health; package apps::grafana::api::mode::health;
use base qw(centreon::plugins::templates::counter); use base qw(centreon::plugins::templates::counter);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package apps::grafana::restapi::plugin; package apps::grafana::api::plugin;
use strict; use strict;
use warnings; use warnings;
@ -31,10 +31,10 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
$self->{modes} = { $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; return $self;
} }
@ -44,6 +44,6 @@ __END__
=head1 PLUGIN DESCRIPTION =head1 PLUGIN DESCRIPTION
Check Grafana with Rest API. Check Grafana with API.
=cut =cut