Traffic Analysis api

AhmedJawad
Getting noticed

Traffic Analysis api

Hi All, 

 

  Trying to get MX traffic analysis history. so I need to get things like the total of MS teams usage for a month, using the below API? 

 

{{baseUrl}}/networks/:networkId/traffic

 

I'm getting error  timespan is too large if I don't send time spam and send t0 only. I need the traffic for a month, so if I set t0 for today do I need to pass another parameter t1 for the range of a month ? 

 

 

AhmedJawad_0-1653167299705.png

 

3 REPLIES 3
RaphaelL
Kind of a big deal
Kind of a big deal

Hi ,

 

Please refer to the documentation : https://developer.cisco.com/meraki/api-v1/#!get-network-traffic

 

The timespan for which the information will be fetched. If specifying timespan, do not specify parameter t0. The value must be in seconds and be less than or equal to 30 days.

Thank you for the reply,

so if I need to get 30 days report I will need to change 30 days to seconds and then add that ad a timespan parameter? 

 

Also, I'm getting a reply like below, I see send and receive only but not the usage. is there any API that can retrieve the usage? 

 

 

{
        "application""Miscellaneous web",
        "destination""webdefence.global.blackspider.com",
        "protocol""TCP",
        "port"80,
        "recv"35530,
        "sent"769,
        "flows"1835,
        "activeTime"21180,
        "numClients"6
Get notified when there are additional replies to this discussion.