Class Events.Event

  • Enclosing interface:
    Events

    public static class Events.Event
    extends Object
    An event consists of a timestamp in milli-seconds, a map of string to string as metadata, and a map of string to double value as dimensions.
    • Method Detail

      • getTimestampMillis

        public long getTimestampMillis()
        Get the UTC timestamp for this event.
        Returns:
        timestamp of the event in milli-seconds
      • getMetadata

        public Map<String,​String> getMetadata()
        Get the metadata for this event.
        Returns:
        map of string to string, representing all metadata for this event
      • getDimensions

        public Map<String,​Double> getDimensions()
        Get the dimensions for this event (note that events are multi-dimensional).
        Returns:
        map of string to double, representing all dimensions for this event
      • getPayload

        public byte[] getPayload()
        Get the payload attached to this event.
        Returns:
        byte array representing payload for this event