public bool IsEventMatch(TelemetryEvent telemetryEvent) { if (!string.IsNullOrEmpty(_eventFilter)) { return(telemetryEvent.ToString().IndexOf(_eventFilter, StringComparison.OrdinalIgnoreCase) >= 0); } return(true); }
/// <summary> /// Sends event telemetry for the specified event type. /// </summary> /// <param name="eventType">The type of the event.</param> public static void WriteEvent(TelemetryEvent eventType) { if (s_IsInitialized) { s_AppInsightsClient.TrackEvent(eventType.ToString()); s_AppInsightsClient.Flush(); } }
/// <summary> /// Sends event telemetry for the specified event type with the specified named data properties. /// </summary> /// <param name="eventType">The type of the event.</param> /// <param name="properties">Named string value data properties associted with this event.</param> public static void WriteEvent(TelemetryEvent eventType, Dictionary <string, string> properties = null) { if (s_IsInitialized) { s_AppInsightsClient.TrackEvent(eventType.ToString(), properties); s_AppInsightsClient.Flush(); } }
public void TrackEvent(TelemetryEvent ev, Dictionary <string, string> metadata) { Analytics.TrackEvent(ev.ToString(), metadata); }
public static void Track(TelemetryEvent tEvent, Dictionary <string, string> eventCustomData) { Track(tEvent.ToString(), eventCustomData); }
public static void Track(TelemetryEvent tEvent) { Track(tEvent.ToString(), new Dictionary <string, string>()); }
public static string Sequence(this TelemetryEvent evt) { return(evt.ToString()); }