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
96babf12
Unverified
Commit
96babf12
authored
Aug 19, 2020
by
Kyle Brandt
Committed by
GitHub
Aug 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alerting: copy queryType prop to tsdb.Query (#27053)
fixes #27048
parent
17174769
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
pkg/services/alerting/conditions/query.go
+3
-1
No files found.
pkg/services/alerting/conditions/query.go
View file @
96babf12
...
...
@@ -214,13 +214,15 @@ func (c *QueryCondition) executeQuery(context *alerting.EvalContext, timeRange *
}
func
(
c
*
QueryCondition
)
getRequestForAlertRule
(
datasource
*
models
.
DataSource
,
timeRange
*
tsdb
.
TimeRange
,
debug
bool
)
*
tsdb
.
TsdbQuery
{
queryModel
:=
c
.
Query
.
Model
req
:=
&
tsdb
.
TsdbQuery
{
TimeRange
:
timeRange
,
Queries
:
[]
*
tsdb
.
Query
{
{
RefId
:
"A"
,
Model
:
c
.
Query
.
Model
,
Model
:
query
Model
,
DataSource
:
datasource
,
QueryType
:
queryModel
.
Get
(
"queryType"
)
.
MustString
(
""
),
},
},
Headers
:
map
[
string
]
string
{
...
...
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