Skip to content
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 new monitor summary widget parameters #290

Merged

Conversation

chrismdd
Copy link
Contributor

This PR adds two new, optional parameters for the monitor summary (manage status) widget: summary_type, and show_last_triggered: https://docs.datadoghq.com/graphing/widgets/monitor_summary/#api.

It also updates the TestWidgets integration test to test them.

Copy link
Collaborator

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks good, I just have one question inline that I want to get answer for. Thanks!

board_widgets.go Outdated
TitleSize *string `json:"title_size,omitempty"`
TitleAlign *string `json:"title_align,omitempty"`
Type *string `json:"type"`
SummaryType *string `json:"summary_type"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a required property or not? If not (which I assume is the case), it should be marked with omitempty (which is also done is screen_widgets.go in this PR).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I pushed a commit to fix it.

Copy link
Collaborator

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now. Merging, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants