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
19123444
Unverified
Commit
19123444
authored
Mar 25, 2020
by
Ryan McKinley
Committed by
GitHub
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: move specific DataQuery props to loki/tsdb (#23086)
parent
27913289
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
9 deletions
+5
-9
packages/grafana-data/src/types/datasource.ts
+0
-7
public/app/plugins/datasource/loki/types.ts
+1
-0
public/app/plugins/datasource/opentsdb/datasource.ts
+1
-1
public/app/plugins/datasource/opentsdb/types.ts
+3
-1
No files found.
packages/grafana-data/src/types/datasource.ts
View file @
19123444
...
...
@@ -391,13 +391,6 @@ export interface DataQuery {
* For non mixed scenarios this is undefined.
*/
datasource
?:
string
|
null
;
metric
?:
any
;
/**
* For limiting result lines.
*/
maxLines
?:
number
;
}
export
interface
DataQueryError
{
...
...
public/app/plugins/datasource/loki/types.ts
View file @
19123444
...
...
@@ -42,6 +42,7 @@ export interface LokiQuery extends DataQuery {
reverse
?:
boolean
;
legendFormat
?:
string
;
valueWithRefId
?:
boolean
;
maxLines
?:
number
;
}
export
interface
LokiOptions
extends
DataSourceJsonData
{
...
...
public/app/plugins/datasource/opentsdb/datasource.ts
View file @
19123444
...
...
@@ -38,7 +38,7 @@ export default class OpenTsDatasource extends DataSourceApi<OpenTsdbQuery, OpenT
}
// Called once per panel (graph)
query
(
options
:
DataQueryRequest
)
{
query
(
options
:
DataQueryRequest
<
OpenTsdbQuery
>
)
{
const
start
=
this
.
convertToTSDBTime
(
options
.
rangeRaw
.
from
,
false
,
options
.
timezone
);
const
end
=
this
.
convertToTSDBTime
(
options
.
rangeRaw
.
to
,
true
,
options
.
timezone
);
const
qs
:
any
[]
=
[];
...
...
public/app/plugins/datasource/opentsdb/types.ts
View file @
19123444
import
{
DataQuery
,
DataSourceJsonData
}
from
'@grafana/data'
;
export
interface
OpenTsdbQuery
extends
DataQuery
{}
export
interface
OpenTsdbQuery
extends
DataQuery
{
metric
?:
any
;
}
export
interface
OpenTsdbOptions
extends
DataSourceJsonData
{
tsdbVersion
:
number
;
...
...
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