Class: AWSCDK::ApplicationInsights::CfnApplication::AlarmMetricProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_metric_name:) ⇒ AlarmMetricProperty

Returns a new instance of AlarmMetricProperty.

Parameters:

  • alarm_metric_name (String)

    The name of the metric to be monitored for the component.



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



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_jsiiObject



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