Class MonitorV1Resource


  • @Path("/lumis/monitor/v1")
    public class MonitorV1Resource
    extends java.lang.Object
    Monitor V1 REST resource.
    Since:
    11.0.0
    Version:
    $Revision: 24920 $ $Date: 2022-04-06 15:29:01 -0300 (Wed, 06 Apr 2022) $
    • Constructor Detail

      • MonitorV1Resource

        public MonitorV1Resource()
    • Method Detail

      • addEventData

        @Path("/events/{eventId}/data")
        @POST
        @Consumes({"application/json","text/plain"})
        @Produces("application/json")
        public Response addEventData​(@Context
                                     HttpServletRequest request,
                                     @NotNull @PathParam("eventId")
                                     @NotNull java.lang.String eventId,
                                     @NotNull
                                     @NotNull java.lang.String reqData,
                                     @QueryParam("fromEventClient")
                                     java.lang.Boolean fromEventClient)
                              throws java.lang.Exception
        Adds an occurrence to a monitor event.
        Parameters:
        eventId - the event identifier.
        reqData - JSON object with event fields values to be registered.
        Returns:
        an empty 204 response for success.
        Throws:
        java.lang.Exception
        Since:
        11.0.0
      • addUpdateMonitorUsers

        @Path("/users")
        @POST
        @Consumes({"application/json","text/plain"})
        @Produces("application/json")
        public Response addUpdateMonitorUsers​(@NotNull
                                              @NotNull java.lang.String reqData)
                                       throws java.lang.Exception
        Add or update a monitor user.
        Parameters:
        reqData - the json object.
        Returns:
        response with a json object.
        Throws:
        DaoException
        java.lang.Exception
        Since:
        11.0.0
      • updateMonitorUserPost

        @Path("/users/{trackId}")
        @POST
        @Consumes("text/plain")
        @Produces("application/json")
        public Response updateMonitorUserPost​(@NotNull @PathParam("trackId")
                                              @NotNull java.lang.String trackId,
                                              @NotNull
                                              @NotNull java.lang.String reqData)
                                       throws java.lang.Exception
        Update the requested monitor user. For internal use only and not part of public documented REST API.
        Parameters:
        trackId - the monitor user track identifier.
        reqData - JSON object with event fields values to be registered.
        Returns:
        response with a json object.
        Throws:
        java.lang.Exception
        Since:
        11.1.0