Class: AWSCDK::ApplicationAutoScaling::CfnScalingPolicy::PredictiveScalingMetricProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationAutoScaling::CfnScalingPolicy::PredictiveScalingMetricProperty
- Defined in:
- application_auto_scaling/cfn_scaling_policy.rb
Overview
Describes the scaling metric.
Instance Attribute Summary collapse
-
#dimensions ⇒ AWSCDK::IResolvable, ...
readonly
Describes the dimensions of the metric.
-
#metric_name ⇒ String?
readonly
The name of the metric.
-
#namespace ⇒ String?
readonly
The namespace of the metric.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dimensions: nil, metric_name: nil, namespace: nil) ⇒ PredictiveScalingMetricProperty
constructor
A new instance of PredictiveScalingMetricProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dimensions: nil, metric_name: nil, namespace: nil) ⇒ PredictiveScalingMetricProperty
Returns a new instance of PredictiveScalingMetricProperty.
1056 1057 1058 1059 1060 1061 1062 1063 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1056 def initialize(dimensions: nil, metric_name: nil, namespace: nil) @dimensions = dimensions Jsii::Type.check_type(@dimensions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25hdXRvc2NhbGluZy5DZm5TY2FsaW5nUG9saWN5LlByZWRpY3RpdmVTY2FsaW5nTWV0cmljRGltZW5zaW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "dimensions") unless @dimensions.nil? @metric_name = metric_name Jsii::Type.check_type(@metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") unless @metric_name.nil? @namespace = namespace Jsii::Type.check_type(@namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespace") unless @namespace.nil? end |
Instance Attribute Details
#dimensions ⇒ AWSCDK::IResolvable, ... (readonly)
Describes the dimensions of the metric.
1069 1070 1071 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1069 def dimensions @dimensions end |
#metric_name ⇒ String? (readonly)
The name of the metric.
1074 1075 1076 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1074 def metric_name @metric_name end |
#namespace ⇒ String? (readonly)
The namespace of the metric.
1079 1080 1081 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1079 def namespace @namespace end |
Class Method Details
.jsii_properties ⇒ Object
1081 1082 1083 1084 1085 1086 1087 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1081 def self.jsii_properties { :dimensions => "dimensions", :metric_name => "metricName", :namespace => "namespace", } end |
Instance Method Details
#to_jsii ⇒ Object
1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1089 def to_jsii result = {} result.merge!({ "dimensions" => @dimensions, "metricName" => @metric_name, "namespace" => @namespace, }) result.compact end |