Class Event

    • Method Detail

      • fetcher

        public static EventFetcher fetcher​(String pathWorkspaceSid,
                                           String pathSid)
        Create a EventFetcher to execute fetch.
        Parameters:
        pathWorkspaceSid - The workspace_sid
        pathSid - The sid
        Returns:
        EventFetcher capable of executing the fetch
      • reader

        public static EventReader reader​(String pathWorkspaceSid)
        Create a EventReader to execute read.
        Parameters:
        pathWorkspaceSid - Filter events by those pertaining to a particular workspace
        Returns:
        EventReader capable of executing the read
      • fromJson

        public static Event fromJson​(String json,
                                     com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Event object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Event object represented by the provided JSON
      • fromJson

        public static Event fromJson​(InputStream json,
                                     com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Event object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Event object represented by the provided JSON
      • getAccountSid

        public final String getAccountSid()
        Returns The The account owning this event.
        Returns:
        The account owning this event
      • getActorSid

        public final String getActorSid()
        Returns The The actor_sid.
        Returns:
        The actor_sid
      • getActorType

        public final String getActorType()
        Returns The The actor_type.
        Returns:
        The actor_type
      • getActorUrl

        public final URI getActorUrl()
        Returns The The actor_url.
        Returns:
        The actor_url
      • getDescription

        public final String getDescription()
        Returns The A description of the event.
        Returns:
        A description of the event
      • getEventData

        public final Map<String,​Object> getEventData()
        Returns The Data about this specific event..
        Returns:
        Data about this specific event.
      • getEventDate

        public final org.joda.time.DateTime getEventDate()
        Returns The The time this event was sent.
        Returns:
        The time this event was sent
      • getEventDateMs

        public final Long getEventDateMs()
        Returns The The time this event was sent in ms.
        Returns:
        The time this event was sent in ms
      • getEventType

        public final String getEventType()
        Returns The An identifier for this event.
        Returns:
        An identifier for this event
      • getResourceSid

        public final String getResourceSid()
        Returns The The sid of the object this event is most relevant to.
        Returns:
        The sid of the object this event is most relevant to
      • getResourceType

        public final String getResourceType()
        Returns The The type of object this event is most relevant to.
        Returns:
        The type of object this event is most relevant to
      • getResourceUrl

        public final URI getResourceUrl()
        Returns The The resource_url.
        Returns:
        The resource_url
      • getSid

        public final String getSid()
        Returns The The sid.
        Returns:
        The sid
      • getSource

        public final String getSource()
        Returns The The source.
        Returns:
        The source
      • getSourceIpAddress

        public final String getSourceIpAddress()
        Returns The The source_ip_address.
        Returns:
        The source_ip_address
      • getUrl

        public final URI getUrl()
        Returns The The url.
        Returns:
        The url
      • getWorkspaceSid

        public final String getWorkspaceSid()
        Returns The The workspace_sid.
        Returns:
        The workspace_sid
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object