enh(grafana): Rename restapi to api (#3159)
This commit is contained in:
parent
86ccc5c0f5
commit
051f1ffc93
|
@ -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);
|
||||
|
|
@ -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);
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue