Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Alerting: Add support for Unified Alerting contact points, deprecate legacy notifiers #86

Merged
merged 5 commits into from
Jun 16, 2022

Conversation

alexweav
Copy link
Contributor

This PR adds support for Unified Alerting's ContactPoint object. The Grafana Terraform provider will consume these new APIs in a future PR.

This client also exposes functionality for manipulating legacy alerting "notifiers." Notifiers are legacy alerting's equivalent of contact points.

Legacy alerting as a whole was deprecated in the Grafana project as of 9.0. So, this PR marks the old notifier endpoints as deprecated in favor of contact points.

@alexweav alexweav force-pushed the alexweav/alerting-contact-points branch from 76cd8b4 to 3763061 Compare June 14, 2022 22:45
@alexweav
Copy link
Contributor Author

Nice, that's a bug in the linter. Turns out the following deprecation comment fails the lint:
// Deprecated: text that contains the substring "deprecated in"

The linter is seeing a sentence containing the words "deprecated in" and suggesting to make that sentence a properly formatted deprecation comment. But, it doesn't think to check whether the sentence is already a deprecation comment to begin with. https://github.com/go-critic/go-critic/blob/bf8c01ca6692a5a3e8c20b1caef47dfab1412c88/checkers/deprecatedComment_checker.go#L119

@CLAassistant
Copy link

CLAassistant commented Jun 15, 2022

CLA assistant check
All committers have signed the CLA.

@alexweav alexweav merged commit 631a2ac into master Jun 16, 2022
@alexweav alexweav deleted the alexweav/alerting-contact-points branch June 16, 2022 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants