Project: titanium
Issue TIMOB-20324: appcd: Add analytics facilities
The appc daemon needs to provide a mechanism for services and the daemon itself to generate analytics events. These events are then sent to the Appcelerator cloud so that the products can be improved. Analytics payloads must be anonymous. Analytics payload will include: * Machine ID * Session ID * Timestamp * Operating system * CPU architecture (32/64-bit) * Number of CPUs * Total system memory * Installed appcd plugin info * appcd configuration * Event name * Event type (action, error, etc) * Event metadata All events must be persisted to separate files disk prior to sending to the cloud. Only one process can send an event at any given time. The endpoint will be https://api.appcelerator.net/p/v2/partner-track. As a reference, here's Appc CLI's analytics library: https://github.com/appcelerator/appc-platform-sdk/blob/master/lib/analytics.js. Appc Daemon's guid: * Production: ea327577-858f-4d31-905e-fa670f50ef48 * Preprod: 14c84daf-b01e-486c-96d3-b8f66da44481
Story points: 13