Menu
Amazon Mobile Analytics
User Guide

Querying Counts of Event Occurrences with Specified Attribute Name

This query returns the number of event occurrences containing a specific attribute name. The URL for this query is:

Copy
https://mobileanalytics.us-east-1.amazonaws.com/2014-06-05/apps/<YOUR APP ID>/events/<CUSTOM EVENT NAME>/attributes/<ATTRIBUTE NAME>/count

Example Response

Here is an example of the JSON returned in the response of a query for the number of event occurrences containing a specified attribute name. This example shows the response for a request for the daily number of "LevelComplete" events where the "EndState" attribute had a "Lose" value:

Copy
{ _links : { self : { href : /2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/count, name : count }, example : [ { href : /2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/count?platform=all&start=7-days-ago&end=today&group-by=none, name : last-7-days-all-platforms, title : Last 7 Days All Platforms }, { href : /2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/count?platform=all&start=30-days-ago&end=today&group-by=none, name : last-30-days-all-platforms, title : Last 30 Days All Platforms }, { href : /2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/count?platform=&start=60-days-ago&end=today&group-by=none, name : last-60-days-all-platforms, title : Last 60 Days All Platforms } ], up : [ { href : /2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState, name : EndState } ] }, columns : { day : { colIndex : 0, type : Qualitative, dataType : ISODateTime, unit : null, name : day, displayName : Date }, count : { colIndex : 1, type : Quantitative, dataType : Double, unit : null, name : count, displayName : Count } }, rows : [ [ 2015-11-29, 134 ], [ 2015-11-30, 175 ], [ 2015-12-01, 190 ], [ 2015-12-02, 143 ], [ 2015-12-03, 212 ], [ 2015-12-04, 254 ], [ 2015-12-05, 237 ], [ 2015-12-06, 275 ], [ 2015-12-07, 289 ], [ 2015-12-08, 282 ] ], scope : { appId : <YOUR APP ID>, eventName : LevelComplete, attributeName : EndState, aggregate : count } }

On this page: