File tree Expand file tree Collapse file tree
src/cloud/google/gcp/custom
tests/resources/spellcheck Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,9 +333,14 @@ sub gcp_get_metrics {
333333 }
334334
335335 my $metric_calc = { points => 0 };
336+ my $value ;
336337 foreach my $point (@{$timeserie -> {points }}) {
337338 if (defined ($point -> {value })) {
338- my $value = $point -> {value }-> { lc ($timeserie -> {valueType }) . ' Value' };
339+ if (lc ($timeserie -> {valueType }) eq ' distribution' ) {
340+ $value = $point -> {value }-> { lc ($timeserie -> {valueType }) . ' Value' }-> {count };
341+ } else {
342+ $value = $point -> {value }-> { lc ($timeserie -> {valueType }) . ' Value' };
343+ }
339344 if (defined ($aggregations {average })) {
340345 $metric_calc -> {average } = 0 if (!defined ($metric_calc -> {average }));
341346 $metric_calc -> {average } += $value ;
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ Fortinet
9999FQDN
100100FreeBSD
101101frsevent
102+ GCP
102103--get-param
103104HAProxy
104105HashiCorp
268269SSDCapacity
269270SSG
270271SSH
272+ Stackdriver
271273standAlone
272274statefile
273275--statefile-concat-cwd
You can’t perform that action at this time.
0 commit comments