06-15-2022 05:11 AM
Hi guys
Question to the Prime users out there: How to use the statistics API endpoints? Do they actually work? I get kind of no-sense outputs for endpoint-calls like the ones below - does anybody use these successfully?
/webacs/api/v4/op/statisticsService/interface/errors
/webacs/api/v4/op/statisticsService/interface/discards
etc.
I basically get a list of "staticEntries" (see below) - but the attributes and values are not really useful or accurate (all counters report 0 values, although I do see output discards on the queried device for the specified time-range on the CLI)?
"statisticEntries": {
"statisticEntry": [
{
"attributeName": "labelValue1",
"displayName": "Label Value 1",
"entryValue": "InterfacesInDiscards:0"
},
{
"attributeName": "labelValue2",
"displayName": "Label Value 2",
"entryValue": "InterfacesOutDiscards:0"
},
{
"attributeName": "timeStamp",
"displayName": "Time Stamp",
"entryValue": "1655291119"
}
]
}
Thanks
Marcel
06-28-2022 12:27 PM
Hello @Marcel Zehnder,
Here are the DevNet Documents for those endpoints:
GET statisticsService/interface/errors
GET statisticsService/interface/discards
A lot of good info there!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide