Class: AWSCDK::ApplicationInsights::CfnApplication::WindowsEventProperty

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

Overview

The AWS::ApplicationInsights::Application WindowsEvent property type specifies a Windows Event to monitor for the component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_levels:, event_name:, log_group_name:, pattern_set: nil) ⇒ WindowsEventProperty

Returns a new instance of WindowsEventProperty.

Parameters:

  • event_levels (Array<String>)

    The levels of event to log.

  • event_name (String)

    The type of Windows Events to log, equivalent to the Windows Event log channel name.

  • log_group_name (String)

    The CloudWatch log group name to be associated with the monitored log.

  • pattern_set (String, nil) (defaults to: nil)

    The log pattern set.



1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'application_insights/cfn_application.rb', line 1672

def initialize(event_levels:, event_name:, log_group_name:, pattern_set: nil)
  @event_levels = event_levels
  Jsii::Type.check_type(@event_levels, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "eventLevels")
  @event_name = event_name
  Jsii::Type.check_type(@event_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventName")
  @log_group_name = log_group_name
  Jsii::Type.check_type(@log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupName")
  @pattern_set = pattern_set
  Jsii::Type.check_type(@pattern_set, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "patternSet") unless @pattern_set.nil?
end

Instance Attribute Details

#event_levelsArray<String> (readonly)

The levels of event to log.

You must specify each level to log. Possible values include INFORMATION , WARNING , ERROR , CRITICAL , and VERBOSE . This field is required for each type of Windows Event to log.



1689
1690
1691
# File 'application_insights/cfn_application.rb', line 1689

def event_levels
  @event_levels
end

#event_nameString (readonly)

The type of Windows Events to log, equivalent to the Windows Event log channel name.

For example, System, Security, CustomEventName, and so on. This field is required for each type of Windows event to log.



1696
1697
1698
# File 'application_insights/cfn_application.rb', line 1696

def event_name
  @event_name
end

#log_group_nameString (readonly)

The CloudWatch log group name to be associated with the monitored log.



1701
1702
1703
# File 'application_insights/cfn_application.rb', line 1701

def log_group_name
  @log_group_name
end

#pattern_setString? (readonly)

The log pattern set.



1706
1707
1708
# File 'application_insights/cfn_application.rb', line 1706

def pattern_set
  @pattern_set
end

Class Method Details

.jsii_propertiesObject



1708
1709
1710
1711
1712
1713
1714
1715
# File 'application_insights/cfn_application.rb', line 1708

def self.jsii_properties
  {
    :event_levels => "eventLevels",
    :event_name => "eventName",
    :log_group_name => "logGroupName",
    :pattern_set => "patternSet",
  }
end

Instance Method Details

#to_jsiiObject



1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
# File 'application_insights/cfn_application.rb', line 1717

def to_jsii
  result = {}
  result.merge!({
    "eventLevels" => @event_levels,
    "eventName" => @event_name,
    "logGroupName" => @log_group_name,
    "patternSet" => @pattern_set,
  })
  result.compact
end