1.0.0 • Published 5 years ago

insights-query v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

insights-query

This is useful when you want to to make a simple AWS CloudWatch Logs Insight Query

How does it Work

It unifies the three steps that are needed to make a CloudWatch Logs Insight Query with aws-sdk

  • startQuery
  • describeQueries
  • getQueryResults
    It waits until the describeQueries for the specific query you started with startQuery returns a complete status

Install

$ npm install --save insights-query

Usage

const InsightsQuery = require("insights-query");
const insightQuery = new InsightsQuery();

const data = await insightQuery.runWithPromise(params);