Forum Discussion

yaquaholic's avatar
yaquaholic
Icon for Contributor II rankContributor II
25 days ago

GraphQL Query

Good afternoon,

I've been tasked with extracting performance data, for quarterly customer reviews, and after many hours of PowerBI M Query and trying to wrangle the data into a useable form - I still can't.
When I remembered that with GQL we can extract only what we need. 
However I've spent another few unsuccessful hours trying to find the connection between the devices and their performance data. 

This is as far I have I got:

query DeviceByOrgID {
  devices(search: {organization: {has: {id: {eq: "39"}}}}) {
    edges {
      node {
        id
        name
        ip
        componentChildren{edges{node {id}}}
        deviceClass {
          description
          class}
       }
    } 
  }
}

Could anyone show me how to extract some performance data for a device, CPU normalized hourly for example, using GQL?
Even if it's just for a single device.

Thanks

No RepliesBe the first to reply