-
Notifications
You must be signed in to change notification settings - Fork 156
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 additional arguments to Downtime struct #227
Conversation
@ojongerius do you have a chance for review? |
@vanvlack hey, is there any reason why there are no getters/setters for |
Unsure, will try to regenerate the get/set stuff and see what happens. |
@bkabrda by the looks, no arrays (even ones elsewhere) are in the generated get/set file. |
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.
Apart from adding ParentId
and TimeZone
to the test this looks great 👍
Active: datadog.Bool(false), | ||
Disabled: datadog.Bool(false), | ||
Message: datadog.String("Test downtime message"), | ||
MonitorTags: []string{"some:tag"}, |
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.
Could you please add ParentId
too?
Disabled: datadog.Bool(false), | ||
Message: datadog.String("Test downtime message"), | ||
MonitorTags: []string{"some:tag"}, | ||
Scope: []string{"env:downtime_test"}, |
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.
Ah and TimeZone
@vanvlack ah, right, the getters and setters are only generated for struct members that are pointers, so everything is correct in this case. |
Hey @vanvlack if you could address comments from @ojongerius and rebase, that would be awesome and also allow me to merge this PR. |
@bkabrda updated |
Ok, the tests are passing and all comments that @ojongerius made were addressed. LGTM, merging. Thanks a lot for the PR! |
All the comments were addressed in an additional commit.
re: #226
Adds additional arguments to the
Downtime
struct