[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/monitor](../README) / evaluateAlerts

# Function: evaluateAlerts()

> **evaluateAlerts**(`snap`, `thresholds?`): [`AlertNotice`](../interfaces/AlertNotice)[]

Defined in: [monitor/src/alerting.ts:46](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/alerting.ts#L46)

Evaluate the snapshot against thresholds; returns the currently-breaching alerts.

## Parameters

### snap

[`MonitorSnapshot`](../interfaces/MonitorSnapshot)

### thresholds?

[`AlertThresholds`](../interfaces/AlertThresholds) = `{}`

## Returns

[`AlertNotice`](../interfaces/AlertNotice)[]
