Class SimpleEvent

  • All Implemented Interfaces:
    Event

    @Internal
    public class SimpleEvent
    extends Object
    implements Event
    Basic implementation of Event.
    • Method Detail

      • getObservedTsMillis

        public long getObservedTsMillis()
        Description copied from interface: Event
        The timestamp for when the event happened or was observed, in milliseconds.
        Specified by:
        getObservedTsMillis in interface Event
      • getName

        public String getName()
        Description copied from interface: Event
        The name of the event.
        Specified by:
        getName in interface Event
      • getClassScope

        public String getClassScope()
        Description copied from interface: Event
        The scope of the event, typically the fully qualified name of the emitting class.
        Specified by:
        getClassScope in interface Event
      • getBody

        public String getBody()
        Description copied from interface: Event
        Textual description of the event.
        Specified by:
        getBody in interface Event
      • getSeverity

        public String getSeverity()
        Description copied from interface: Event
        Severity of the event, e.g. DEBUG, INFO, ...
        Specified by:
        getSeverity in interface Event
      • getAttributes

        public Map<String,​Object> getAttributes()
        Description copied from interface: Event
        Additional attributes for the event. Currently, returned values can be of type String, Long or Double, however more types can be added in the future.
        Specified by:
        getAttributes in interface Event