cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

467
Views
0
Helpful
2
Replies
Highlighted
Cisco Employee

CMX- How to get Dwell time and count by zone

Hi,

    Is there any API to get dwell time and count by zone in CMX.

Thanks,

Rajesh

2 REPLIES 2
Frequent Contributor

Re: CMX- How to get Dwell time and count by zone

Hi,

Look under Presence in Cisco Connected Mobile Experiences REST API Guide, Release 10.3 - Location [Cisco Connected Mobile Experiences] - Cisco

POST /api/analytics/v1/dwellBreakdown

{

"period": "yesterday",

"timeRange": "00:00-23:59",

"granularity": "hourly",

"areas": "90",

"aggregate": "none",

"includeStationary": "false",

"connectionState": "all",

"durationCategories": "0-240",

"dwellLimits": "Light:1,Medium:5,Heavy:10"

}

with areas of interest listed such as zoneId 90 (zone Test1):


{

    "startTime": "00:00",

    "startDate": "2017-09-04",

    "results": [

        {

            "id": 90,

            "ancestry": [

                {

                    "level": "Floor",

                    "name": "DevNetZone"

                },

                {

                    "level": "Location",

                    "name": "DevNetBuilding"

                },

                {

                    "level": "Package",

                    "name": "DevNetCampus"

                }

            ],

            "startDate": "2017-09-04",

            "series": [

                "datetime",

                "dwell"

            ],

            "hasChildren": false,

            "area": "Test1",

            "data": [

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 18,

                        "Heavy": 7,

                        "Light": 15

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 18,

                        "Heavy": 6,

                        "Light": 17

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 14,

                        "Heavy": 7,

                        "Light": 17

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 22,

                        "Heavy": 9,

                        "Light": 8

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 19,

                        "Heavy": 9,

                        "Light": 14

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 20,

                        "Heavy": 6,

                        "Light": 10

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 24,

                        "Heavy": 3,

                        "Light": 8

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 20,

                        "Heavy": 9,

                        "Light": 9

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 18,

                        "Heavy": 6,

                        "Light": 9

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 20,

                        "Heavy": 8,

                        "Light": 11

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 20,

                        "Heavy": 8,

                        "Light": 10

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 18,

                        "Heavy": 8,

                        "Light": 13

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 22,

                        "Heavy": 5,

                        "Light": 10

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 21,

                        "Heavy": 4,

                        "Light": 12

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 25,

                        "Heavy": 5,

                        "Light": 7

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 20,

                        "Heavy": 7,

                        "Light": 16

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 21,

                        "Heavy": 5,

                        "Light": 12

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 24,

                        "Heavy": 9,

                        "Light": 7

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 28,

                        "Heavy": 7,

                        "Light": 6

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 18,

                        "Heavy": 6,

                        "Light": 13

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 20,

                        "Heavy": 9,

                        "Light": 10

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 18,

                        "Heavy": 6,

                        "Light": 14

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 19,

                        "Heavy": 6,

                        "Light": 16

                    },

                    "name": null

                },

                {

                    "dwell": "0-1440",

                    "values": {

                        "Medium": 27,

                        "Heavy": 6,

                        "Light": 9

                    },

                    "name": null

                }

            ]

        }

    ],

    "interval": "hourly",

    "executionTime": 2,

    "insights": {

        "summary": {

            "ancestry": [

                {

                    "level": "Floor",

                    "name": "DevNetZone"

                },

                {

                    "level": "Location",

                    "name": "DevNetBuilding"

                },

                {

                    "level": "Package",

                    "name": "DevNetCampus"

                }

            ],

            "id": 90,

            "index": 18,

            "maxDate": "2017-09-04",

            "name": "Test1",

            "maxTime": "18:00",

            "key": "Medium",

            "maxValue": 28

        },

        "Medium": {

            "ancestry": [

                {

                    "level": "Floor",

                    "name": "DevNetZone"

                },

                {

                    "level": "Location",

                    "name": "DevNetBuilding"

                },

                {

                    "level": "Package",

                    "name": "DevNetCampus"

                }

            ],

            "id": 90,

            "index": 18,

            "maxDate": "2017-09-04",

            "name": "Test1",

            "maxTime": "18:00",

            "maxValue": 28

        },

        "Heavy": {

            "ancestry": [

                {

                    "level": "Floor",

                    "name": "DevNetZone"

                },

                {

                    "level": "Location",

                    "name": "DevNetBuilding"

                },

                {

                    "level": "Package",

                    "name": "DevNetCampus"

                }

            ],

            "id": 90,

            "index": 3,

            "maxDate": "2017-09-04",

            "name": "Test1",

            "maxTime": "03:00",

            "maxValue": 9

        },

        "Light": {

            "ancestry": [

                {

                    "level": "Floor",

                    "name": "DevNetZone"

                },

                {

                    "level": "Location",

                    "name": "DevNetBuilding"

                },

                {

                    "level": "Package",

                    "name": "DevNetCampus"

                }

            ],

            "id": 90,

            "index": 1,

            "maxDate": "2017-09-04",

            "name": "Test1",

            "maxTime": "01:00",

            "maxValue": 17

        }

    },

    "endDate": "2017-09-04",

    "maxValues": {

        "Medium": 28,

        "Heavy": 9,

        "Light": 17

    },

    "endTime": "23:59",

    "dataFreshness": "2017-09-05T16:47:41.460+01:00",

    "minValues": {

        "Medium": 14,

        "Heavy": 3,

        "Light": 6

    }

}

Cisco Employee

Re: CMX- How to get Dwell time and count by zone

Thanks Matthew

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here