Class: AWSCDK::CustomerProfiles::CfnRecommender::TrainingMetricsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_recommender.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metrics: nil, time: nil) ⇒ TrainingMetricsProperty

Returns a new instance of TrainingMetricsProperty.

Parameters:



883
884
885
886
887
888
# File 'customer_profiles/cfn_recommender.rb', line 883

def initialize(metrics: nil, time: nil)
  @metrics = metrics.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnRecommender::MetricsProperty.new(**metrics.transform_keys(&:to_sym)) : metrics
  Jsii::Type.check_type(@metrics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblJlY29tbWVuZGVyLk1ldHJpY3NQcm9wZXJ0eSJ9XX19")), "metrics") unless @metrics.nil?
  @time = time
  Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "time") unless @time.nil?
end

Instance Attribute Details

#timeString? (readonly)

Timestamp of the training metrics.



899
900
901
# File 'customer_profiles/cfn_recommender.rb', line 899

def time
  @time
end

Class Method Details

.jsii_propertiesObject



901
902
903
904
905
906
# File 'customer_profiles/cfn_recommender.rb', line 901

def self.jsii_properties
  {
    :metrics => "metrics",
    :time => "time",
  }
end

Instance Method Details

#to_jsiiObject



908
909
910
911
912
913
914
915
# File 'customer_profiles/cfn_recommender.rb', line 908

def to_jsii
  result = {}
  result.merge!({
    "metrics" => @metrics,
    "time" => @time,
  })
  result.compact
end