Class KscRestService


  • @Component("kscRestService")
    @Path("ksc")
    public class KscRestService
    extends OnmsRestService
    • Constructor Detail

      • KscRestService

        public KscRestService()
    • Method Detail

      • getReport

        @GET
        @Produces({"application/xml","application/json","application/atom+xml"})
        @Path("{reportId}")
        @Transactional
        public KscRestService.KscReport getReport​(@PathParam("reportId")
                                                  Integer reportId)
      • getCount

        @GET
        @Produces("text/plain")
        @Path("count")
        @Transactional
        public String getCount()
      • reloadConfiguration

        @PUT
        @Path("reloadConfig")
        @Transactional
        public javax.ws.rs.core.Response reloadConfiguration()
      • addGraph

        @PUT
        @Path("{kscReportId}")
        @Transactional
        public javax.ws.rs.core.Response addGraph​(@PathParam("kscReportId")
                                                  Integer kscReportId,
                                                  @QueryParam("title")
                                                  String title,
                                                  @QueryParam("reportName")
                                                  String reportName,
                                                  @QueryParam("resourceId")
                                                  String resourceId,
                                                  @QueryParam("timespan")
                                                  String timespan)
      • addKscReport

        @POST
        @Consumes("application/xml")
        public javax.ws.rs.core.Response addKscReport​(@Context
                                                      javax.ws.rs.core.UriInfo uriInfo,
                                                      KscRestService.KscReport kscReport)