API get graphs with time frame

Hi everyone,

Im new to API requests first time can say i had succes to work on any api world.

So what im trying to do is get a graph but i need it with time frame by default it is like 24hr. I need to make those graphs with time frame week, month and yearly.

i.e
curl -H ‘X-Auth-Token: tokenid…’ http://192.168.x.x/api/v0/devices/1/ports/TenGigE0%2F2%2F0%2F0.589/port_bits

Any one has any idea how to.

If you worked it out let me know. I’m having a similar issue

Hi Richard didnt still,

But one step closer looking in to this link.
API - port bits graph - Help - LibreNMS Community

exmaple:
http://x.x.x.x/api/v0/devices/1/ports/TenGigE0%2F2%2F0%2F0.589/port_bits?from=1693999170&to=1694603970

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.