Class: AWSCDK::Sagemaker::CfnEndpoint::AlarmProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnEndpoint::AlarmProperty
- Defined in:
- sagemaker/cfn_endpoint.rb
Overview
An Amazon CloudWatch alarm configured to monitor metrics on an endpoint.
Instance Attribute Summary collapse
-
#alarm_name ⇒ String
readonly
The name of a CloudWatch alarm in your account.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alarm_name:) ⇒ AlarmProperty
constructor
A new instance of AlarmProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alarm_name:) ⇒ AlarmProperty
Returns a new instance of AlarmProperty.
612 613 614 615 |
# File 'sagemaker/cfn_endpoint.rb', line 612 def initialize(alarm_name:) @alarm_name = alarm_name Jsii::Type.check_type(@alarm_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "alarmName") end |
Instance Attribute Details
#alarm_name ⇒ String (readonly)
The name of a CloudWatch alarm in your account.
621 622 623 |
# File 'sagemaker/cfn_endpoint.rb', line 621 def alarm_name @alarm_name end |
Class Method Details
.jsii_properties ⇒ Object
623 624 625 626 627 |
# File 'sagemaker/cfn_endpoint.rb', line 623 def self.jsii_properties { :alarm_name => "alarmName", } end |
Instance Method Details
#to_jsii ⇒ Object
629 630 631 632 633 634 635 |
# File 'sagemaker/cfn_endpoint.rb', line 629 def to_jsii result = {} result.merge!({ "alarmName" => @alarm_name, }) result.compact end |