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

      • getServices

        public OnmsMonitoredServiceList getServices​(java.lang.String nodeCriteria,
                                                    java.lang.String ipAddress)

        getServices

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        Returns:
        a OnmsMonitoredServiceList object.
      • getService

        public OnmsMonitoredService getService​(java.lang.String nodeCriteria,
                                               java.lang.String ipAddress,
                                               java.lang.String service)

        getService

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

        public javax.ws.rs.core.Response addService​(@Context
                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                    java.lang.String nodeCriteria,
                                                    java.lang.String ipAddress,
                                                    OnmsMonitoredService service)

        addService

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

        public javax.ws.rs.core.Response updateService​(java.lang.String nodeCriteria,
                                                       java.lang.String ipAddress,
                                                       java.lang.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

        public javax.ws.rs.core.Response deleteService​(java.lang.String nodeCriteria,
                                                       java.lang.String ipAddress,
                                                       java.lang.String serviceName)

        deleteService

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