Class: AWSCDK::Sagemaker::CfnMonitoringScheduleProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnMonitoringScheduleProps
- Defined in:
- sagemaker/cfn_monitoring_schedule_props.rb
Overview
Properties for defining a CfnMonitoringSchedule.
Instance Attribute Summary collapse
-
#endpoint_name ⇒ String?
readonly
The name of the endpoint using the monitoring schedule.
-
#failure_reason ⇒ String?
readonly
Contains the reason a monitoring job failed, if it failed.
-
#last_monitoring_execution_summary ⇒ AWSCDK::IResolvable, ...
readonly
Describes metadata on the last execution to run, if there was one.
-
#monitoring_schedule_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringScheduleConfigProperty
readonly
The configuration object that specifies the monitoring schedule and defines the monitoring job.
-
#monitoring_schedule_name ⇒ String
readonly
The name of the monitoring schedule.
-
#monitoring_schedule_status ⇒ String?
readonly
The status of the monitoring schedule.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(monitoring_schedule_config:, monitoring_schedule_name:, endpoint_name: nil, failure_reason: nil, last_monitoring_execution_summary: nil, monitoring_schedule_status: nil, tags: nil) ⇒ CfnMonitoringScheduleProps
constructor
A new instance of CfnMonitoringScheduleProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(monitoring_schedule_config:, monitoring_schedule_name:, endpoint_name: nil, failure_reason: nil, last_monitoring_execution_summary: nil, monitoring_schedule_status: nil, tags: nil) ⇒ CfnMonitoringScheduleProps
Returns a new instance of CfnMonitoringScheduleProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 16 def initialize(monitoring_schedule_config:, monitoring_schedule_name:, endpoint_name: nil, failure_reason: nil, last_monitoring_execution_summary: nil, monitoring_schedule_status: nil, tags: nil) @monitoring_schedule_config = monitoring_schedule_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringScheduleConfigProperty.new(**monitoring_schedule_config.transform_keys(&:to_sym)) : monitoring_schedule_config Jsii::Type.check_type(@monitoring_schedule_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk1vbml0b3JpbmdTY2hlZHVsZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "monitoringScheduleConfig") @monitoring_schedule_name = monitoring_schedule_name Jsii::Type.check_type(@monitoring_schedule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "monitoringScheduleName") @endpoint_name = endpoint_name Jsii::Type.check_type(@endpoint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointName") unless @endpoint_name.nil? @failure_reason = failure_reason Jsii::Type.check_type(@failure_reason, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "failureReason") unless @failure_reason.nil? @last_monitoring_execution_summary = last_monitoring_execution_summary.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringExecutionSummaryProperty.new(**last_monitoring_execution_summary.transform_keys(&:to_sym)) : last_monitoring_execution_summary Jsii::Type.check_type(@last_monitoring_execution_summary, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk1vbml0b3JpbmdFeGVjdXRpb25TdW1tYXJ5UHJvcGVydHkifV19fQ==")), "lastMonitoringExecutionSummary") unless @last_monitoring_execution_summary.nil? @monitoring_schedule_status = monitoring_schedule_status Jsii::Type.check_type(@monitoring_schedule_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "monitoringScheduleStatus") unless @monitoring_schedule_status.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#endpoint_name ⇒ String? (readonly)
The name of the endpoint using the monitoring schedule.
47 48 49 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 47 def endpoint_name @endpoint_name end |
#failure_reason ⇒ String? (readonly)
Contains the reason a monitoring job failed, if it failed.
52 53 54 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 52 def failure_reason @failure_reason end |
#last_monitoring_execution_summary ⇒ AWSCDK::IResolvable, ... (readonly)
Describes metadata on the last execution to run, if there was one.
57 58 59 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 57 def last_monitoring_execution_summary @last_monitoring_execution_summary end |
#monitoring_schedule_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringScheduleConfigProperty (readonly)
The configuration object that specifies the monitoring schedule and defines the monitoring job.
37 38 39 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 37 def monitoring_schedule_config @monitoring_schedule_config end |
#monitoring_schedule_name ⇒ String (readonly)
The name of the monitoring schedule.
42 43 44 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 42 def monitoring_schedule_name @monitoring_schedule_name end |
#monitoring_schedule_status ⇒ String? (readonly)
The status of the monitoring schedule.
62 63 64 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 62 def monitoring_schedule_status @monitoring_schedule_status end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
69 70 71 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 69 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 71 def self.jsii_properties { :monitoring_schedule_config => "monitoringScheduleConfig", :monitoring_schedule_name => "monitoringScheduleName", :endpoint_name => "endpointName", :failure_reason => "failureReason", :last_monitoring_execution_summary => "lastMonitoringExecutionSummary", :monitoring_schedule_status => "monitoringScheduleStatus", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'sagemaker/cfn_monitoring_schedule_props.rb', line 83 def to_jsii result = {} result.merge!({ "monitoringScheduleConfig" => @monitoring_schedule_config, "monitoringScheduleName" => @monitoring_schedule_name, "endpointName" => @endpoint_name, "failureReason" => @failure_reason, "lastMonitoringExecutionSummary" => @last_monitoring_execution_summary, "monitoringScheduleStatus" => @monitoring_schedule_status, "tags" => @tags, }) result.compact end |