WindowsEventProperty Struct
The AWS::ApplicationInsights::Application WindowsEvent property type specifies a Windows Event to monitor for the component.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const windowsEventProperty: applicationinsights.CfnApplication.WindowsEventProperty = {
eventLevels: ['eventLevels'],
eventName: 'eventName',
logGroupName: 'logGroupName',
// the properties below are optional
patternSet: 'patternSet',
};
Properties
eventLevelsstring[]event_levelstyping.List[str]eventLevelsList<String>EventLevelsstring[]EventLevels*[]*stringrequired#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.
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.
The CloudWatch log group name to be associated with the monitored log.
patternSetoptionalstringpattern_setoptionalstrpatternSetoptionalStringPatternSetoptionalstringPatternSetoptional*string#The log pattern set.