get_metrics_data
Retrieve time-series performance data for any metric of a Centreon service. Provides historical values over a specified time range for monitoring and analysis.
Instructions
Get time-series performance data for a specific metric of a service. Use get_service_metrics first to discover available metric names.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host_id": "<host_id>",
"service_id": "<service_id>",
"metric_name": "<metric_name>"
},
"name": "get_metrics_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the time range in ISO 8601 format (e.g., 2024-01-15T23:59:59Z). Defaults to now. | |
| start | No | Start of the time range in ISO 8601 format (e.g., 2024-01-15T00:00:00Z). Defaults to 24 hours ago. | |
| host_id | Yes | Centreon host ID | |
| service_id | Yes | Centreon service ID | |
| metric_name | Yes | Metric name as returned by get_service_metrics (e.g., 'rta', 'pl', 'load1') |