public class CirclesController extends Object
Constructor and Description |
---|
CirclesController() |
Modifier and Type | Method and Description |
---|---|
String |
draw(String id,
boolean invert)
Render circle using jquery circliful.js
|
String |
preview(String buffer)
Preview circle graph with a set of chart configuration
|
String |
previewSeries(javax.servlet.http.HttpServletRequest request,
String buffer)
Circle graph data can be calculated based on either a ratio of two metrics or
the selected metric is a percentage metric for rendering circle graph.
|
public String draw(String id, boolean invert)
id
- Title of the tile.invert
- Toggle to display warning, error color by upper bound or lower bound.public String preview(String buffer)
buffer
- is chart objectExamples.NAMENODE_MEMORY
public String previewSeries(@Context javax.servlet.http.HttpServletRequest request, String buffer)
request
- is HTTP request objectbuffer
- is list of SeriesMetaData for fetching series dataExamples.HDFS_USAGE_SERIES_METADATA
Copyright © 2016 Apache Software Foundation. All Rights Reserved.