Class GrafanaServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.plugins.analytics.grafana.services.GrafanaServices
-
@Singleton @Path("g-dashboards") public class GrafanaServices extends step.core.deployment.AbstractServices
-
-
Constructor Summary
Constructors Constructor Description GrafanaServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(java.lang.String id)
GrafanaConfiguration
getConfiguration()
Dashboard
getDashboard(java.lang.String id)
java.util.List<Dashboard>
getDashboards()
void
init()
java.lang.String
isGrafanaAvailable()
Dashboard
newDashboard()
void
saveDashboard(Dashboard dashboard)
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.core.deployment.AbstractServices
- Throws:
java.lang.Exception
-
getConfiguration
@GET @Path("/config") @Consumes("application/json") @Produces("application/json") public GrafanaConfiguration getConfiguration()
-
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()
-
delete
@DELETE @Path("/{id}") @Consumes("application/json") public void delete(@PathParam("id") java.lang.String id)
-
isGrafanaAvailable
@GET @Path("/isGrafanaAvailable") @Consumes("application/json") @Produces("application/json") public java.lang.String isGrafanaAvailable()
-
-