Class: AWSCDK::ApplicationSignals::CfnServiceLevelObjective::MonitoredRequestCountMetricProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationSignals::CfnServiceLevelObjective::MonitoredRequestCountMetricProperty
- Defined in:
- application_signals/cfn_service_level_objective.rb
Overview
This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO.
This value observed for the metric defined in TotalRequestCountMetric is divided by the number found for MonitoredRequestCountMetric to determine the percentage of successful requests that this SLO tracks.
Instance Attribute Summary collapse
-
#bad_count_metric ⇒ AWSCDK::IResolvable, ...
readonly
If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.
-
#good_count_metric ⇒ AWSCDK::IResolvable, ...
readonly
If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bad_count_metric: nil, good_count_metric: nil) ⇒ MonitoredRequestCountMetricProperty
constructor
A new instance of MonitoredRequestCountMetricProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bad_count_metric: nil, good_count_metric: nil) ⇒ MonitoredRequestCountMetricProperty
Returns a new instance of MonitoredRequestCountMetricProperty.
1382 1383 1384 1385 1386 1387 |
# File 'application_signals/cfn_service_level_objective.rb', line 1382 def initialize(bad_count_metric: nil, good_count_metric: nil) @bad_count_metric = bad_count_metric Jsii::Type.check_type(@bad_count_metric, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25zaWduYWxzLkNmblNlcnZpY2VMZXZlbE9iamVjdGl2ZS5NZXRyaWNEYXRhUXVlcnlQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "badCountMetric") unless @bad_count_metric.nil? @good_count_metric = good_count_metric Jsii::Type.check_type(@good_count_metric, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25zaWduYWxzLkNmblNlcnZpY2VMZXZlbE9iamVjdGl2ZS5NZXRyaWNEYXRhUXVlcnlQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "goodCountMetric") unless @good_count_metric.nil? end |
Instance Attribute Details
#bad_count_metric ⇒ AWSCDK::IResolvable, ... (readonly)
If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.
1393 1394 1395 |
# File 'application_signals/cfn_service_level_objective.rb', line 1393 def bad_count_metric @bad_count_metric end |
#good_count_metric ⇒ AWSCDK::IResolvable, ... (readonly)
If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.
1398 1399 1400 |
# File 'application_signals/cfn_service_level_objective.rb', line 1398 def good_count_metric @good_count_metric end |
Class Method Details
.jsii_properties ⇒ Object
1400 1401 1402 1403 1404 1405 |
# File 'application_signals/cfn_service_level_objective.rb', line 1400 def self.jsii_properties { :bad_count_metric => "badCountMetric", :good_count_metric => "goodCountMetric", } end |
Instance Method Details
#to_jsii ⇒ Object
1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'application_signals/cfn_service_level_objective.rb', line 1407 def to_jsii result = {} result.merge!({ "badCountMetric" => @bad_count_metric, "goodCountMetric" => @good_count_metric, }) result.compact end |