get_power_events
Identify UPS/PDU power alerts (on battery, runtime remaining, input voltage lost) across APC, Liebert, and Eaton by filtering alerts over a time window. Returns event counts per pattern.
Instructions
Filter alerts for UPS/PDU power-event signatures across APC, Liebert, and Eaton DataSources ('on battery', 'runtime remaining', 'input voltage lost') over a time window. Returns events matched by DataSource or alert name substring with counts per pattern.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Scope to a device name (substring match) | |
| group_id | No | Scope to a device group | |
| patterns | No | Override default patterns. Default covers UPS, PDU, APC, Liebert, Eaton, Battery, PowerSupply, Power_. | |
| severity | No | Filter by severity | |
| hours_back | No | Lookback window in hours (default: 2) |