Class: AWSCDK::ApplicationInsights::CfnApplication::ProcessProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationInsights::CfnApplication::ProcessProperty
- Defined in:
- application_insights/cfn_application.rb
Overview
A process to be monitored for the component.
Instance Attribute Summary collapse
-
#alarm_metrics ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ApplicationInsights::CfnApplication::AlarmMetricProperty>
readonly
A list of metrics to monitor for the component.
-
#process_name ⇒ String
readonly
The name of the process to be monitored for the component.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alarm_metrics:, process_name:) ⇒ ProcessProperty
constructor
A new instance of ProcessProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alarm_metrics:, process_name:) ⇒ ProcessProperty
Returns a new instance of ProcessProperty.
1468 1469 1470 1471 1472 1473 |
# File 'application_insights/cfn_application.rb', line 1468 def initialize(alarm_metrics:, process_name:) @alarm_metrics = alarm_metrics Jsii::Type.check_type(@alarm_metrics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbGljYXRpb25pbnNpZ2h0cy5DZm5BcHBsaWNhdGlvbi5BbGFybU1ldHJpY1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "alarmMetrics") @process_name = process_name Jsii::Type.check_type(@process_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "processName") end |
Instance Attribute Details
#alarm_metrics ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ApplicationInsights::CfnApplication::AlarmMetricProperty> (readonly)
A list of metrics to monitor for the component.
1479 1480 1481 |
# File 'application_insights/cfn_application.rb', line 1479 def alarm_metrics @alarm_metrics end |
#process_name ⇒ String (readonly)
The name of the process to be monitored for the component.
1484 1485 1486 |
# File 'application_insights/cfn_application.rb', line 1484 def process_name @process_name end |
Class Method Details
.jsii_properties ⇒ Object
1486 1487 1488 1489 1490 1491 |
# File 'application_insights/cfn_application.rb', line 1486 def self.jsii_properties { :alarm_metrics => "alarmMetrics", :process_name => "processName", } end |
Instance Method Details
#to_jsii ⇒ Object
1493 1494 1495 1496 1497 1498 1499 1500 |
# File 'application_insights/cfn_application.rb', line 1493 def to_jsii result = {} result.merge!({ "alarmMetrics" => @alarm_metrics, "processName" => @process_name, }) result.compact end |