Global Statistics
The Global Statistics service allows you to retrieve and update your app's predefined statistics defined on the Global Statistics page of the brainCloud portal.
Global Statistics must be pre-defined from the Statistics Rules - Global Statistics page of the brainCloud portal. If instead you need to create them dynamically at runtime, you can enable the Generate App Statistic Rule Enabled setting on the Advanced Settings page of your app in the brainCloud portal.
Global (or App) Statistics are similar to User Stats, except that they are stored centrally across all of an app's users.
API Summary
Global Statistics
- ReadAllGlobalStats - Returns all of the global statistics.
- ReadGlobalStatsForCategory - Reads a subset of global statistics belonging to the specified category (all if omitted).
- ReadGlobalStatsSubset - Reads a subset of global statistics as defined by the input JSON.
- IncrementGlobalStats - Atomically increment (or decrement) global statistics.
- ProcessStatistics - Apply statistics grammar to a partial set of statistics.
📄️ IncrementGlobalStats
Atomically increment (or decrement) global statistics. Global statistics are defined through the portal.
📄️ ProcessStatistics
Apply statistics grammar to a partial set of statistics. Global statistics are defined through the portal.
📄️ ReadAllGlobalStats
Method returns all of the global statistics.
📄️ ReadGlobalStatsForCategory
Method retrieves the global statistics for the given category.
📄️ ReadGlobalStatsSubset
Reads a subset of global statistics.