Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::FileFormatDescriptorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::FileFormatDescriptorProperty
- Defined in:
- lookout_metrics/cfn_anomaly_detector.rb
Overview
Contains information about a source file's formatting.
Instance Attribute Summary collapse
-
#csv_format_descriptor ⇒ AWSCDK::IResolvable, ...
readonly
Contains information about how a source CSV data file should be analyzed.
-
#json_format_descriptor ⇒ AWSCDK::IResolvable, ...
readonly
Contains information about how a source JSON data file should be analyzed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(csv_format_descriptor: nil, json_format_descriptor: nil) ⇒ FileFormatDescriptorProperty
constructor
A new instance of FileFormatDescriptorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(csv_format_descriptor: nil, json_format_descriptor: nil) ⇒ FileFormatDescriptorProperty
Returns a new instance of FileFormatDescriptorProperty.
759 760 761 762 763 764 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 759 def initialize(csv_format_descriptor: nil, json_format_descriptor: nil) @csv_format_descriptor = csv_format_descriptor.is_a?(Hash) ? ::AWSCDK::LookoutMetrics::CfnAnomalyDetector::CsvFormatDescriptorProperty.new(**csv_format_descriptor.transform_keys(&:to_sym)) : csv_format_descriptor Jsii::Type.check_type(@csv_format_descriptor, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb29rb3V0bWV0cmljcy5DZm5Bbm9tYWx5RGV0ZWN0b3IuQ3N2Rm9ybWF0RGVzY3JpcHRvclByb3BlcnR5In1dfX0=")), "csvFormatDescriptor") unless @csv_format_descriptor.nil? @json_format_descriptor = json_format_descriptor.is_a?(Hash) ? ::AWSCDK::LookoutMetrics::CfnAnomalyDetector::JsonFormatDescriptorProperty.new(**json_format_descriptor.transform_keys(&:to_sym)) : json_format_descriptor Jsii::Type.check_type(@json_format_descriptor, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb29rb3V0bWV0cmljcy5DZm5Bbm9tYWx5RGV0ZWN0b3IuSnNvbkZvcm1hdERlc2NyaXB0b3JQcm9wZXJ0eSJ9XX19")), "jsonFormatDescriptor") unless @json_format_descriptor.nil? end |
Instance Attribute Details
#csv_format_descriptor ⇒ AWSCDK::IResolvable, ... (readonly)
Contains information about how a source CSV data file should be analyzed.
770 771 772 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 770 def csv_format_descriptor @csv_format_descriptor end |
#json_format_descriptor ⇒ AWSCDK::IResolvable, ... (readonly)
Contains information about how a source JSON data file should be analyzed.
775 776 777 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 775 def json_format_descriptor @json_format_descriptor end |
Class Method Details
.jsii_properties ⇒ Object
777 778 779 780 781 782 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 777 def self.jsii_properties { :csv_format_descriptor => "csvFormatDescriptor", :json_format_descriptor => "jsonFormatDescriptor", } end |
Instance Method Details
#to_jsii ⇒ Object
784 785 786 787 788 789 790 791 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 784 def to_jsii result = {} result.merge!({ "csvFormatDescriptor" => @csv_format_descriptor, "jsonFormatDescriptor" => @json_format_descriptor, }) result.compact end |