Menu
Amazon Mobile Analytics
User Guide

Querying Counts of Event Occurrences with Specified Attribute Value

Note

After April 30, 2018, Amazon Mobile Analytics features will be provided only by Amazon Pinpoint. If you're new to Mobile Analytics, use Amazon Pinpoint instead. If you're currently using Mobile Analytics, see Migrating from Amazon Mobile Analytics to Amazon Pinpoint.

This query returns the number of events containing a specific attribute value. The URL for this query is:

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

Example Response

Here is an example of the JSON returned in the response of a query for the daily number of LevelComplete events where the EndState attribute has a Lose value.

{ "_links" : { "self" : { "href" : "/2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/values/Lose/count?start=2015-12-01&end=2015-12-08", "name" : "count" }, "example" : [{ "href" : "/2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/values/Lose/count?start=7-days-ago&end=today", "name" : "last-7-days-all-platforms", "title" : "Last 7 Days All Platforms" }, { "href" : "/2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/values/Lose/count?start=30-days-ago&end=today", "name" : "last-30-days-all-platforms", "title" : "Last 30 Days All Platforms" }, { "href" : "/2014-06-05/apps/<YOUR APP ID>/events/LevelComplete/attributes/EndState/values/Lose/count?start=60-days-ago&end=today", "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/values/Lose", "name" : "Lose" } ] }, "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-12-01", 98.0], ["2015-12-02", 33.0], ["2015-12-03", 37.0], ["2015-12-04", 89.0], ["2015-12-05", 65.0], ["2015-12-06", 45.0], ["2015-12-07", 77.0], ["2015-12-08", 64.0]], "scope" : { "attributeValue" : "Lose", "appId" : "<YOUR APP ID>", "eventName" : "LevelComplete", "attributeName" : "EndState", "aggregate" : "count" } }

On this page: