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