enh(plugin)review-option-name

This commit is contained in:
Sims24 2020-05-14 22:22:33 +02:00
parent d22cc245ad
commit 1b2d6d6ca5
3 changed files with 12 additions and 6 deletions

View File

@ -161,7 +161,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'volumeid:s@' => { name => 'volume_id' },
'volume-id:s@' => { name => 'volume_id' },
'per-sec' => { name => 'per_sec' },
'filter-metric:s' => { name => 'filter_metric' }
});

View File

@ -189,7 +189,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'volumeid:s@' => { name => 'volume_id' },
'volume-id:s@' => { name => 'volume_id' },
'per-sec' => { name => 'per_sec' },
'filter-metric:s' => { name => 'filter_metric' }
});

View File

@ -29,19 +29,25 @@ my %metrics_mapping = (
'VolumeTotalReadTime' => {
'output' => 'Total Read Time',
'label' => 'total-read-time',
'nlabel' => { 'absolute' => 'ebs.volume.totalread.time.second' },
'nlabel' => {
'absolute' => 'ebs.volume.totalread.time.second'
},
'unit' => 's'
},
'VolumeTotalWriteTime' => {
'output' => 'Total Write Time',
'label' => 'total-write-time',
'nlabel' => { 'absolute' => 'ebs.volume.totalwrite.time.second' },
'nlabel' => {
'absolute' => 'ebs.volume.totalwrite.time.second'
},
'unit' => 's'
},
'VolumeIdleTime' => {
'output' => 'Idle Time',
'label' => 'idle-time',
'nlabel' => { 'absolute' => 'ebs.volume.idle.time.second' },
'nlabel' => {
'absolute' => 'ebs.volume.idle.time.second'
},
'unit' => 's',
'display_percent' => 1
}
@ -154,7 +160,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'volumeid:s@' => { name => 'volume_id' },
'volume-id:s@' => { name => 'volume_id' },
'filter-metric:s' => { name => 'filter_metric' }
});