---
title: "GET /workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results"
method: GET
path: "/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results"
---

# GET /workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results

`GET /workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results`

Return the data for a query with the Network Flow Monitor query interface. Specify the query that you want to return results for by providing a query ID and a scope ID.

This query returns the data for top contributors for workload insights for a specific scope. Workload insights provide a high level view of network flow performance data collected by agents for a scope. To return just the top contributors, see `GetQueryResultsWorkloadInsightsTopContributors`.

Create a query ID for this call by calling the corresponding API call to start the query, `StartQueryWorkloadInsightsTopContributorsData`. Use the scope ID that was returned for your account by `CreateScope`.

Top contributors in Network Flow Monitor are network flows with the highest values for a specific metric type. Top contributors can be across all workload insights, for a given scope, or for a specific monitor. Use the applicable call for the top contributors that you want to be returned.

The top contributor network flows overall are for a specific metric type, for example, the number of retransmissions.

## Path parameters

- `scopeId` string, required
- `queryId` string, required

## Query parameters

- `nextToken` string
- `maxResults` integer

## Response `200`

Success

- GetQueryResultsWorkloadInsightsTopContributorsDataOutput
  - `unit` 'Seconds' | 'Microseconds' | 'Milliseconds' | 'Bytes' | 'Kilobytes' | 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Bits' | 'Kilobits' | 'Megabits' | 'Gigabits' | 'Terabits' | 'Percent' | 'Count' | 'Bytes/Second' | 'Kilobytes/Second' | 'Megabytes/Second' | 'Gigabytes/Second' | 'Terabytes/Second' | 'Bits/Second' | 'Kilobits/Second' | 'Megabits/Second' | 'Gigabits/Second' | 'Terabits/Second' | 'Count/Second' | 'None', required — The units for a metric returned by the query.
  - `datapoints` WorkloadInsightsTopContributorsDataPoint[], required — The datapoints returned by the query.
    - `timestamps` SyntheticTimestampDateTime[], required — An array of the timestamps for the data point.
    - `values` Double[], required — The values for the data point.
    - `label` string, required — The label identifying the data point.
  - `nextToken` string — The token for the next set of results. You receive this token from a previous call.

## Other responses

- `480` — ServiceQuotaExceededException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ThrottlingException
- `484` — AccessDeniedException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/networkflowmonitor.md) · [All operations](https://skmtc.net/aws/apis/networkflowmonitor/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/networkflowmonitor/versions/06cd469f8f64/schema)
