Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4aa09a6a
Unverified
Commit
4aa09a6a
authored
Jan 08, 2021
by
Agnès Toulet
Committed by
GitHub
Jan 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Analytics: add data source type in data-request events (#30087)
parent
aa2acd0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
packages/grafana-data/src/types/datasource.ts
+6
-0
packages/grafana-runtime/src/types/analytics.ts
+2
-1
public/app/features/query/state/queryAnalytics.ts
+1
-0
No files found.
packages/grafana-data/src/types/datasource.ts
View file @
4aa09a6a
...
...
@@ -175,6 +175,11 @@ export abstract class DataSourceApi<
readonly
id
:
number
;
/**
* Set in constructor
*/
readonly
type
:
string
;
/**
* min interval range
*/
interval
?:
string
;
...
...
@@ -182,6 +187,7 @@ export abstract class DataSourceApi<
constructor
(
instanceSettings
:
DataSourceInstanceSettings
<
TOptions
>
)
{
this
.
name
=
instanceSettings
.
name
;
this
.
id
=
instanceSettings
.
id
;
this
.
type
=
instanceSettings
.
type
;
this
.
meta
=
{}
as
DataSourcePluginMeta
;
}
...
...
packages/grafana-runtime/src/types/analytics.ts
View file @
4aa09a6a
...
...
@@ -20,7 +20,8 @@ export interface DashboardInfo {
*/
export
interface
DataRequestInfo
extends
Partial
<
DashboardInfo
>
{
datasourceName
:
string
;
datasourceId
?:
number
;
datasourceId
:
number
;
datasourceType
:
string
;
panelId
?:
number
;
panelName
?:
string
;
duration
:
number
;
...
...
public/app/features/query/state/queryAnalytics.ts
View file @
4aa09a6a
...
...
@@ -23,6 +23,7 @@ export function emitDataRequestEvent(datasource: DataSourceApi) {
eventName
:
MetaAnalyticsEventName
.
DataRequest
,
datasourceName
:
datasource
.
name
,
datasourceId
:
datasource
.
id
,
datasourceType
:
datasource
.
type
,
panelId
:
data
.
request
.
panelId
,
dashboardId
:
data
.
request
.
dashboardId
,
dataSize
:
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment