Class: AWSCDK::CustomerProfiles::CfnRecommender::TrainingMetricsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnRecommender::TrainingMetricsProperty
- Defined in:
- customer_profiles/cfn_recommender.rb
Overview
Instance Attribute Summary collapse
-
#metrics ⇒ AWSCDK::IResolvable, ...
readonly
Training metrics by type.
-
#time ⇒ String?
readonly
Timestamp of the training metrics.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metrics: nil, time: nil) ⇒ TrainingMetricsProperty
constructor
A new instance of TrainingMetricsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metrics: nil, time: nil) ⇒ TrainingMetricsProperty
Returns a new instance of TrainingMetricsProperty.
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
#metrics ⇒ AWSCDK::IResolvable, ... (readonly)
Training metrics by type.
894 895 896 |
# File 'customer_profiles/cfn_recommender.rb', line 894 def metrics @metrics end |
#time ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |