Skip to content

sonarReportRow

Endpoints for DC Reports Returns rows for SonarReport table.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
sortBy DiscoveryReportSortBy Field to sort the report rows by.
sortOrder SortOrder Sorts the order of results.
filter [String!] Optional list of policy IDs to filter by.
endTime String Timestamp in RFC3339 (UTC) to filter rows by.

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"
      }
    }
  }
}