{"type":"api","title":"Retrieve the dwell time for a given period and areas","meta":{"id":"/apps/pubhub/media/cisco-cmx-v11-0-0/c5aed5a4a2c41c993164672f27e8c5acda4dd890/d37e42da-a44a-307a-975e-404f92d8f07e","info":{"title":"Analytics API","version":"1.0.0","description":"This is Analytics API. Use Analytics APIs to retrieve Analytics data programmatically from the Cisco CMX."},"openapi":"3.0.0","servers":[{"url":"/fakecmxserver"}]},"spec":{"operationId":"deviceDwell","summary":"Retrieve the dwell time for a given period and areas","description":"The only parameter (body) is a JSON array containing the parameters. The parameters are described below","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string"},"timeRange":{"type":"string"},"granularity":{"type":"string"},"areas":{"type":"number"}},"required":["param1","param2"]}},"example":[{"period":"today","timeRange":"00:00-23:59","granularity":"hourly","areas":"52,75"}]}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"},"example":{"startTime":"00:00","startDate":"2017-03-16","connectionState":"all","results":[{"id":53,"ancestry":[{"level":"Building","name":"REQ"},{"level":"Campus","name":"Richfield"}],"series":["datetime"],"hasChildren":false,"level":"FLOOR","area":"2nd Floor","data":[]},{"id":75,"ancestry":[{"level":"Floor","name":"Site 4"},{"level":"Building","name":"Site 4"},{"level":"Campus","name":"San Jose Outdoor"}],"series":["datetime"],"hasChildren":false,"level":"AP","area":"f4:0f:1b:1a:82:90","data":[]}],"interval":"hourly","executionTime":0,"minValue":2147483647,"endDate":"2017-03-16","endTime":"23:59","dataFreshness":"2017-03-16T02:58:04.319-07:00","maxValue":0}}}},"401":{"description":"Error Message","content":{"application/json":{"schema":{"type":"object"},"example":{"error":"CMX: System error"}}}}},"__originalOperationId":"deviceDwell","method":"post","path":"/analytics/v1/deviceDwell"}}