Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45104,12 +45104,12 @@ components:
$ref: '#/components/schemas/RumRetentionFilterData'
type: object
RumRetentionFilterSampleRate:
description: The sample rate for a RUM retention filter, between 0 and 100.
example: 25
format: int64
description: The sample rate for a RUM retention filter, between 0.1 and 100.
example: 50.5
format: double
maximum: 100
minimum: 0
type: integer
minimum: 0.1
type: number
RumRetentionFilterType:
default: retention_filters
description: The type of the resource. The value should always be retention_filters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RumRetentionFilterAttributes
# The query string for a RUM retention filter.
attr_accessor :query

# The sample rate for a RUM retention filter, between 0 and 100.
# The sample rate for a RUM retention filter, between 0.1 and 100.
attr_reader :sample_rate

attr_accessor :additional_properties
Expand All @@ -58,7 +58,7 @@ def self.openapi_types
:'event_type' => :'RumRetentionFilterEventType',
:'name' => :'String',
:'query' => :'String',
:'sample_rate' => :'Integer'
:'sample_rate' => :'Float'
}
end

Expand Down Expand Up @@ -106,7 +106,7 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if !@sample_rate.nil? && @sample_rate > 100
return false if !@sample_rate.nil? && @sample_rate < 0
return false if !@sample_rate.nil? && @sample_rate < 0.1
true
end

Expand All @@ -117,8 +117,8 @@ def sample_rate=(sample_rate)
if !sample_rate.nil? && sample_rate > 100
fail ArgumentError, 'invalid value for "sample_rate", must be smaller than or equal to 100.'
end
if !sample_rate.nil? && sample_rate < 0
fail ArgumentError, 'invalid value for "sample_rate", must be greater than or equal to 0.'
if !sample_rate.nil? && sample_rate < 0.1
fail ArgumentError, 'invalid value for "sample_rate", must be greater than or equal to 0.1.'
end
@sample_rate = sample_rate
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RumRetentionFilterCreateAttributes
# The query string for a RUM retention filter.
attr_accessor :query

# The sample rate for a RUM retention filter, between 0 and 100.
# The sample rate for a RUM retention filter, between 0.1 and 100.
attr_reader :sample_rate

attr_accessor :additional_properties
Expand All @@ -58,7 +58,7 @@ def self.openapi_types
:'event_type' => :'RumRetentionFilterEventType',
:'name' => :'String',
:'query' => :'String',
:'sample_rate' => :'Integer'
:'sample_rate' => :'Float'
}
end

Expand Down Expand Up @@ -109,7 +109,7 @@ def valid?
return false if @name.nil?
return false if @sample_rate.nil?
return false if @sample_rate > 100
return false if @sample_rate < 0
return false if @sample_rate < 0.1
true
end

Expand Down Expand Up @@ -143,8 +143,8 @@ def sample_rate=(sample_rate)
if sample_rate > 100
fail ArgumentError, 'invalid value for "sample_rate", must be smaller than or equal to 100.'
end
if sample_rate < 0
fail ArgumentError, 'invalid value for "sample_rate", must be greater than or equal to 0.'
if sample_rate < 0.1
fail ArgumentError, 'invalid value for "sample_rate", must be greater than or equal to 0.1.'
end
@sample_rate = sample_rate
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RumRetentionFilterUpdateAttributes
# The query string for a RUM retention filter.
attr_accessor :query

# The sample rate for a RUM retention filter, between 0 and 100.
# The sample rate for a RUM retention filter, between 0.1 and 100.
attr_reader :sample_rate

attr_accessor :additional_properties
Expand All @@ -58,7 +58,7 @@ def self.openapi_types
:'event_type' => :'RumRetentionFilterEventType',
:'name' => :'String',
:'query' => :'String',
:'sample_rate' => :'Integer'
:'sample_rate' => :'Float'
}
end

Expand Down Expand Up @@ -106,7 +106,7 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if !@sample_rate.nil? && @sample_rate > 100
return false if !@sample_rate.nil? && @sample_rate < 0
return false if !@sample_rate.nil? && @sample_rate < 0.1
true
end

Expand All @@ -117,8 +117,8 @@ def sample_rate=(sample_rate)
if !sample_rate.nil? && sample_rate > 100
fail ArgumentError, 'invalid value for "sample_rate", must be smaller than or equal to 100.'
end
if !sample_rate.nil? && sample_rate < 0
fail ArgumentError, 'invalid value for "sample_rate", must be greater than or equal to 0.'
if !sample_rate.nil? && sample_rate < 0.1
fail ArgumentError, 'invalid value for "sample_rate", must be greater than or equal to 0.1.'
end
@sample_rate = sample_rate
end
Expand Down
Loading