Class: AWSCDK::ApplicationInsights::CfnApplication::AlarmMetricProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::AlarmMetricProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
The AWS::ApplicationInsights::Application AlarmMetric property type defines a metric to monitor for the component.
Instance Attribute Summary collapse
-
#alarm_metric_name ⇒ String
readonly
The name of the metric to be monitored for the component.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alarm_metric_name:) ⇒ AlarmMetricProperty
constructor
A new instance of AlarmMetricProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alarm_metric_name:) ⇒ AlarmMetricProperty
Returns a new instance of AlarmMetricProperty.
660 661 662 663 |
# File 'application_insights/cfn_application.rb', line 660 def initialize(alarm_metric_name:) @alarm_metric_name = alarm_metric_name Jsii::Type.check_type(@alarm_metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "alarmMetricName") end |
Instance Attribute Details
#alarm_metric_name ⇒ String (readonly)
The name of the metric to be monitored for the component.
For metrics supported by Application Insights, see Logs and metrics supported by Amazon CloudWatch Application Insights .
671 672 673 |
# File 'application_insights/cfn_application.rb', line 671 def alarm_metric_name @alarm_metric_name end |
Class Method Details
.jsii_properties ⇒ Object
673 674 675 676 677 |
# File 'application_insights/cfn_application.rb', line 673 def self.jsii_properties { :alarm_metric_name => "alarmMetricName", } end |
Instance Method Details
#to_jsii ⇒ Object
679 680 681 682 683 684 685 |
# File 'application_insights/cfn_application.rb', line 679 def to_jsii result = {} result.merge!({ "alarmMetricName" => @alarm_metric_name, }) result.compact end |