Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::JsonFormatDescriptorProperty

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

Overview

Contains information about how a source JSON data file should be analyzed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(charset: nil, file_compression: nil) ⇒ JsonFormatDescriptorProperty

Returns a new instance of JsonFormatDescriptorProperty.

Parameters:

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

    The character set in which the source JSON file is written.

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

    The level of compression of the source CSV file.



802
803
804
805
806
807
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 802

def initialize(charset: nil, file_compression: nil)
  @charset = charset
  Jsii::Type.check_type(@charset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "charset") unless @charset.nil?
  @file_compression = file_compression
  Jsii::Type.check_type(@file_compression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileCompression") unless @file_compression.nil?
end

Instance Attribute Details

#charsetString? (readonly)

The character set in which the source JSON file is written.



813
814
815
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 813

def charset
  @charset
end

#file_compressionString? (readonly)

The level of compression of the source CSV file.



818
819
820
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 818

def file_compression
  @file_compression
end

Class Method Details

.jsii_propertiesObject



820
821
822
823
824
825
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 820

def self.jsii_properties
  {
    :charset => "charset",
    :file_compression => "fileCompression",
  }
end

Instance Method Details

#to_jsiiObject



827
828
829
830
831
832
833
834
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 827

def to_jsii
  result = {}
  result.merge!({
    "charset" => @charset,
    "fileCompression" => @file_compression,
  })
  result.compact
end