Class CfnApplication.WindowsEventProperty
The AWS::ApplicationInsights::Application WindowsEvent
property type specifies a Windows Event to monitor for the component.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ApplicationInsights
Assembly: Amazon.CDK.AWS.ApplicationInsights.dll
Syntax (csharp)
public class WindowsEventProperty : Object, CfnApplication.IWindowsEventProperty
Syntax (vb)
Public Class WindowsEventProperty
Inherits Object
Implements CfnApplication.IWindowsEventProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationInsights;
var windowsEventProperty = new WindowsEventProperty {
EventLevels = new [] { "eventLevels" },
EventName = "eventName",
LogGroupName = "logGroupName",
// the properties below are optional
PatternSet = "patternSet"
};
Synopsis
Constructors
WindowsEventProperty() |
Properties
EventLevels | The levels of event to log. |
EventName | The type of Windows Events to log, equivalent to the Windows Event log channel name. |
LogGroupName | The CloudWatch log group name to be associated with the monitored log. |
PatternSet | The log pattern set. |
Constructors
WindowsEventProperty()
public WindowsEventProperty()
Properties
EventLevels
The levels of event to log.
public string[] EventLevels { get; set; }
Property Value
System.String[]
Remarks
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.
EventName
The type of Windows Events to log, equivalent to the Windows Event log channel name.
public string EventName { get; set; }
Property Value
System.String
Remarks
For example, System, Security, CustomEventName, and so on. This field is required for each type of Windows event to log.
LogGroupName
The CloudWatch log group name to be associated with the monitored log.
public string LogGroupName { get; set; }
Property Value
System.String
Remarks
PatternSet
The log pattern set.
public string PatternSet { get; set; }
Property Value
System.String