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
1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 | |