alert_history
Retrieve recent trigger-history records for a fired alert, including timestamps and metadata. Use the truncated flag to detect omitted older records and raise the limit to fetch them.
Instructions
[READ] List recent trigger-history records for an alert.
Use this for when an alert fired, not how it's defined. Returns the family list envelope {items, returned, limit, total, truncated, hint}; each item is {timestamp_ms, info}. total is the real history-record count, so truncated answers whether older records were left behind — raise limit when true. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum history records returned, most recent first as the appliance orders them (default 50). There is no offset — the appliance hands back the whole history in one call and this slices it, so when truncated is true the only way to reach older records is a larger limit. | |
| target | No | Log Insight target name as spelled in ~/.vmware-log-insight/config.yaml. Omit to use that file's default_target — with no default configured, omitting it is an error that lists the configured names. | |
| alert_id | Yes | The alert id exactly as returned in an alert_list row's 'id' field (not the alert's name). An empty string is refused with a message telling you to run alert_list first. |