Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 4
0
 public void TrackEvent(TelemetryEvent ev, Dictionary <string, string> metadata)
 {
     Analytics.TrackEvent(ev.ToString(), metadata);
 }
Ejemplo n.º 5
0
 public static void Track(TelemetryEvent tEvent, Dictionary <string, string> eventCustomData)
 {
     Track(tEvent.ToString(), eventCustomData);
 }
Ejemplo n.º 6
0
 public static void Track(TelemetryEvent tEvent)
 {
     Track(tEvent.ToString(), new Dictionary <string, string>());
 }
Ejemplo n.º 7
0
 public static string Sequence(this TelemetryEvent evt)
 {
     return(evt.ToString());
 }