Get Metric History
get_historyRetrieve historical CPU, memory, or load values for a server to analyze past performance and diagnose incidents.
Instructions
Get historical CPU, memory, or load values for a server
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server hostname or IP | |
| hours | No | How many hours of history to return | |
| label | No | Optional label filter; omitted returns observations, set returns matching records | |
| limit | No | Maximum history points returned in one page; defaults to 100 | |
| cursor | No | Opaque cursor returned by a previous history page | |
| metric | No | Metric to return from historical snapshots | cpu |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| hours | Yes | ||
| label | Yes | ||
| metric | Yes | ||
| history | Yes | ||
| has_more | Yes | ||
| data_points | Yes | ||
| next_cursor | Yes |