Skip to content

Commit

Permalink
Convert PV type dictionary to json for telemetry so it shows up in lo…
Browse files Browse the repository at this point in the history
…gs (#480)
  • Loading branch information
gracewehner authored Jan 4, 2021
1 parent 9cb058c commit ef9d726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugins/ruby/in_kube_pvinventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef9d726

Please sign in to comment.