AnalyticsClient
A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Online client that queues analytics events to Alta's web API, which no longer answers. Reached as ApiAccess.ApiClient.Analytics; failures are logged with stack traces unless a mod stubs it.
- Listed in Alta.Api.Client
- Inherits or implements
HighLevelApiClientBase,IAnalyticsClient
Constructors
1 private and internal constructor
| Member | What it is |
|---|---|
internal AnalyticsClient(IHighLevelApiClientManager clientManager) | Creates an AnalyticsClient from clientManager. |
Methods
| Member | What it is |
|---|---|
Task PostEvent(string type, string source = null, string version = null, int? userId = null) | Queues a simple event with a type, source, version, user ID and the current UTC time. |
Task PostGenericEventAsync(string eventType, int? userId, string oculusId, Dictionary<string, object> data) | Queues an event with a type, user ID, Oculus ID and metadata, given as a dictionary, tuples or a ready AnalyticsEventData. |
Task PostGenericEventAsync(string eventType, int? userId, string oculusId, params ValueTuple<string, object>[] data) | Queues an event with a type, user ID, Oculus ID and metadata, given as a dictionary, tuples or a ready AnalyticsEventData. |
Task PostGenericEventAsync(AnalyticsEventData eventData) | Queues an event with a type, user ID, Oculus ID and metadata, given as a dictionary, tuples or a ready AnalyticsEventData. |