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(String id)
Dashboard
getDashboard(String id)
List<Dashboard>
getDashboards()
GrafanaConfiguration
getGrafanaConfiguration()
void
init()
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 Exception
- Overrides:
init
in classstep.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()
-
-