Class: AWSCDK::ApplicationInsights::CfnApplication::AlarmProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::AlarmProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The AWS::ApplicationInsights::Application Alarm property type defines a CloudWatch alarm to be monitored for the component.
Instance Attribute Summary collapse
-
#alarm_name ⇒ String
readonly
The name of the CloudWatch alarm to be monitored for the component.
-
#severity ⇒ String?
readonly
Indicates the degree of outage when the alarm goes off.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alarm_name:, severity: nil) ⇒ AlarmProperty
constructor
A new instance of AlarmProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alarm_name:, severity: nil) ⇒ AlarmProperty
Returns a new instance of AlarmProperty.
696 697 698 699 700 701 |
# File 'application_insights/cfn_application.rb', line 696 def initialize(alarm_name:, severity: nil) @alarm_name = alarm_name Jsii::Type.check_type(@alarm_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "alarmName") @severity = severity Jsii::Type.check_type(@severity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "severity") unless @severity.nil? end |
Instance Attribute Details
#alarm_name ⇒ String (readonly)
The name of the CloudWatch alarm to be monitored for the component.
707 708 709 |
# File 'application_insights/cfn_application.rb', line 707 def alarm_name @alarm_name end |
#severity ⇒ String? (readonly)
Indicates the degree of outage when the alarm goes off.
712 713 714 |
# File 'application_insights/cfn_application.rb', line 712 def severity @severity end |
Class Method Details
.jsii_properties ⇒ Object
714 715 716 717 718 719 |
# File 'application_insights/cfn_application.rb', line 714 def self.jsii_properties { :alarm_name => "alarmName", :severity => "severity", } end |
Instance Method Details
#to_jsii ⇒ Object
721 722 723 724 725 726 727 728 |
# File 'application_insights/cfn_application.rb', line 721 def to_jsii result = {} result.merge!({ "alarmName" => @alarm_name, "severity" => @severity, }) result.compact end |