Meraki AP Client Usage

SOLVED
klausengelmann
Here to help

Meraki AP Client Usage

Hello Meraki Team.

 

Please, I need help to understand why I am getting several results for many days using the API getNetworkWirelessClientCountHistory.

 

I am using timespan 3600. I expected to receive only one hour of data.

 

https://api.meraki.com/api/v1/networks/{network}/wireless/clientCountHistory?timespan=3600&autoResolution=true&ssid={ssid}

 

$ python script_count_ssid_usage.py
[
{
"startTs": "2021-08-20T18:50:00Z",
"endTs": "2021-08-20T18:55:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T18:55:00Z",
"endTs": "2021-08-20T19:00:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:00:00Z",
"endTs": "2021-08-20T19:05:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:05:00Z",
"endTs": "2021-08-20T19:10:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:10:00Z",
"endTs": "2021-08-20T19:15:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:15:00Z",
"endTs": "2021-08-20T19:20:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:20:00Z",
"endTs": "2021-08-20T19:25:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:25:00Z",
"endTs": "2021-08-20T19:30:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:30:00Z",
"endTs": "2021-08-20T19:35:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:35:00Z",
"endTs": "2021-08-20T19:40:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:40:00Z",
"endTs": "2021-08-20T19:45:00Z",
"clientCount": 4
},
{
"startTs": "2021-08-20T19:45:00Z",
"endTs": "2021-08-20T19:50:00Z",
"clientCount": 4
}
]

 

Regards,

Klaus Engelmann

1 ACCEPTED SOLUTION
Bruce
Kind of a big deal

@klausengelmann, you do have one hour of data 😀 You have from 20/08/2021 18:50 to 20/08/2021 19:50, but it’s provided in 5 minute intervals. The 5 minute intervals are because you have autoResolution=true as one of your parameters, you’ll need to define the resolution manually if you don’t want it provided in 5 minute intervals - or massage it to what you need in a script.

 

EDIT: try resolution=3600 instead of autoResolution=true

View solution in original post

2 REPLIES 2
Bruce
Kind of a big deal

@klausengelmann, you do have one hour of data 😀 You have from 20/08/2021 18:50 to 20/08/2021 19:50, but it’s provided in 5 minute intervals. The 5 minute intervals are because you have autoResolution=true as one of your parameters, you’ll need to define the resolution manually if you don’t want it provided in 5 minute intervals - or massage it to what you need in a script.

 

EDIT: try resolution=3600 instead of autoResolution=true

Hello Bruce.

 

It worked !!!


Thanks !!!

 

[
{
"startTs": "2021-08-23T11:00:00Z",
"endTs": "2021-08-23T12:00:00Z",
"clientCount": 383
}
]

Get notified when there are additional replies to this discussion.