Class GrafanaClientImpl
- java.lang.Object
-
- org.opennms.netmgt.endpoints.grafana.client.GrafanaClientImpl
-
- All Implemented Interfaces:
GrafanaClient
public class GrafanaClientImpl extends Object implements GrafanaClient
-
-
Constructor Summary
Constructors Constructor Description GrafanaClientImpl(GrafanaServerConfiguration grafanaServerConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DashboardgetDashboardByUid(String uid)List<Dashboard>getDashboards()CompletableFuture<byte[]>renderPngForPanel(Dashboard dashboard, Panel panel, int width, int height, long from, long to, String timezone, Map<String,String> variables)
-
-
-
Constructor Detail
-
GrafanaClientImpl
public GrafanaClientImpl(GrafanaServerConfiguration grafanaServerConfiguration)
-
-
Method Detail
-
getDashboards
public List<Dashboard> getDashboards() throws IOException
- Specified by:
getDashboardsin interfaceGrafanaClient- Throws:
IOException
-
getDashboardByUid
public Dashboard getDashboardByUid(String uid) throws IOException
- Specified by:
getDashboardByUidin interfaceGrafanaClient- Throws:
IOException
-
renderPngForPanel
public CompletableFuture<byte[]> renderPngForPanel(Dashboard dashboard, Panel panel, int width, int height, long from, long to, String timezone, Map<String,String> variables)
- Specified by:
renderPngForPanelin interfaceGrafanaClient
-
-