@@ -20,8 +20,8 @@ type RumRetentionFilterCreateAttributes struct {
2020 Name string `json:"name"`
2121 // The query string for a RUM retention filter.
2222 Query * string `json:"query,omitempty"`
23- // The sample rate for a RUM retention filter, between 0 and 100.
24- SampleRate int64 `json:"sample_rate"`
23+ // The sample rate for a RUM retention filter, between 0.1 and 100.
24+ SampleRate float64 `json:"sample_rate"`
2525 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2626 UnparsedObject map [string ]interface {} `json:"-"`
2727 AdditionalProperties map [string ]interface {} `json:"-"`
@@ -31,7 +31,7 @@ type RumRetentionFilterCreateAttributes struct {
3131// This constructor will assign default values to properties that have it defined,
3232// and makes sure properties required by API are set, but the set of arguments
3333// will change when the set of required properties is changed.
34- func NewRumRetentionFilterCreateAttributes (eventType RumRetentionFilterEventType , name string , sampleRate int64 ) * RumRetentionFilterCreateAttributes {
34+ func NewRumRetentionFilterCreateAttributes (eventType RumRetentionFilterEventType , name string , sampleRate float64 ) * RumRetentionFilterCreateAttributes {
3535 this := RumRetentionFilterCreateAttributes {}
3636 this .EventType = eventType
3737 this .Name = name
@@ -150,25 +150,25 @@ func (o *RumRetentionFilterCreateAttributes) SetQuery(v string) {
150150}
151151
152152// GetSampleRate returns the SampleRate field value.
153- func (o * RumRetentionFilterCreateAttributes ) GetSampleRate () int64 {
153+ func (o * RumRetentionFilterCreateAttributes ) GetSampleRate () float64 {
154154 if o == nil {
155- var ret int64
155+ var ret float64
156156 return ret
157157 }
158158 return o .SampleRate
159159}
160160
161161// GetSampleRateOk returns a tuple with the SampleRate field value
162162// and a boolean to check if the value has been set.
163- func (o * RumRetentionFilterCreateAttributes ) GetSampleRateOk () (* int64 , bool ) {
163+ func (o * RumRetentionFilterCreateAttributes ) GetSampleRateOk () (* float64 , bool ) {
164164 if o == nil {
165165 return nil , false
166166 }
167167 return & o .SampleRate , true
168168}
169169
170170// SetSampleRate sets field value.
171- func (o * RumRetentionFilterCreateAttributes ) SetSampleRate (v int64 ) {
171+ func (o * RumRetentionFilterCreateAttributes ) SetSampleRate (v float64 ) {
172172 o .SampleRate = v
173173}
174174
@@ -201,7 +201,7 @@ func (o *RumRetentionFilterCreateAttributes) UnmarshalJSON(bytes []byte) (err er
201201 EventType * RumRetentionFilterEventType `json:"event_type"`
202202 Name * string `json:"name"`
203203 Query * string `json:"query,omitempty"`
204- SampleRate * int64 `json:"sample_rate"`
204+ SampleRate * float64 `json:"sample_rate"`
205205 }{}
206206 if err = datadog .Unmarshal (bytes , & all ); err != nil {
207207 return datadog .Unmarshal (bytes , & o .UnparsedObject )
0 commit comments