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
This commit is contained in:
Daniel Lee
2022-12-07 21:19:35 +01:00
committed by GitHub
parent 69ffce4c42
commit 74167b4d44
4 changed files with 106 additions and 31 deletions

View File

@@ -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;
datasourceUid: string;