Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::BurnRateConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(look_back_window_minutes:) ⇒ BurnRateConfigurationProperty

Returns a new instance of BurnRateConfigurationProperty.

Parameters:

  • look_back_window_minutes (Numeric)

    The number of minutes to use as the look-back window.



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_minutesNumeric (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_propertiesObject



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_jsiiObject



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