public class ChukwaHBaseStore extends Object
Constructor and Description |
---|
ChukwaHBaseStore() |
Modifier and Type | Method and Description |
---|---|
static void |
closeHBase() |
static String |
createChart(Chart chart)
Create a chart in HBase.
|
static String |
createChart(String id,
String title,
String[] metrics,
String source,
String yunitType)
Create a chart in HBase by specifying parameters.
|
static String |
createCircle(String id,
String title,
String[] metrics,
String source,
String suffixLabel,
String direction)
Create a chart in HBase by specifying parameters.
|
static String |
createTile(String id,
String title,
String bannerText,
String suffixLabel,
String[] metrics,
String source,
String icon)
Create a tile in HBase by specifying parameters.
|
static boolean |
createWidget(Widget widget)
Create a widget in HBase.
|
static boolean |
deleteWidget(String title)
Delete a widget in HBase.
|
static Chart |
getChart(String id)
Get a chart from HBase by ID.
|
static ArrayList<SeriesMetaData> |
getChartSeries(ArrayList<SeriesMetaData> series,
long startTime,
long endTime)
Return data for multiple series of metrics stored in HBase.
|
static Set<String> |
getClusterNames(long startTime,
long endTime)
Scan chukwa table and find cluster tag from annotation column family from a
range of entries.
|
static Dashboard |
getDashboard(String id,
String user) |
static List<String> |
getData(ArrayList<SeriesMetaData> series,
long startTime,
long endTime) |
static void |
getHBaseConnection() |
static Heatmap |
getHeatmap(String metricGroup,
String metric,
long startTime,
long endTime,
double max,
double scale,
int width,
int height) |
static Set<String> |
getMetricGroups() |
static Set<String> |
getMetricNames(String metricGroup) |
static Series |
getSeries(String metric,
String source,
long startTime,
long endTime)
Scan chukwa table for a full metric name based on time ranges.
|
static Series |
getSeries(String metricGroup,
String metric,
String source,
long startTime,
long endTime)
Scan chukwa table for a particular metric group and metric name based on
time ranges.
|
static Set<String> |
getSourceNames(String dataType) |
static boolean |
isDefaultExists() |
static List<Widget> |
listWidget(int limit,
int offset)
List widgets stored in HBase.
|
static void |
populateDefaults() |
static void |
putChart(String id,
Chart chart)
Update a chart in HBase by ID.
|
static List<Widget> |
searchWidget(String query)
Find widget by title prefix in HBase.
|
static boolean |
updateDashboard(String id,
String user,
Dashboard dash) |
static boolean |
updateWidget(String title,
Widget widget)
Update a widget in HBase.
|
static Widget |
viewWidget(String title)
View a widget information in HBase.
|
public static void getHBaseConnection() throws IOException
IOException
public static void closeHBase()
public static Series getSeries(String metricGroup, String metric, String source, long startTime, long endTime)
metricGroup
- metric group namemetric
- metric namesource
- source of the metricstartTime
- start timeendTime
- end timepublic static Series getSeries(String metric, String source, long startTime, long endTime)
metric
- metric group name and metric name combinedsource
- source of the metricstartTime
- start timeendTime
- end timepublic static Heatmap getHeatmap(String metricGroup, String metric, long startTime, long endTime, double max, double scale, int width, int height)
public static Set<String> getClusterNames(long startTime, long endTime)
startTime
- start time in epochendTime
- start time in epochpublic static Chart getChart(String id)
id
- Chart IDpublic static void putChart(String id, Chart chart)
id
- Chart IDchart
- Chart Objectpublic static String createChart(String id, String title, String[] metrics, String source, String yunitType) throws URISyntaxException
id
- is unique chart identifiertitle
- is searchable name of the chartmetrics
- is list of metric names to render chartsource
- is data source nameyunitType
- is y axis unit typeURISyntaxException
- if metrics name can not compose valid URL syntaxpublic static String createCircle(String id, String title, String[] metrics, String source, String suffixLabel, String direction) throws URISyntaxException
id
- is unique chart identifiertitle
- is searchable name of the chartmetrics
- is list of metric names to render ring chartsource
- is data source namesuffixLabel
- is text label to append to metric valuesdirection
- sets the threshold to have either upper limit or lower limitURISyntaxException
- if metrics name can not compose valid URL syntaxpublic static String createTile(String id, String title, String bannerText, String suffixLabel, String[] metrics, String source, String icon) throws URISyntaxException
id
- is unique tile identifiertitle
- is searchable name of the tile widgetbannerText
- is description of the tile widgetsuffixLabel
- is text label to append to metric valuesmetrics
- is list of metric names to render tile widgetsource
- is data source nameicon
- is emoji symbol to render beside tile widgetURISyntaxException
- if metrics name can not compose valid URL syntaxpublic static String createChart(Chart chart)
chart
- is a chukwa Chart objectpublic static ArrayList<SeriesMetaData> getChartSeries(ArrayList<SeriesMetaData> series, long startTime, long endTime)
series
- is SeriesMetaData objectstartTime
- sets the start time of metricsendTime
- sets the end time of metricspublic static List<Widget> listWidget(int limit, int offset)
limit
- sets the number of widgets to returnoffset
- sets the starting point to return widgetspublic static List<String> getData(ArrayList<SeriesMetaData> series, long startTime, long endTime)
public static List<Widget> searchWidget(String query)
query
- is prefix query of widget title.public static Widget viewWidget(String title)
title
- is title of the widget.public static boolean createWidget(Widget widget)
widget
- is chukwa Widget objectpublic static boolean updateWidget(String title, Widget widget)
title
- is searchable title in a widgetwidget
- is Chukwa Widget objectpublic static boolean deleteWidget(String title)
title
- is searchable title in a widgetpublic static boolean isDefaultExists()
public static void populateDefaults()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.