-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana alerts #111
Grafana alerts #111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! few minor comments, for your considiration
deleteGrafanaAlertServiceSuccess = http.StatusNoContent | ||
// NOTE: the grafana api returns 204 even when you try to delete with a uid that doesn't exist, | ||
// so the following line is just for compatibility with the CallLogzioApi object | ||
deleteGrafanaAlertNotFound = http.StatusNotFound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value duplication in delete
get
list
crate
update
may be worth unifying those. Not critical for your consideration :)
|
||
const ( | ||
getGrafanaAlertServiceUrl = grafanaAlertServiceEndpoint + "/%s" | ||
getGrafanaAlertServiceMethod = http.MethodGet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value duplication in get
list
may be worth unifying those. Not critical for your consideration :)
const ( | ||
listGrafanaAlertServiceUrl = grafanaAlertServiceEndpoint | ||
listGrafanaAlertServiceMethod = http.MethodGet | ||
listGrafanaAlertServiceSuccess = http.StatusOK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value duplication in get
list
update
may be worth unifying those. Not critical for your consideration :)
In this PR: