public interface InfluxDbMetricsRetriever
| Modifier and Type | Method and Description |
|---|---|
Map<org.onosproject.cluster.NodeId,Map<String,InfluxMetric>> |
allMetrics()
Returns last metric values from all nodes.
|
Map<org.onosproject.cluster.NodeId,Map<String,List<InfluxMetric>>> |
allMetrics(int period,
TimeUnit unit)
Returns metric values of all nodes within a given period of time.
|
void |
config(String address,
int port,
String database,
String username,
String password)
Configures default parameters for influx database metrics retriever.
|
InfluxMetric |
metric(org.onosproject.cluster.NodeId nodeId,
String metricName)
Returns a last metric value from a given node.
|
List<InfluxMetric> |
metric(org.onosproject.cluster.NodeId nodeId,
String metricName,
int period,
TimeUnit unit)
Returns metric value of a given node within a given period of time.
|
Map<org.onosproject.cluster.NodeId,InfluxMetric> |
metricsByName(String metricName)
Returns a collection of last metric values from all nodes.
|
Map<org.onosproject.cluster.NodeId,List<InfluxMetric>> |
metricsByName(String metricName,
int period,
TimeUnit unit)
Returns a collection of last metric values of all nodes within a given period of time.
|
Map<String,InfluxMetric> |
metricsByNodeId(org.onosproject.cluster.NodeId nodeId)
Returns last metric values from a node.
|
Map<String,List<InfluxMetric>> |
metricsByNodeId(org.onosproject.cluster.NodeId nodeId,
int period,
TimeUnit unit)
Returns metric values of a node within a given period of time.
|
Map<org.onosproject.cluster.NodeId,Map<String,InfluxMetric>> allMetrics()
Map<String,InfluxMetric> metricsByNodeId(org.onosproject.cluster.NodeId nodeId)
nodeId - node identificationMap<org.onosproject.cluster.NodeId,InfluxMetric> metricsByName(String metricName)
metricName - metric nameInfluxMetric metric(org.onosproject.cluster.NodeId nodeId, String metricName)
nodeId - node identificationmetricName - metric nameMap<org.onosproject.cluster.NodeId,Map<String,List<InfluxMetric>>> allMetrics(int period, TimeUnit unit)
period - projected periodunit - time unitMap<String,List<InfluxMetric>> metricsByNodeId(org.onosproject.cluster.NodeId nodeId, int period, TimeUnit unit)
nodeId - node identificationperiod - projected periodunit - time unitMap<org.onosproject.cluster.NodeId,List<InfluxMetric>> metricsByName(String metricName, int period, TimeUnit unit)
metricName - metric nameperiod - projected periodunit - time unitList<InfluxMetric> metric(org.onosproject.cluster.NodeId nodeId, String metricName, int period, TimeUnit unit)
nodeId - node identificationmetricName - metric nameperiod - projected periodunit - time unitvoid config(String address, int port, String database, String username, String password)
address - IP address of influxDB serverport - Port number of influxDB serverdatabase - Database name of influxDB serverusername - Username of influxDB serverpassword - Password of influxDB serverCopyright © 2016. All rights reserved.