INNER CODE UNIT · JavaScript

widgets

ACloudGuru/serverless-plugin-aws-alerts · src/dashboards/index.js:15

  const widgets = dashboard.widgets.map((w) => {
    const widget = widgetFactory.getWidget(w.service, w.metric, w.display);
    const config = {
      service,
      stage,
      region,
      coordinates: w.coordinates,
      title: w.title,
      functions,
    };

    return widget.createWidget(config);
  });

  return { widgets };
};

module.exports = {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…