Class: AWSCDK::Sagemaker::CfnEndpoint::AlarmProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_endpoint.rb

Overview

An Amazon CloudWatch alarm configured to monitor metrics on an endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_name:) ⇒ AlarmProperty

Returns a new instance of AlarmProperty.

Parameters:

  • alarm_name (String)

    The name of a CloudWatch alarm in your account.



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_nameString (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_propertiesObject



623
624
625
626
627
# File 'sagemaker/cfn_endpoint.rb', line 623

def self.jsii_properties
  {
    :alarm_name => "alarmName",
  }
end

Instance Method Details

#to_jsiiObject



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