Class BaseTelemetry

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseTelemetry()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      TelemetryContext getContext()
      Gets the context associated with the current telemetry item.
      protected abstract java.lang.Object getData()  
      java.util.Map<java.lang.String,​java.lang.String> getProperties()
      Gets a dictionary of application-defined property names and values providing additional information about this event.
      java.util.Date getTimestamp()
      Gets date and time when event was recorded.
      protected void initialize​(java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.String> properties)
      Initializes the instance with the context properties
      void setTimestamp​(java.util.Date timestamp)
      Sets date and time when event was recorded.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseTelemetry

        protected BaseTelemetry()
    • Method Detail

      • initialize

        protected void initialize​(java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.String> properties)
        Initializes the instance with the context properties
      • getTimestamp

        public java.util.Date getTimestamp()
        Gets date and time when event was recorded.
        Specified by:
        getTimestamp in interface Telemetry
      • setTimestamp

        public void setTimestamp​(java.util.Date timestamp)
        Sets date and time when event was recorded.
        Specified by:
        setTimestamp in interface Telemetry
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Gets a dictionary of application-defined property names and values providing additional information about this event.
        Specified by:
        getProperties in interface Telemetry
      • getData

        protected abstract java.lang.Object getData()