Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Add TotalResult to QueryResponse #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

alv91
Copy link

@alv91 alv91 commented Apr 16, 2020

When I search in NewRelic Insights with query like this:
SELECT count(*) FROM TransactionError WHERE appName = 'myApp' FACET aggregateFacet LIMIT 1
I get this response:

{
   "facets":[
      {
         "name":"Transaction/Example",
         "results":[
            {
               "count":36
            }
         ]
      }
   ],
   "totalResult":{
      "results":[
         {
            "count":111
         }
      ]
   },
   "unknownGroup":{
      "results":[
         {
            "count":75
         }
      ]
   },
   "metadata":{
      "eventTypes":[
         "TransactionError"
      ],
      "eventType":"TransactionError",
      "openEnded":true,
      "beginTime":"2020-04-16T07:20:08Z",
      "endTime":"2020-04-16T08:20:08Z",
      "beginTimeMillis":1587021608289,
      "endTimeMillis":1587025208289,
      "rawSince":"60 MINUTES AGO",
      "rawUntil":"NOW",
      "rawCompareWith":"",
      "guid":"",
      "routerGuid":"",
      "messages":[

      ],
      "facet":"aggregateFacet",
      "offset":0,
      "limit":1,
      "contents":{
         "messages":[

         ],
         "contents":[
            {
               "function":"count",
               "simple":true
            }
         ]
      }
   }
}

I would like to use totalResult data in my project.

@CLAassistant
Copy link

CLAassistant commented Apr 16, 2020

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants