Class: Google::Apis::SaasservicemgmtV1beta1::ErrorBudget
- Inherits:
-
Object
- Object
- Google::Apis::SaasservicemgmtV1beta1::ErrorBudget
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/saasservicemgmt_v1beta1/classes.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb
Overview
The configuration for error budget. If the number of failed units exceeds max( allowed_count, allowed_ratio * total_units), the rollout will be paused.
Instance Attribute Summary collapse
-
#allowed_count ⇒ Fixnum
Optional.
-
#allowed_percentage ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ErrorBudget
constructor
A new instance of ErrorBudget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ErrorBudget
Returns a new instance of ErrorBudget.
161 162 163 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_count ⇒ Fixnum
Optional. The maximum number of failed units allowed in a location without
pausing the rollout.
Corresponds to the JSON property allowedCount
153 154 155 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 153 def allowed_count @allowed_count end |
#allowed_percentage ⇒ Fixnum
Optional. The maximum percentage of units allowed to fail (0, 100] within a
location without pausing the rollout.
Corresponds to the JSON property allowedPercentage
159 160 161 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 159 def allowed_percentage @allowed_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
166 167 168 169 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 166 def update!(**args) @allowed_count = args[:allowed_count] if args.key?(:allowed_count) @allowed_percentage = args[:allowed_percentage] if args.key?(:allowed_percentage) end |