Class GrafanaServerConfiguration
- java.lang.Object
-
- org.opennms.netmgt.endpoints.grafana.client.GrafanaServerConfiguration
-
public class GrafanaServerConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CONNECT_TIMEOUT_IN_SECONDS
static int
DEFAULT_READ_TIMEOUT_IN_SECONDS
-
Constructor Summary
Constructors Constructor Description GrafanaServerConfiguration(java.lang.String url, java.lang.String apiKey, java.lang.Integer connectTimeoutSeconds, java.lang.Integer readTimeoutSeconds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrafanaServerConfiguration
fromEnv()
java.lang.String
getApiKey()
int
getConnectTimeoutSeconds()
int
getReadTimeoutSeconds()
java.lang.String
getUrl()
java.lang.String
toString()
-
-
-
Method Detail
-
fromEnv
public static GrafanaServerConfiguration fromEnv()
-
getUrl
public java.lang.String getUrl()
-
getApiKey
public java.lang.String getApiKey()
-
getConnectTimeoutSeconds
public int getConnectTimeoutSeconds()
-
getReadTimeoutSeconds
public int getReadTimeoutSeconds()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-