start_query_performance_monitor
¶
start_query_performance_monitor(
monitor_name: ResourceName,
start_time: datetime,
end_time: datetime,
query_type: PerformanceMonitorQueryType,
*,
config_overrides: Optional[NetworkFlowMonitorClientConfig] = None,
filter_parameters: Optional[FilterParameters] = None,
limit: Optional[QueryLimit] = None,
) -> StartQueryPerformanceMonitorOutput
Create a query that you can use with the Network Flow Monitor query interface to return the top paths for a performance monitor. Specify the performance monitor that you want to create the query for.
The call returns a query ID that you can use with GetQueryResultsPerformanceMonitor to return the results of the query.
Top paths in Network Flow Monitor are the network paths used by the traffic for the resources that a performance monitor tracks, ranked by impact score and then by traffic volume. Each path includes the traffic and round-trip time for the path, together with a breakdown of the subnet pairs that the path includes.
Parameters:
-
monitor_name(ResourceName) –The name of the performance monitor.
-
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.
-
query_type(PerformanceMonitorQueryType) –The type of query that you want to create. Specify
TOP_PATHSto return the top paths for the performance monitor. -
filter_parameters(Optional[FilterParameters], default:None) –The filters for the query, to return a subset of the top paths. For a
TOP_PATHSquery, you can filter on the following fields:-
local_az_id: The Availability Zone ID of the local end of a path -
remote_az_id: The Availability Zone ID of the remote end of a path -
impact_level: The impact level of a path
When you filter on
impact_level, Network Flow Monitor compares the filter with the most severe impact level for the path over the time period of the query, and the traffic and round-trip time that Network Flow Monitor returns for each path still cover the full time period. Paths that have no impact data don't match animpact_levelfilter, including aNOT_EQUALSfilter. Network Flow Monitor doesn't filter the subnet pairs within a path by impact level. -
-
limit(Optional[QueryLimit], default:None) –The maximum number of top paths that you want the query to return.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
InternalServerException–An internal error occurred.
-
ResourceNotFoundException–The request specifies a resource that doesn't exist.
-
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/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 1642 1643 | |