[v9.2.x] UsageInsights: Record events for Explore queries (#59992)

* UsageInsights: Record events for Explore queries (#59931)

* usageinsights: record events for Explore queries

* usageinsights: make the source field optional

It is not logical to have it for an event like the dashboard-view

* usageinsights: add comment to Explore test

Explain why we are reversing a previous decision

(cherry picked from commit 74167b4d44)

* usageinsights: fix merge conflict

* Empty-Commit to trigger build

* usageinsights: fix broken tests after merge
This commit is contained in:
Daniel Lee
2022-12-08 00:13:59 +01:00
committed by GitHub
parent 1b29543b64
commit c0feee3801
6 changed files with 110 additions and 30 deletions
@@ -1,3 +1,5 @@
import { CoreApp } from '@grafana/data';
import { EchoEvent, EchoEventType } from '../services/EchoSrv';
/**
@@ -20,6 +22,7 @@ export interface DashboardInfo {
* @public
*/
export interface DataRequestInfo extends Partial<DashboardInfo> {
source?: CoreApp | string;
datasourceName: string;
datasourceId: number;
datasourceType: string;