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
4ab90f93
Unverified
Commit
4ab90f93
authored
Oct 13, 2020
by
Sofia Papagiannaki
Committed by
GitHub
Oct 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linting: remove commented code (#28208)
parent
4acbcd70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
pkg/services/ngalert/eval.go
+0
-10
No files found.
pkg/services/ngalert/eval.go
View file @
4ab90f93
...
...
@@ -93,16 +93,6 @@ func (c Conditions) IsValid() bool {
// LoadAlertConditions returns a Conditions object for the given alertDefintionId.
func
(
ng
*
AlertNG
)
LoadAlertConditions
(
dashboardID
int64
,
panelID
int64
,
conditionRefID
string
,
signedInUser
*
models
.
SignedInUser
,
skipCache
bool
)
(
*
Conditions
,
error
)
{
//func (ng *AlertNG) LoadAlertConditions(alertDefinitionID int64, signedInUser *models.SignedInUser, skipCache bool) (*Conditions, error) {
/*
getAlertByIDQuery := models.GetAlertByIdQuery{Id: alertDefinitionID}
if err := bus.Dispatch(&getAlertByIDQuery); err != nil {
return nil, err
}
dashboardID := getAlertByIDQuery.Result.DashboardId
panelID := getAlertByIDQuery.Result.PanelId
*/
// get queries from the dashboard (because GEL expressions cannot be stored in alerts so far)
getDashboardQuery
:=
models
.
GetDashboardQuery
{
Id
:
dashboardID
}
if
err
:=
bus
.
Dispatch
(
&
getDashboardQuery
);
err
!=
nil
{
...
...
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