Device Graph
device_graphRender a device-level graph image for any hostname and graph type. Adjust time range, width, height, and legend to visualize network performance.
Instructions
Render a device-level graph as an image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Graph width in pixels. | |
| height | No | Graph height in pixels. | |
| legend | No | Whether to render the graph legend. | |
| to_time | No | End of the time range, either a relative offset or a Unix timestamp. Defaults to now. | |
| hostname | Yes | Device hostname or device ID | |
| from_time | No | Start of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d). | |
| graph_type | Yes | Graph type, as returned by device_graphs_list (e.g. 'device_icmp_perf', 'device_poller_perf', 'device_availability') |