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
4a2a2b16
Unverified
Commit
4a2a2b16
authored
Apr 07, 2020
by
Ryan McKinley
Committed by
GitHub
Apr 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Query: make queryType a top level property (#23412)
parent
4a3399e9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
packages/grafana-data/src/types/datasource.ts
+11
-1
public/app/plugins/datasource/grafana-azure-monitor-datasource/types.ts
+0
-1
public/app/plugins/datasource/stackdriver/types.ts
+1
-2
No files found.
packages/grafana-data/src/types/datasource.ts
View file @
4a2a2b16
...
...
@@ -370,6 +370,11 @@ export interface DataQueryResponse {
state
?:
LoadingState
;
}
/**
* These are the common properties avaliable to all queries in all datasources
* Specific implementations will extend this interface adding the required properties
* for the given context
*/
export
interface
DataQuery
{
/**
* A - Z
...
...
@@ -377,7 +382,7 @@ export interface DataQuery {
refId
:
string
;
/**
* true if query is disabled (ie
not executed / sent to TSDB
)
* true if query is disabled (ie
should not be returned to the dashboard
)
*/
hide
?:
boolean
;
...
...
@@ -387,6 +392,11 @@ export interface DataQuery {
key
?:
string
;
/**
* Specify the query flavor
*/
queryType
?:
string
;
/**
* For mixed data sources the selected datasource is on the query level.
* For non mixed scenarios this is undefined.
*/
...
...
public/app/plugins/datasource/grafana-azure-monitor-datasource/types.ts
View file @
4a2a2b16
...
...
@@ -3,7 +3,6 @@ import { DataQuery, DataSourceJsonData, DataSourceSettings } from '@grafana/data
export
type
AzureDataSourceSettings
=
DataSourceSettings
<
AzureDataSourceJsonData
,
AzureDataSourceSecureJsonData
>
;
export
interface
AzureMonitorQuery
extends
DataQuery
{
refId
:
string
;
format
:
string
;
subscription
:
string
;
azureMonitor
:
AzureMetricQuery
;
...
...
public/app/plugins/datasource/stackdriver/types.ts
View file @
4a2a2b16
...
...
@@ -78,8 +78,7 @@ export interface SLOQuery {
}
export
interface
StackdriverQuery
extends
DataQuery
{
datasourceId
?:
number
;
refId
:
string
;
datasourceId
?:
number
;
// Should not be necessary anymore
queryType
:
QueryType
;
metricQuery
:
MetricQuery
;
sloQuery
?:
SLOQuery
;
...
...
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