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
1f3fafb1
Commit
1f3fafb1
authored
Feb 03, 2019
by
Paresh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mssql: pass timerange for template variable queries
parent
9e33f8b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
public/app/plugins/datasource/mssql/datasource.ts
+14
-3
No files found.
public/app/plugins/datasource/mssql/datasource.ts
View file @
1f3fafb1
...
@@ -107,13 +107,24 @@ export class MssqlDatasource {
...
@@ -107,13 +107,24 @@ export class MssqlDatasource {
format
:
'table'
,
format
:
'table'
,
};
};
const
data
=
{
queries
:
[
interpolatedQuery
],
};
if
(
optionalOptions
&&
optionalOptions
.
range
)
{
if
(
optionalOptions
.
range
.
from
)
{
data
[
'from'
]
=
optionalOptions
.
range
.
from
.
valueOf
().
toString
();
}
if
(
optionalOptions
.
range
.
to
)
{
data
[
'to'
]
=
optionalOptions
.
range
.
to
.
valueOf
().
toString
();
}
}
return
this
.
backendSrv
return
this
.
backendSrv
.
datasourceRequest
({
.
datasourceRequest
({
url
:
'/api/tsdb/query'
,
url
:
'/api/tsdb/query'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
data
,
queries
:
[
interpolatedQuery
],
},
})
})
.
then
(
data
=>
this
.
responseParser
.
parseMetricFindQueryResult
(
refId
,
data
));
.
then
(
data
=>
this
.
responseParser
.
parseMetricFindQueryResult
(
refId
,
data
));
}
}
...
...
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