grafana/pkg/services/ngalert/models
Joe Blubaugh 9e8efaa459
Alerting: Add stored screenshot utilities to the channels package. (#49470)
Adds three functions:
`withStoredImages` iterates over a list of models.Alerts, extracting a stored image's data from storage, if available, and executing a user-provided function.
`withStoredImage` does this for an image attached to a specific alert.
`openImage` finds and opens an image file on disk.

Moves `store.Image` to `models.Image`
Simplifies `channels.ImageStore` interface and updates notifiers that use it to use the simpler methods.
Updates all pkg/alert/notifier/channels to use withStoredImage routines.
2022-05-26 13:29:56 +08:00
..
admin_configuration_test.go Alerting: send alerts to external, internal, or both alertmanagers (#40341) 2022-02-01 20:36:55 -03:00
admin_configuration.go Alerting: send alerts to external, internal, or both alertmanagers (#40341) 2022-02-01 20:36:55 -03:00
alert_query_test.go Alerting: Display query from grafana-managed alert rules on /api/v1/rules (#45969) 2022-03-14 10:39:20 +00:00
alert_query.go Alerting: Display query from grafana-managed alert rules on /api/v1/rules (#45969) 2022-03-14 10:39:20 +00:00
alert_rule_test.go Alerting: Revert Revert "Alerting: Calculate diff for two AlertRules" (#46034) 2022-03-01 11:10:29 -05:00
alert_rule.go Alerting: State Manager takes screenshots. (#49338) 2022-05-23 10:53:41 +08:00
alertmanager.go Alerting: add collision safe update function for alertmanager configurations (#46692) 2022-03-23 09:31:46 +01:00
eval_condition.go [Alerting]: Implement test rule API route (#32837) 2021-04-13 20:58:34 +03:00
image.go Alerting: Add stored screenshot utilities to the channels package. (#49470) 2022-05-26 13:29:56 +08:00
instance_labels.go Alerting: Fix state cache id duplication (#33480) 2021-04-28 11:42:19 -04:00
instance.go Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
provisioning.go Drop ProvenanceOrgAdapter and build into store API instead (#48137) 2022-04-26 10:30:57 -05:00
testing.go Alerting: introduce AlertRuleGroupKey and use it in API handlers (#48945) 2022-05-16 15:45:45 -04:00