start_query_workload_insights_top_contributors
async
¶
start_query_workload_insights_top_contributors(
scope_id: ScopeId,
start_time: datetime,
end_time: datetime,
metric_name: WorkloadInsightsMetric,
destination_category: DestinationCategory,
*,
config_overrides: Optional[AsyncNetworkFlowMonitorClientConfig] = None,
limit: Optional[Limit] = None,
) -> StartQueryWorkloadInsightsTopContributorsOutput
Create a query with the Network Flow Monitor query interface that you can run to return workload insights top contributors. Specify the scope that you want to create a query for.
The call returns a query ID that you can use with GetQueryResultsWorkloadInsightsTopContributors to run the query and return the top contributors for the workload insights for a scope.
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 APIs for the top contributors that you want to be returned.
Parameters:
-
scope_id(ScopeId) –The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a
CreateScopeAPI call. -
start_time(datetime) –The timestamp that is the date and time that is the beginning of the period that you want to retrieve results for with your query.
-
end_time(datetime) –The timestamp that is the date and time end of the period that you want to retrieve results for with your query.
-
metric_name(WorkloadInsightsMetric) –The metric that you want to query top contributors for. That is, you can specify this metric to return the top contributor network flows, for this type of metric, for a monitor and (optionally) within a specific category, such as network flows between Availability Zones.
-
destination_category(DestinationCategory) –The destination category for a top contributors row. Destination categories can be one of the following:
-
INTRA_AZ: Top contributor network flows within a single Availability Zone -
INTER_AZ: Top contributor network flows between Availability Zones -
INTER_REGION: Top contributor network flows between Regions (to the edge of another Region) -
INTER_VPC: Top contributor network flows between VPCs -
AWS_SERVICES: Top contributor network flows to or from Amazon Web Services services -
UNCLASSIFIED: Top contributor network flows that do not have a bucket classification
-
-
limit(Optional[Limit], default:None) –The maximum number of top contributors to return.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
InternalServerException–An internal error occurred.
-
ServiceQuotaExceededException–The request exceeded a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–Invalid request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkflowmonitor/_services/async_network_flow_monitor.py
2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 | |