Class GrafanaServices


  • @Singleton
    @Path("g-dashboards")
    public class GrafanaServices
    extends step.core.deployment.AbstractStepServices
    • Constructor Detail

      • GrafanaServices

        public GrafanaServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws Exception
        Overrides:
        init in class step.core.deployment.AbstractStepServices
        Throws:
        Exception
      • getGrafanaConfiguration

        @GET
        @Path("/config")
        @Consumes("application/json")
        @Produces("application/json")
        public GrafanaConfiguration getGrafanaConfiguration()
      • getDashboards

        @GET
        @Consumes("application/json")
        @Produces("application/json")
        public List<Dashboard> getDashboards()
      • getDashboard

        @GET
        @Path("/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public Dashboard getDashboard​(@PathParam("id")
                                      String id)
      • saveDashboard

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public void saveDashboard​(Dashboard dashboard)
      • newDashboard

        @POST
        @Path("/new")
        @Consumes("application/json")
        @Produces("application/json")
        public Dashboard newDashboard()
      • deleteDashboard

        @DELETE
        @Path("/{id}")
        @Consumes("application/json")
        public void deleteDashboard​(@PathParam("id")
                                    String id)
      • isGrafanaAvailable

        @GET
        @Path("/isGrafanaAvailable")
        @Consumes("application/json")
        @Produces("application/json")
        public String isGrafanaAvailable()