Class: AWSCDK::ApplicationInsights::CfnApplication::ProcessProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_insights/cfn_application.rb

Overview

A process to be monitored for the component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_metrics:, process_name:) ⇒ ProcessProperty

Returns a new instance of ProcessProperty.

Parameters:



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

#process_nameString (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_propertiesObject



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_jsiiObject



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