start_query_monitor_top_contributors
async
¶
start_query_monitor_top_contributors(
monitor_name: ResourceName,
start_time: datetime,
end_time: datetime,
metric_name: MonitorMetric,
destination_category: DestinationCategory,
*,
config_overrides: Optional[AsyncNetworkFlowMonitorClientConfig] = None,
limit: Optional[Limit] = None,
) -> StartQueryMonitorTopContributorsOutput
Create a query that you can use with the Network Flow Monitor query interface to return the top contributors for a monitor. Specify the monitor that you want to create the query for.
The call returns a query ID that you can use with GetQueryResultsMonitorTopContributors to run the query and return the top contributors for a specific monitor.
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:
-
monitor_name(ResourceName) –The name of the 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.
-
metric_name(MonitorMetric) –The metric that you want to query top contributors for. That is, you can specify a metric with this call and return the top contributor network flows, for that type of metric, for a monitor and (optionally) within a specific category, such as network flows between Availability Zones.
-
destination_category(DestinationCategory) –The category that you want to query top contributors for, for a specific monitor. 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 -
AMAZON_S3: Top contributor network flows to or from Amazon S3 -
AMAZON_DYNAMODB: Top contributor network flows to or from Amazon Dynamo DB -
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
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 | |