Merge pull request #118 from vmarmol/ui-fix
Request 60s of container history and no samples in the UI.
This commit is contained in:
commit
93b5e2be5b
@ -90,9 +90,14 @@ function getMachineInfo(callback) {
|
|||||||
|
|
||||||
// Get the container stats for the specified container.
|
// Get the container stats for the specified container.
|
||||||
function getStats(containerName, callback) {
|
function getStats(containerName, callback) {
|
||||||
$.getJSON("/api/v1.0/containers" + containerName, function(data) {
|
// Request 60s of container history and no samples.
|
||||||
callback(data);
|
var request = JSON.stringify({
|
||||||
|
"num_stats": 60,
|
||||||
|
"num_samples": 0
|
||||||
});
|
});
|
||||||
|
$.post("/api/v1.0/containers" + containerName, request, function(data) {
|
||||||
|
callback(data);
|
||||||
|
}, "json");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the graph for CPU usage.
|
// Draw the graph for CPU usage.
|
||||||
|
Loading…
Reference in New Issue
Block a user