alert-chart
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

alert-chart

Generate charts server-side for AWS Cloudwatch alarms and metrics.

Install

$ yarn add alert-chart

Example

import fs from 'fs';
import { getAWSCloudWatchAlarmGraphOptions, generateGraph } from './alert-chart';

(async () => {
  const options = await getAWSCloudWatchAlarmGraphOptions('us-east-1', 'MyTestAlarm');
  const { stream } = await generateGraph(options);
  if (stream) {
    const outStream = fs.createWriteStream('test-alarm-chart.png');
    stream.pipe(outStream, { end: true });
  }
})();

Dependencies (5)

Dev Dependencies (17)

Package Sidebar

Install

npm i alert-chart

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

29 kB

Total Files

10

Last publish

Collaborators

  • loune