Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::TimestampColumnProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lookout_metrics/cfn_anomaly_detector.rb

Overview

Contains information about the column used to track time in a source data file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_format: nil, column_name: nil) ⇒ TimestampColumnProperty

Returns a new instance of TimestampColumnProperty.

Parameters:

  • column_format (String, nil) (defaults to: nil)

    The format of the timestamp column.

  • column_name (String, nil) (defaults to: nil)

    The name of the timestamp column.



1355
1356
1357
1358
1359
1360
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1355

def initialize(column_format: nil, column_name: nil)
  @column_format = column_format
  Jsii::Type.check_type(@column_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnFormat") unless @column_format.nil?
  @column_name = column_name
  Jsii::Type.check_type(@column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnName") unless @column_name.nil?
end

Instance Attribute Details

#column_formatString? (readonly)

The format of the timestamp column.



1366
1367
1368
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1366

def column_format
  @column_format
end

#column_nameString? (readonly)

The name of the timestamp column.



1371
1372
1373
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1371

def column_name
  @column_name
end

Class Method Details

.jsii_propertiesObject



1373
1374
1375
1376
1377
1378
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1373

def self.jsii_properties
  {
    :column_format => "columnFormat",
    :column_name => "columnName",
  }
end

Instance Method Details

#to_jsiiObject



1380
1381
1382
1383
1384
1385
1386
1387
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1380

def to_jsii
  result = {}
  result.merge!({
    "columnFormat" => @column_format,
    "columnName" => @column_name,
  })
  result.compact
end