public class MetricsController extends Object
Constructor and Description |
---|
MetricsController() |
Modifier and Type | Method and Description |
---|---|
String |
getMetrics(String metricGroup)
Query metric names by metric group
|
String |
getSeries(javax.servlet.http.HttpServletRequest request,
String metric,
String source,
String start,
String end)
Query metrics stored in HBase table
|
String |
getSeriesBySessionAttribute(javax.servlet.http.HttpServletRequest request,
String metricGroup,
String metric,
String skey,
String start,
String end)
Query metric series by session key, this is useful to query same metric from
multiple data sources, such as multiple hosts
|
String |
getSourceNames(javax.servlet.http.HttpServletRequest request,
String metricGroup)
Query metrics source names by metric group
|
String |
getTables()
Query all metric group names in HBase
|
public String getSeries(@Context javax.servlet.http.HttpServletRequest request, String metric, String source, String start, String end)
request
- is HTTP request objectmetric
- is metric namesource
- is data sourcestart
- is start timeend
- is end timepublic String getSeriesBySessionAttribute(@Context javax.servlet.http.HttpServletRequest request, String metricGroup, String metric, String skey, String start, String end)
request
- is HTTP request objectmetricGroup
- is metric group namemetric
- is metric nameskey
- is session key which maps to multiple data sourcesstart
- is start timeend
- is end timepublic String getTables()
public String getMetrics(String metricGroup)
metricGroup
- is name of metric groupCopyright © 2016 Apache Software Foundation. All Rights Reserved.