Class: AWSCDK::CloudWatch::CfnAnomalyDetector::RangeProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_time:, start_time:) ⇒ RangeProperty

Returns a new instance of RangeProperty.

Parameters:

  • end_time (String)

    The end time of the range to exclude.

  • start_time (String)

    The start time of the range to exclude.



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



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_jsiiObject



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