opensearch-project / dashboards-assistant

Dashboard assistant is a way for users on OpenSearch Dashboards to interact with an assistant through chat or the different OSD pages
https://opensearch.org/
Apache License 2.0
17 stars 22 forks source link

Add metric report for thumbup and thumbdown buttons in chat #263

Open chishui opened 3 weeks ago

chishui commented 3 weeks ago

Description

Whenever users click thumb-up and thumb-down buttons, we emit a click event using usage_collection plugin. The data will be save to kibana index through savedObject.

Things to note:

  1. Append a UUID after metric name so that each click event haves their own document and we have a way to aggregate docs within a timeframe.
  2. Need to enable this flag usageCollection.uiMetric.enabled: true to enable reporting.

Issues Resolved

https://github.com/opensearch-project/dashboards-assistant/issues/262

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.41%. Comparing base (4f33fa0) to head (f8a1d4d). Report is 10 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #263 +/- ## ========================================== - Coverage 90.34% 89.41% -0.94% ========================================== Files 59 60 +1 Lines 1575 1672 +97 Branches 377 412 +35 ========================================== + Hits 1423 1495 +72 - Misses 150 175 +25 Partials 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.