Merge branch 'master' of https://github.com/centreon/centreon-plugins
This commit is contained in:
commit
abb79b7210
|
@ -31,9 +31,10 @@ sub new {
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{$self->{modes}} = (
|
%{$self->{modes}} = (
|
||||||
'discovery' => 'cloud::azure::management::monitor::mode::discovery',
|
'discovery' => 'cloud::azure::management::monitor::mode::discovery',
|
||||||
'get-metrics' => 'cloud::azure::management::monitor::mode::getmetrics',
|
'get-metrics' => 'cloud::azure::management::monitor::mode::getmetrics',
|
||||||
);
|
'health' => 'cloud::azure::management::monitor::mode::health',
|
||||||
|
);
|
||||||
|
|
||||||
$self->{custom_modes}{azcli} = 'cloud::azure::custom::azcli';
|
$self->{custom_modes}{azcli} = 'cloud::azure::custom::azcli';
|
||||||
$self->{custom_modes}{api} = 'cloud::azure::custom::api';
|
$self->{custom_modes}{api} = 'cloud::azure::custom::api';
|
||||||
|
@ -43,10 +44,9 @@ sub new {
|
||||||
sub init {
|
sub init {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
$self->{options}->add_options(arguments =>
|
$self->{options}->add_options(arguments => {
|
||||||
{
|
'api-version:s' => { name => 'api_version', default => '2018-01-01' },
|
||||||
'api-version:s' => { name => 'api_version', default => '2018-01-01' },
|
});
|
||||||
});
|
|
||||||
|
|
||||||
$self->SUPER::init(%options);
|
$self->SUPER::init(%options);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue