File tree 3 files changed +7
-7
lines changed 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10089,7 +10089,7 @@ func (w *Widget) SetParams(v Params) {
10089
10089
}
10090
10090
10091
10091
// GetPrecision returns the Precision field if non-nil, zero value otherwise.
10092
- func (w * Widget ) GetPrecision () string {
10092
+ func (w * Widget ) GetPrecision () json. Number {
10093
10093
if w == nil || w .Precision == nil {
10094
10094
return ""
10095
10095
}
@@ -10098,7 +10098,7 @@ func (w *Widget) GetPrecision() string {
10098
10098
10099
10099
// GetPrecisionOk returns a tuple with the Precision field if it's non-nil, zero value otherwise
10100
10100
// and a boolean to check if the value has been set.
10101
- func (w * Widget ) GetPrecisionOk () (string , bool ) {
10101
+ func (w * Widget ) GetPrecisionOk () (json. Number , bool ) {
10102
10102
if w == nil || w .Precision == nil {
10103
10103
return "" , false
10104
10104
}
@@ -10115,7 +10115,7 @@ func (w *Widget) HasPrecision() bool {
10115
10115
}
10116
10116
10117
10117
// SetPrecision allocates a new w.Precision and returns the pointer to it.
10118
- func (w * Widget ) SetPrecision (v string ) {
10118
+ func (w * Widget ) SetPrecision (v json. Number ) {
10119
10119
w .Precision = & v
10120
10120
}
10121
10121
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ func TestWidgets(t *testing.T) {
241
241
AlertID : datadog .Int (123456 ),
242
242
TextSize : datadog .String ("fill_height" ),
243
243
TextAlign : datadog .String ("right" ),
244
- Precision : datadog .String ("*" ),
244
+ Precision : datadog .JsonNumber ("*" ),
245
245
Unit : datadog .String ("b" ),
246
246
},
247
247
{
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ type Widget struct {
104
104
Color * string `json:"color,omitempty"`
105
105
106
106
// For AlertValue widget
107
- TextSize * string `json:"text_size,omitempty"`
108
- Unit * string `json:"unit,omitempty"`
109
- Precision * string `json:"precision,omitempty"`
107
+ TextSize * string `json:"text_size,omitempty"`
108
+ Unit * string `json:"unit,omitempty"`
109
+ Precision * json. Number `json:"precision,omitempty"`
110
110
111
111
// AlertGraph widget
112
112
VizType * string `json:"viz_type,omitempty"`
You can’t perform that action at this time.
0 commit comments