Class GrafanaServices


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

      • Fields inherited from class step.core.deployment.AbstractStepServices

        configuration, SESSION
    • Constructor Summary

      Constructors 
      Constructor Description
      GrafanaServices()  
    • Constructor Detail

      • GrafanaServices

        public GrafanaServices()
    • Method Detail

      • init

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

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

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

        @GET
        @Path("/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public Dashboard getDashboard​(@PathParam("id")
                                      java.lang.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")
                                    java.lang.String id)
      • isGrafanaAvailable

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