From 5eb1fbe9c42cce85ecea490d0ce0bf1d1d83fb75 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Tue, 15 Oct 2019 15:48:36 +0200 Subject: [PATCH] add azure health mode in monitor plugin --- cloud/azure/management/monitor/plugin.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cloud/azure/management/monitor/plugin.pm b/cloud/azure/management/monitor/plugin.pm index c5b99a659..981bc6e21 100644 --- a/cloud/azure/management/monitor/plugin.pm +++ b/cloud/azure/management/monitor/plugin.pm @@ -31,9 +31,10 @@ sub new { $self->{version} = '1.0'; %{$self->{modes}} = ( - 'discovery' => 'cloud::azure::management::monitor::mode::discovery', - 'get-metrics' => 'cloud::azure::management::monitor::mode::getmetrics', - ); + 'discovery' => 'cloud::azure::management::monitor::mode::discovery', + '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}{api} = 'cloud::azure::custom::api'; @@ -43,10 +44,9 @@ sub new { sub init { my ($self, %options) = @_; - $self->{options}->add_options(arguments => - { - 'api-version:s' => { name => 'api_version', default => '2018-01-01' }, - }); + $self->{options}->add_options(arguments => { + 'api-version:s' => { name => 'api_version', default => '2018-01-01' }, + }); $self->SUPER::init(%options); }