Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::BurnRateConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationSignals::CfnServiceLevelObjective::BurnRateConfigurationProperty
- Defined in:
- application_signals/cfn_service_level_objective.rb
Overview
This object defines the length of the look-back window used to calculate one burn rate metric for this SLO.
The burn rate measures how fast the service is consuming the error budget, relative to the attainment goal of the SLO. A burn rate of exactly 1 indicates that the SLO goal will be met exactly.
For example, if you specify 60 as the number of minutes in the look-back window, the burn rate is calculated as the following:
burn rate = error rate over the look-back window / (100% - attainment goal percentage)
For more information about burn rates, see Calculate burn rates .
Instance Attribute Summary collapse
-
#look_back_window_minutes ⇒ Numeric
readonly
The number of minutes to use as the look-back window.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(look_back_window_minutes:) ⇒ BurnRateConfigurationProperty
constructor
A new instance of BurnRateConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(look_back_window_minutes:) ⇒ BurnRateConfigurationProperty
Returns a new instance of BurnRateConfigurationProperty.
683 684 685 686 |
# File 'application_signals/cfn_service_level_objective.rb', line 683 def initialize(look_back_window_minutes:) @look_back_window_minutes = look_back_window_minutes Jsii::Type.check_type(@look_back_window_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lookBackWindowMinutes") end |
Instance Attribute Details
#look_back_window_minutes ⇒ Numeric (readonly)
The number of minutes to use as the look-back window.
692 693 694 |
# File 'application_signals/cfn_service_level_objective.rb', line 692 def look_back_window_minutes @look_back_window_minutes end |
Class Method Details
.jsii_properties ⇒ Object
694 695 696 697 698 |
# File 'application_signals/cfn_service_level_objective.rb', line 694 def self.jsii_properties { :look_back_window_minutes => "lookBackWindowMinutes", } end |
Instance Method Details
#to_jsii ⇒ Object
700 701 702 703 704 705 706 |
# File 'application_signals/cfn_service_level_objective.rb', line 700 def to_jsii result = {} result.merge!({ "lookBackWindowMinutes" => @look_back_window_minutes, }) result.compact end |