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 Dashboard
getDashboardByUid(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:
getDashboards
in interfaceGrafanaClient
- Throws:
IOException
-
getDashboardByUid
public Dashboard getDashboardByUid(String uid) throws IOException
- Specified by:
getDashboardByUid
in 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:
renderPngForPanel
in interfaceGrafanaClient
-
-