Hi everyone
I've been trying to get each network's last day bandwidth usage with getNetworkClientsBandwidthUsageHistory(NetworkId) and it returns a list of dict where every element represents a capture of a 20 minutes slot (73 elements for a 24h timespan) and if i want to get the total of upstream, downstream and total i need to sum each key of the 73 dicts to get a unique one with the 24h sum
Example:
[
{
"ts": "2024-10-21T15:40:00.000Z",
"total": 13.733489583333334,
"upstream": 3.972428385416667,
"downstream": 9.761061197916666
},
{
"ts": "2024-10-21T16:00:00.000Z",
"total": 11.941809895833334,
"upstream": 3.28517578125,
"downstream": 8.656634114583333
},
{
[...]
},
]
I've also tried using getOrganizationSummaryTopNetworksByStatus(OrganizationId) that runs at an organization level and that also gives me other information i need for other functions beside the last 7 days bandiwth
Example from DevNet:
[
{
"networkId": "N_24329156",
"name": "Main Office",
"url": "https://n1.meraki.com//n//manage/nodes/list",
"tags": [ "tag1", "tag2" ],
"clients": {
"counts": { "total": 72 },
"usage": {
"upstream": 3732658.44,
"downstream": 983732658.87
}
},
"statuses": {
"overall": "online",
"byProductType": [
{
"productType": "wireless",
"counts": {
"online": 2,
"offline": 1,
"alerting": 0,
"dormant": 3
}
}
]
},
"devices": {
"byProductType": [
{
"productType": "wireless",
"url": "https://n1.meraki.com//n//manage/nodes/new_list/000000000000"
}
]
},
"productTypes": [
"appliance",
"switch",
"wireless"
]
}
The fact is that i need to run these calls for more than three thousands networks and it takes too much time to process, expecially the one that runs at an Organization level
Do you know any other API I can use to get each network's banwidth usage?