Skip to content

Commit eb15c0c

Browse files
committed
Accepts ints and strings for manage_status titleSize
1 parent 7f3a9c1 commit eb15c0c

File tree

4 files changed

+30
-11
lines changed

4 files changed

+30
-11
lines changed

datadog-accessors.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9779,7 +9779,7 @@ func (w *Widget) SetManageStatusTitleAlign(v string) {
97799779
}
97809780

97819781
// GetManageStatusTitleSize returns the ManageStatusTitleSize field if non-nil, zero value otherwise.
9782-
func (w *Widget) GetManageStatusTitleSize() string {
9782+
func (w *Widget) GetManageStatusTitleSize() StrintD {
97839783
if w == nil || w.ManageStatusTitleSize == nil {
97849784
return ""
97859785
}
@@ -9788,7 +9788,7 @@ func (w *Widget) GetManageStatusTitleSize() string {
97889788

97899789
// GetManageStatusTitleSizeOk returns a tuple with the ManageStatusTitleSize field if it's non-nil, zero value otherwise
97909790
// and a boolean to check if the value has been set.
9791-
func (w *Widget) GetManageStatusTitleSizeOk() (string, bool) {
9791+
func (w *Widget) GetManageStatusTitleSizeOk() (StrintD, bool) {
97929792
if w == nil || w.ManageStatusTitleSize == nil {
97939793
return "", false
97949794
}
@@ -9805,7 +9805,7 @@ func (w *Widget) HasManageStatusTitleSize() bool {
98059805
}
98069806

98079807
// SetManageStatusTitleSize allocates a new w.ManageStatusTitleSize and returns the pointer to it.
9808-
func (w *Widget) SetManageStatusTitleSize(v string) {
9808+
func (w *Widget) SetManageStatusTitleSize(v StrintD) {
98099809
w.ManageStatusTitleSize = &v
98109810
}
98119811

screen_widgets.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ type Widget struct {
166166
MustShowResourceList *bool `json:"mustShowResourceList,omitempty"`
167167

168168
// For MonitorSummary (manage_status) widget
169-
DisplayFormat *string `json:"displayFormat,omitempty"`
170-
ColorPreference *string `json:"colorPreference,omitempty"`
171-
HideZeroCounts *bool `json:"hideZeroCounts,omitempty"`
172-
ManageStatusShowTitle *bool `json:"showTitle,omitempty"`
173-
ManageStatusTitleText *string `json:"titleText,omitempty"`
174-
ManageStatusTitleSize *string `json:"titleSize,omitempty"`
175-
ManageStatusTitleAlign *string `json:"titleAlign,omitempty"`
176-
Params *Params `json:"params,omitempty"`
169+
DisplayFormat *string `json:"displayFormat,omitempty"`
170+
ColorPreference *string `json:"colorPreference,omitempty"`
171+
HideZeroCounts *bool `json:"hideZeroCounts,omitempty"`
172+
ManageStatusShowTitle *bool `json:"showTitle,omitempty"`
173+
ManageStatusTitleText *string `json:"titleText,omitempty"`
174+
ManageStatusTitleSize *StrintD `json:"titleSize,omitempty"`
175+
ManageStatusTitleAlign *string `json:"titleAlign,omitempty"`
176+
Params *Params `json:"params,omitempty"`
177177

178178
// For LogStream widget
179179
Columns *string `json:"columns,omitempty"`

screenboards_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,17 @@ func TestGetScreenboard(t *testing.T) {
171171
},
172172
},
173173
},
174+
{
175+
file: "screenboard_response_manage_status_titlesize",
176+
want: &Screenboard{
177+
Widgets: []Widget{
178+
{
179+
Type: String("manage_status"),
180+
ManageStatusTitleSize: Strint("16"),
181+
},
182+
},
183+
},
184+
},
174185
}
175186
for _, tt := range tests {
176187
t.Run(tt.file, func(t *testing.T) {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"widgets": [
3+
{
4+
"type": "manage_status",
5+
"titleSize": 16
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)