Class: AWSCDK::CloudWatch::CfnAnomalyDetector::RangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudWatch::CfnAnomalyDetector::RangeProperty
- Defined in:
- cloud_watch/cfn_anomaly_detector.rb
Overview
Each Range specifies one range of days or times to exclude from use for training or updating an anomaly detection model.
Instance Attribute Summary collapse
-
#end_time ⇒ String
readonly
The end time of the range to exclude.
-
#start_time ⇒ String
readonly
The start time of the range to exclude.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(end_time:, start_time:) ⇒ RangeProperty
constructor
A new instance of RangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(end_time:, start_time:) ⇒ RangeProperty
Returns a new instance of RangeProperty.
1029 1030 1031 1032 1033 1034 |
# File 'cloud_watch/cfn_anomaly_detector.rb', line 1029 def initialize(end_time:, start_time:) @end_time = end_time Jsii::Type.check_type(@end_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endTime") @start_time = start_time Jsii::Type.check_type(@start_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startTime") end |
Instance Attribute Details
#end_time ⇒ String (readonly)
The end time of the range to exclude.
The format is yyyy-MM-dd'T'HH:mm:ss . For example, 2019-07-01T23:59:59 .
1042 1043 1044 |
# File 'cloud_watch/cfn_anomaly_detector.rb', line 1042 def end_time @end_time end |
#start_time ⇒ String (readonly)
The start time of the range to exclude.
The format is yyyy-MM-dd'T'HH:mm:ss . For example, 2019-07-01T23:59:59 .
1049 1050 1051 |
# File 'cloud_watch/cfn_anomaly_detector.rb', line 1049 def start_time @start_time end |
Class Method Details
.jsii_properties ⇒ Object
1051 1052 1053 1054 1055 1056 |
# File 'cloud_watch/cfn_anomaly_detector.rb', line 1051 def self.jsii_properties { :end_time => "endTime", :start_time => "startTime", } end |
Instance Method Details
#to_jsii ⇒ Object
1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'cloud_watch/cfn_anomaly_detector.rb', line 1058 def to_jsii result = {} result.merge!({ "endTime" => @end_time, "startTime" => @start_time, }) result.compact end |