Skip to content

sonarReportRow

Returns rows for SonarReport table.

Arguments

Argument Type Description
sortBy DiscoveryReportSortBy
sortOrder SortOrder Sorts the order of results.
filter [String!]
endTime String
first Int Returns the first n elements from the list.
after String Returns the elements in the list that occur after the specified cursor.
last Int Returns the last n elements from the list.
before String Returns the elements in the list that occur before the specified cursor.

Returns

SonarReportRowConnection!

Sample

query {
  sonarReportRow(first: 10) {
    nodes {
      numHighRiskLocations
      numObjects
      numViolatedFiles
      policyId
      policyName
      policyStatus
      violations
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "sonarReportRow": {
      "nodes": [
        [
          {
            "numHighRiskLocations": 0,
            "numObjects": 0,
            "numViolatedFiles": 0,
            "policyId": "example-string",
            "policyName": "example-string",
            "policyStatus": "DISCOVERY"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}