NetworkFlowMonitor / Client / start_query_workload_insights_top_contributors

start_query_workload_insights_top_contributors

NetworkFlowMonitor.Client.start_query_workload_insights_top_contributors(**kwargs)

Start a query to return the data with the Network Flow Monitor query interface. Specify the query that you want to start by providing a query ID and a monitor name. This query returns 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, related to a scope (for workload insights) or a monitor.

See also: AWS API Documentation

Request Syntax

response = client.start_query_workload_insights_top_contributors(
    scopeId='string',
    startTime=datetime(2015, 1, 1),
    endTime=datetime(2015, 1, 1),
    metricName='TIMEOUTS'|'RETRANSMISSIONS'|'DATA_TRANSFERRED',
    destinationCategory='INTRA_AZ'|'INTER_AZ'|'INTER_VPC'|'UNCLASSIFIED'|'AMAZON_S3'|'AMAZON_DYNAMODB',
    limit=123
)
Parameters:
  • scopeId (string) –

    [REQUIRED]

    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 CreateScope API call.

  • startTime (datetime) –

    [REQUIRED]

    The timestamp that is the date and time beginning of the period that you want to retrieve results for with your query.

  • endTime (datetime) –

    [REQUIRED]

    The timestamp that is the date and time end of the period that you want to retrieve results for with your query.

  • metricName (string) –

    [REQUIRED]

    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.

  • destinationCategory (string) –

    [REQUIRED]

    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_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 (integer) – The maximum number of top contributors to return.

Return type:

dict

Returns:

Response Syntax

{
    'queryId': 'string'
}

Response Structure

  • (dict) –

    • queryId (string) –

      The identifier for the query. A query ID is an internally-generated identifier for a specific query returned from an API call to start a query.

Exceptions