public class ChartController extends Object
Constructor and Description |
---|
ChartController() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String buffer)
Create a new chart meta data
|
String |
describe(String id)
Describe chart meta data
|
String |
draw(String id)
Render chart using flot.js
|
String |
preview(String buffer)
Display a chart base on chart configuration from REST API input
|
String |
previewSeries(javax.servlet.http.HttpServletRequest request,
String buffer)
Display metrics series in JSON
|
javax.ws.rs.core.Response |
save(String id,
String buffer)
Save chart meta data
|
public String draw(String id)
id
- Reference ID of Chart stored in HBase chukwa_meta table.public String describe(String id)
id
- Chart IDExamples.CPU_UTILIZATION
public javax.ws.rs.core.Response create(String buffer)
buffer
- holds incoming JSON of Chart objectExamples.MEMORY_UTILIZATION
public javax.ws.rs.core.Response save(String id, String buffer)
id
- is unique identifier of Chart objectbuffer
- holds incoming JSON of Chart objectExamples.DISK_UTILIZATION
public String preview(String buffer)
buffer
- holds incoming JSON of Chart objectExamples.NETWORK_UTILIZATION
public String previewSeries(@Context javax.servlet.http.HttpServletRequest request, String buffer)
request
- HTTP request objectbuffer
- list of SeriesMetaDataExamples.CPU_SERIES_METADATA
Copyright © 2016 Apache Software Foundation. All Rights Reserved.