Enhance gdk report command to send data to telemetry

Overview

As a simple way to have the data of gdk report available, use the infrastructure around Telemetry to send the report as JSON. This should only happen if the user agrees to it.
After the report has been sent, return a UUID that identifies the report in Grafana.

Impacted categories

The following categories relate to this issue:

Steps to replicate

  1. Run gdk report
  2. Get a prompt showing the report that will be sent through Telemetry
  3. Accept with y
  4. Get a UUID identifying the report
  5. Get the report as Markdown
  6. Open Grafana and find the report with the returned UUID

  1. Run gdk report
  2. Get a prompt showing the report that will be sent through Telemetry
  3. Deny with n
  4. Get the report as Markdown

Proposal

  1. Use the existing Telemetry infrastructure to send the created JSON from Create gdk report command to print basic diagno... (#2590 - closed) when gdk report is run
  2. Prompt the user to double check the report
  3. Send the report when user accepted
  4. Accept the -y flag
  5. Make it possible to deny the report to be sent
  6. Print the Markdown report as before
  7. (Add a configuration parameter to always accept to send the report)
Edited by Mohga Gamea