From 6c6623708c31e0d77907a5ae62f95e5b5e1a37d9 Mon Sep 17 00:00:00 2001 From: Grace Wehner Date: Mon, 21 Dec 2020 10:34:39 -0800 Subject: [PATCH] convert dictionary to json for telemetry --- source/plugins/ruby/in_kube_pvinventory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/ruby/in_kube_pvinventory.rb b/source/plugins/ruby/in_kube_pvinventory.rb index b0e09c85b..861b3a8e1 100644 --- a/source/plugins/ruby/in_kube_pvinventory.rb +++ b/source/plugins/ruby/in_kube_pvinventory.rb @@ -90,7 +90,7 @@ def enumerate # Flush AppInsights telemetry once all the processing is done if telemetryFlush == true telemetryProperties = {} - telemetryProperties["CountsOfPVTypes"] = @pvTypeToCountHash + telemetryProperties["CountsOfPVTypes"] = @pvTypeToCountHash.to_json ApplicationInsightsUtility.sendCustomEvent(Constants::PV_INVENTORY_HEART_BEAT_EVENT, telemetryProperties) @@pvTelemetryTimeTracker = DateTime.now.to_time.to_i end