Skip to content
Snippets Groups Projects

Issue #3212322: Convert Instance Monitor from Form to Block (AWS)

Closed Issue #3212322: Convert Instance Monitor from Form to Block (AWS)
All threads resolved!
Closed Lidia Matei requested to merge issue/cloud-3212322:3212322 into 3.x
All threads resolved!
Compare and
4 files
+ 267
3
Compare changes
  • Side-by-side
  • Inline
Files
4
(function ($) {
'use strict';
// Metrics Url.
// Needed as this js shares functionality with the InstanceMonitorBlock and InstanceMonitorForm.
const metrics_url = drupalSettings.aws_cloud_monitor_metrics_url ? drupalSettings.aws_cloud_monitor_metrics_url : 'metrics';
let generateChart = function (bindTo) {
return c3.generate({
bindto: bindTo,
@@ -22,7 +26,7 @@
};
let updateCharts = function () {
$.get('metrics', function (json) {
$.get(metrics_url, function (json) {
cpu_chart.load({
columns: [
['x'].concat(json.cpu.timestamps),
Loading