Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 390 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 390 Bytes

timeRangeToNrql

Description

Installation

  1. Install @newrelic/nr1-community
  npm i @newrelic/nr1-community

Usage

import { timeRangeToNrql } from '@newrelic/nr1-community';

// Often provided by the PlatformState provider
const timeRange = {
  begin_time: 0,
  duration: 1800000, // 30 minutes
  end_time: 0
};

timeRangeToNrql({ timeRange });