public static void TrackEvent(TelemetryCategory category, string action, object label = null, int value = 0) { if (_client != null) { _client.SendEvent(category.ToString(), action, (label != null ? label.ToString() : null), value.ToString()); } }
public static void SendTelemetry(this IMessageBus messageBus, string groupId, TelemetryCategory cat, string info, TimeSpan elapsed, bool?success = null, string error = null, int?total = null) { messageBus.SendMessage(new TelemetryEvent(groupId, cat, info, elapsed, success, error) { Total = total ?? 0, }); }
public TelemetryEvent(string server, string poolId, TelemetryCategory category, TimeSpan elapsed, bool?success = null, string error = null) { Server = server; PoolId = poolId; Category = category; Elapsed = elapsed; Success = success; Error = error; }
protected void PublishTelemetry(TelemetryCategory cat, TimeSpan elapsed, string info, bool?success = null, string error = null) { messageBus.SendMessage(new TelemetryEvent(server, poolId, cat, info, elapsed, success)); }
protected void PublishTelemetry(TelemetryCategory cat, TimeSpan elapsed, bool?success = null) { messageBus.SendMessage(new TelemetryEvent(clusterConfig.ClusterName ?? poolConfig.PoolName, poolConfig.Id, cat, elapsed, success)); }
public static void TrackEvent(TelemetryCategory category, string action, object label = null, int value = 0) { _client.SendEvent(category.ToString(), action, (label != null ? label.ToString() : null), value.ToString()); }
public TelemetryEvent(string server, string poolId, TelemetryCategory category, string info, TimeSpan elapsed, bool?success = null, string error = null) : this(server, poolId, category, elapsed, success, error) { Info = info; }
internal static void TrackEvent(TelemetryCategory general, object settingsLaunched) { throw new NotImplementedException(); }