Class OnmsMonitoredServiceResource


  • @Component("onmsMonitoredServiceResource")
    @Transactional
    public class OnmsMonitoredServiceResource
    extends OnmsRestService

    OnmsMonitoredServiceResource class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    ranger
    • Constructor Detail

      • OnmsMonitoredServiceResource

        public OnmsMonitoredServiceResource()
    • Method Detail

      • getService

        @GET
        @Produces({"application/xml","application/json"})
        @Path("{service}")
        public OnmsMonitoredService getService​(@PathParam("nodeCriteria")
                                               String nodeCriteria,
                                               @PathParam("ipAddress")
                                               String ipAddress,
                                               @PathParam("service")
                                               String service)

        getService

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        service - a String object.
        Returns:
        a OnmsMonitoredService object.
      • addService

        @POST
        @Consumes({"application/xml","application/json"})
        public javax.ws.rs.core.Response addService​(@Context
                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                    @PathParam("nodeCriteria")
                                                    String nodeCriteria,
                                                    @PathParam("ipAddress")
                                                    String ipAddress,
                                                    OnmsMonitoredService service)

        addService

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        service - a OnmsMonitoredService object.
        Returns:
        a Response object.
      • updateService

        @PUT
        @Consumes("application/x-www-form-urlencoded")
        @Path("{service}")
        public javax.ws.rs.core.Response updateService​(@PathParam("nodeCriteria")
                                                       String nodeCriteria,
                                                       @PathParam("ipAddress")
                                                       String ipAddress,
                                                       @PathParam("service")
                                                       String serviceName,
                                                       MultivaluedMapImpl params)

        updateService

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        serviceName - a String object.
        params - a MultivaluedMapImpl object.
        Returns:
        a Response object.
      • deleteService

        @DELETE
        @Path("{service}")
        public javax.ws.rs.core.Response deleteService​(@PathParam("nodeCriteria")
                                                       String nodeCriteria,
                                                       @PathParam("ipAddress")
                                                       String ipAddress,
                                                       @PathParam("service")
                                                       String serviceName)

        deleteService

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        serviceName - a String object.
        Returns:
        a Response object.