-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add cloudwatch encoding #37222
base: main
Are you sure you want to change the base?
Add cloudwatch encoding #37222
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.
Looks like the linting needs to be fixed up, however, briefly going over the code it seems fine.
if metric.Unit == "" { | ||
return false, errors.New("cloudwatch metric is missing unit field") | ||
} |
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.
It is my understand that a cloudwatch Unit has a fixed set of values, so it can't just accept any.
Not strictly worth fixing now, but something to call out.
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.
I have added all the possible valid types. I was a bit hesitant on this, because I am afraid it will require more maintenance, but time will tell.
@@ -0,0 +1,3 @@ | |||
status: | |||
codeowners: | |||
active: [] |
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.
Please add yourself as a code owner here.
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.
It still fails since I am not a member. Any idea of the next step?
Description
Add a cloudwatch encoding extension.
Link to tracking issue
#37113
Testing
There are unit tests for every new coding file.
I have some documents in the directory
testdata
to test against them.Documentation
See the README file.