Class GrafanaServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.plugins.analytics.grafana.services.GrafanaServices
-
@Singleton @Path("g-dashboards") public class GrafanaServices extends step.core.deployment.AbstractStepServices
-
-
Constructor Summary
Constructors Constructor Description GrafanaServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteDashboard(java.lang.String id)
Dashboard
getDashboard(java.lang.String id)
java.util.List<Dashboard>
getDashboards()
GrafanaConfiguration
getGrafanaConfiguration()
void
init()
java.lang.String
isGrafanaAvailable()
Dashboard
newDashboard()
void
saveDashboard(Dashboard dashboard)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.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()
-
-