grafana/pkg/services/ngalert/api
Kyle Brandt 7bb79158ed
SSE/Alerting: First pass at query/condition translation (#31693)
- Takes the conditions property from the settings column of an alert from alerts table and turns into an ng alerting condition with the queries and classic condition.
- Has temp API rest endpoint that will take the dashboard conditions json, translate it to SEE queries + classic condition, and execute it (only enabled in dev mode).
- Changes expressions to catch query responses with a non-nil error property
- Adds two new states for an NG instance result (NoData, Error) and updates evaluation to match those states
- Changes the AsDataFrame (for frontend) from Bool to string to represent additional states
- Fix bug in condition model to accept first Operator as empty string.
- In ngalert, adds GetQueryDataRequest, which was part of execute and is still called from there. But this allows me to get the Expression request from a condition to make the "pipeline" can be built.
- Update AsDataFrame for evalresult to be row based so it displays a little better for now
2021-03-23 12:11:15 -04:00
..
swagger-codegen AlertingNG: base API implementation (#31824) 2021-03-11 21:28:00 +02:00
test-data AlertingNG: Unified alerting API mock (#32040) 2021-03-17 12:47:03 +02:00
api_alertmanager_base.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
api_alertmanager_mock.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
api_prometheus_base.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
api_prometheus_mock.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
api_ruler_base.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
api_ruler_mock.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
api_testing_base.go AlertingNG: Unified alerting API mock (#32040) 2021-03-17 12:47:03 +02:00
api_testing_mock.go AlertingNG: Unified alerting API mock (#32040) 2021-03-17 12:47:03 +02:00
api.go SSE/Alerting: First pass at query/condition translation (#31693) 2021-03-23 12:11:15 -04:00
fork_ruler.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
instance_api.go AlertingNG: Split into several packages (#31719) 2021-03-08 22:19:21 +02:00
lotex.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
middleware.go AlertingNG: Split into several packages (#31719) 2021-03-08 22:19:21 +02:00
util_test.go [Alerting]: implement backend checking for forking to Lotex ruler (#32208) 2021-03-23 18:08:57 +02:00
util.go AlertingNG: Unified alerting API mock (#32040) 2021-03-17 12:47:03 +02:00