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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_power_events"
}
}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) |