grafana/pkg/services/ngalert/state
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
..
cache.go Alerting: Keep private annotations across evaluations (#49080) 2022-05-18 11:21:18 +02:00
manager_private_test.go Alerting: Add stored screenshot utilities to the channels package. (#49470) 2022-05-26 13:29:56 +08:00
manager_test.go Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
manager.go Alerting: Add a "Reason" to Alert Instances to show underlying cause of state. (#49259) 2022-05-23 16:49:49 +08:00
state_test.go Alerting: Add a general screenshot service and alerting-specific image service. (#49293) 2022-05-22 22:33:49 +08:00
state.go Alerting: Add stored screenshot utilities to the channels package. (#49470) 2022-05-26 13:29:56 +08:00
template_test.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00
template.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00