• /
  • Log in
  • Free account

NrqlQuery

Fetch data to CDS via a NRQL query.

The component can return data in a format compatible with the Chart component.

Usage

import { NrqlQuery } from 'nr1'

Examples

Props

accountIdrequirednumber

Identifier of the account to execute the NRQL query against.

childrenfunction

Render prop function as a child.

function (
queryResult: {Object //

Results of the query.

) => undefined
formatTypeenum
DEFAULT
NrqlQuery.FORMAT_TYPE.CHART

Format of the response.

<One of
NrqlQuery.FORMAT_TYPE.CHART,
NrqlQuery.FORMAT_TYPE.RAW,
>
pollIntervalnumber|enum

Interval in millisecond to poll for new data or automatically set based on response data's metadata.

<One of
>
queryrequiredstring
skipboolean
DEFAULT
false

When set to true, the query will be skipped entirely from rendering.

timeRangeshape

Time range to scope NRQL query time range. When only duration is provided it uses duration to query from NOW back until DURATION (aka Open ended query). When begin_time and end_time are provided it uses them to query SINCE begin_time UNTIL end_time (aka Closed query).

shape

begin_timenumber
durationnumber
end_timenumber

Methods

NrqlQuery.render

function () => undefined

NrqlQuery.query

function () => undefined
Create issueEdit page
Copyright © 2021 New Relic Inc.