Hello, I’ve been trying to extract the metrics of a service from the REST API, but I can’t find a way to do it. For example, I’d like to extract these metrics from Interface 5 (input and output bandwidth) over a certain period of time (let’s say the last 3 months):
I can’t find anything on swagger, and I’ve found online that there is something called “get_graph” used in the old WEB API, which are now deprecated and I’d like not to use.
Anders is right, 2.1 did not yet feature the relevant endpoints. I am not entirely sure, if we introduced them with 2.2 or 2.3 but I want to say 2.2.
Anyways, it is a good idea to get updating as 2.1 is approaching its end of life at the end of this year.
Thanks for your feedback.
I also have a CheckMK RAW edition up to date for testing purposes, so I’d like to do get started with it.
May I ask what the endpoint might be?
{
"title": "Bad Request",
"status": 400,
"detail": "2 validation errors for GraphDataRange\ntime_range.0\n Input should be a valid integer, got a number with a fractional part [type=int_from_float, input_value=1722815109.065558, input_type=float]\n For further information visit https://errors.pydantic.dev/2.5/v/int_from_float\ntime_range.1\n Input should be a valid integer, got a number with a fractional part [type=int_from_float, input_value=1722816009.065566, input_type=float]\n For further information visit https://errors.pydantic.dev/2.5/v/int_from_float"
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.