vunet_query_metric
Retrieve metric data from a Vunet data model by specifying its name, time range, and optional filters. Supports relative or absolute time, thresholds, and time shifts.
Instructions
Query a Vunet data model/metric with flexible time ranges and filters. Automatically uses the configured tenant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | Comma-separated fields to exclude from response | |
| filters | No | Dynamic filters as key-value pairs (e.g., {"ip": "192.168.0.1", "status": "active"}) | |
| include | No | Comma-separated fields to include in response | |
| end_time | No | End time (epoch timestamp or 'now', 'now-1h', etc.). Use with start_time instead of relative_time. | |
| formatting | No | Response format. Use 'lama' for LAMA format (Log Analytics) | |
| start_time | No | Start time (epoch timestamp or 'now', 'now-1h', etc.). Use with end_time instead of relative_time. | |
| thresholds | No | Include threshold data in response (default: false) | |
| time_shift | No | Time shift for comparison (e.g., '1h', '1d', '1w') | |
| metric_name | Yes | Name of the data model/metric to query (e.g., 'datamodel-metric-api') | |
| relative_time | No | Relative time (e.g., '15m', '1h', '1d', '1w', '1M', '1y') | |
| add_on_data_models | No | Comma-separated additional data models to join | |
| add_on_time_intervals | No | Additional time intervals for comparison (e.g., ['1h_ago', '1d_ago']) |