INNER CODE UNIT · JavaScript

widgets

serverless/serverless · packages/serverless/lib/plugins/aws/alerts/dashboards/index.js:22

  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 }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…