-
Notifications
You must be signed in to change notification settings - Fork 17
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
Various updates to Observability Library #1022
Conversation
- Fix alert query type not instant when the query is instant - Add disable resolve message and uid to contact point - Add stacking mode to time series panel - Add multi and include all to custom variable - Use csv when the variable key and value is the same
- Fix delete notification template status code should be 204 - Add annotations to alerts - Derive notification templates name from file name
if fileName == "notification-templates" { | ||
fileName = "chainlink" | ||
} |
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.
why is this necessary ?
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.
Because I'm using the filename as the template name. So a dev-platform-por.yaml
will end up becoming dev-platform-por-slack-notification-template
.
We can rename notification-templates.yaml
to chainlink.yaml
as well. Either way is fine.
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.
yes remove that logic I think better to rename file
@leeyikjiun Some test to fix as well |
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.
Nice 👍
@@ -45,7 +45,7 @@ func (c *Client) DeleteNotificationTemplate(name string) (DeleteNotificationTemp | |||
} | |||
|
|||
statusCode := resp.StatusCode() | |||
if statusCode != 200 { | |||
if statusCode != 204 { |
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.
if statusCode != 204 { | |
if statusCode != http.StatusNoContent { |
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.
Great suggestion! Let me fix all the status codes in one go in another PR. cc @Atrax1
Example of variable values:
Before:
crit : crit , error : error , warn : warn , info : info , debug : debug
After:
error, warn, info, debug, crit
Requires
Supports