Have ideas to improve npm?Join in the discussion! »

    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 });
      }
    })();

    Install

    npm i alert-chart

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    29 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar