Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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