Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::CsvFormatDescriptorProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(charset: nil, contains_header: nil, delimiter: nil, file_compression: nil, header_list: nil, quote_symbol: nil) ⇒ CsvFormatDescriptorProperty

Returns a new instance of CsvFormatDescriptorProperty.

Parameters:

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

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

  • contains_header (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether or not the source CSV file contains a header.

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

    The character used to delimit the source CSV file.

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

    The level of compression of the source CSV file.

  • header_list (Array<String>, nil) (defaults to: nil)

    A list of the source CSV file's headers, if any.

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

    The character used as a quote character.



680
681
682
683
684
685
686
687
688
689
690
691
692
693
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 680

def initialize(charset: nil, contains_header: nil, delimiter: nil, file_compression: nil, header_list: nil, quote_symbol: nil)
  @charset = charset
  Jsii::Type.check_type(@charset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "charset") unless @charset.nil?
  @contains_header = contains_header
  Jsii::Type.check_type(@contains_header, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "containsHeader") unless @contains_header.nil?
  @delimiter = delimiter
  Jsii::Type.check_type(@delimiter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "delimiter") unless @delimiter.nil?
  @file_compression = file_compression
  Jsii::Type.check_type(@file_compression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileCompression") unless @file_compression.nil?
  @header_list = header_list
  Jsii::Type.check_type(@header_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "headerList") unless @header_list.nil?
  @quote_symbol = quote_symbol
  Jsii::Type.check_type(@quote_symbol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "quoteSymbol") unless @quote_symbol.nil?
end

Instance Attribute Details

#charsetString? (readonly)

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



699
700
701
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 699

def charset
  @charset
end

#contains_headerBoolean, ... (readonly)

Whether or not the source CSV file contains a header.



704
705
706
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 704

def contains_header
  @contains_header
end

#delimiterString? (readonly)

The character used to delimit the source CSV file.



709
710
711
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 709

def delimiter
  @delimiter
end

#file_compressionString? (readonly)

The level of compression of the source CSV file.



714
715
716
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 714

def file_compression
  @file_compression
end

#header_listArray<String>? (readonly)

A list of the source CSV file's headers, if any.



719
720
721
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 719

def header_list
  @header_list
end

#quote_symbolString? (readonly)

The character used as a quote character.



724
725
726
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 724

def quote_symbol
  @quote_symbol
end

Class Method Details

.jsii_propertiesObject



726
727
728
729
730
731
732
733
734
735
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 726

def self.jsii_properties
  {
    :charset => "charset",
    :contains_header => "containsHeader",
    :delimiter => "delimiter",
    :file_compression => "fileCompression",
    :header_list => "headerList",
    :quote_symbol => "quoteSymbol",
  }
end

Instance Method Details

#to_jsiiObject



737
738
739
740
741
742
743
744
745
746
747
748
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 737

def to_jsii
  result = {}
  result.merge!({
    "charset" => @charset,
    "containsHeader" => @contains_header,
    "delimiter" => @delimiter,
    "fileCompression" => @file_compression,
    "headerList" => @header_list,
    "quoteSymbol" => @quote_symbol,
  })
  result.compact
end