Insights

class newrelic.Insights(account_id, query_key=None, insert_key=None)

Create a New Relic Insights service.

Variables:
  • account_id (str) – The account id
  • query_key (str) – The query key.
  • insert_key (str) – The insert key.

Service methods

Insights.insert(events)

Submit event or events to rubicon

Variables:events – Event data

Upstream documentation: http://docs.newrelic.com/docs/rubicon/inserting-events

Insights.query(nrql)

NRQL query

Variables:nqrl (str) – The nrql query

Upstream documentation: http://docs.newrelic.com/docs/rubicon/using-nrql