Forum Discussion

yaquaholic's avatar
yaquaholic
Icon for Contributor III rankContributor III
5 months ago
Solved

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 st...
  • miles_cross's avatar
    28 days ago

    Hi - You can try this.

    query MyQuery {
      devices {
        edges {
          node {
            id
            ip
            name
            metrics(collection: {id: "cpu", duration: "2d", rollupFreq: hourly}) {
              info {
                label
                units {
                  label
                }
              }
              values {
                edges {
                  cursor
                  node
                }
              }
            }
          }
        }
      }
    }