# API Reference
**Classes**
Name|Description
----|-----------
[DriftMonitor](#cdk-drift-monitor-driftmonitor)|*No description*
**Structs**
Name|Description
----|-----------
[DriftMonitorProps](#cdk-drift-monitor-driftmonitorprops)|*No description*
## class DriftMonitor 🔹
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
__Extends__: [Construct](#constructs-construct)
### Initializer
```ts
new DriftMonitor(scope: Construct, id: string, props?: DriftMonitorProps)
```
* **scope** ([Construct](#constructs-construct)
) *No description*
* **id** (string
) *No description*
* **props** ([DriftMonitorProps](#cdk-drift-monitor-driftmonitorprops)
) *No description*
* **alarmOptions** ([aws_cloudwatch.CreateAlarmOptions](#aws-cdk-lib-aws-cloudwatch-createalarmoptions)
) Options to create alarm. __*Default*__: alarm on 1 drifted stacks or more, for 3 data points, for
* **metricNamespace** (string
) Namespace of published metric. __*Default*__: 'DriftMonitor'
* **runEvery** ([Duration](#aws-cdk-lib-duration)
) Run drift detection every X duration. __*Default*__: Duration.hours(1)
* **stackNames** (Array
) List of stack names to monitor for CloudFormation drifts. __*Optional*__
* **stacks** (Array<[Stack](#aws-cdk-lib-stack)>
) List of stack to monitor for CloudFormation drifts Either stacks or stackNames are required (though not both). __*Optional*__
### Properties
Name | Type | Description
-----|------|-------------
**alarm**🔹 | [aws_cloudwatch.Alarm](#aws-cdk-lib-aws-cloudwatch-alarm)
|
## struct DriftMonitorProps 🔹
Name | Type | Description
-----|------|-------------
**alarmOptions**?🔹 | [aws_cloudwatch.CreateAlarmOptions](#aws-cdk-lib-aws-cloudwatch-createalarmoptions)
| Options to create alarm.
__*Default*__: alarm on 1 drifted stacks or more, for 3 data points, for
**metricNamespace**?🔹 | string
| Namespace of published metric.
__*Default*__: 'DriftMonitor'
**runEvery**?🔹 | [Duration](#aws-cdk-lib-duration)
| Run drift detection every X duration.
__*Default*__: Duration.hours(1)
**stackNames**?🔹 | Array
| List of stack names to monitor for CloudFormation drifts.
__*Optional*__
**stacks**?🔹 | Array<[Stack](#aws-cdk-lib-stack)>
| List of stack to monitor for CloudFormation drifts Either stacks or stackNames are required (though not both).
__*Optional*__