Class EventTelemetry

java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.EventTelemetry
All Implemented Interfaces:
Telemetry

public final class EventTelemetry extends BaseTelemetry
Telemetry type used to track custom events in Azure Application Insights.
  • Constructor Details

    • EventTelemetry

      public EventTelemetry(String name)
      Creates a new instance.
      Parameters:
      name - The event's name. Max length 150.
    • EventTelemetry

      public EventTelemetry()
      Creates a new instance.
  • Method Details

    • getName

      public String getName()
      Gets the name of the event.
    • setName

      public void setName(String name)
      Sets the name of the event. Max length 150.
    • getMetrics

      public ConcurrentMap<String,Double> getMetrics()
      Gets a dictionary of custom defined metrics.
    • getData

      protected EventData getData()
      Specified by:
      getData in class BaseTelemetry