NetworkFlowMonitor / Client / start_query_performance_monitor

start_query_performance_monitor

NetworkFlowMonitor.Client.start_query_performance_monitor(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.start_query_performance_monitor(
    monitorName='string',
    startTime=datetime(2015, 1, 1),
    endTime=datetime(2015, 1, 1),
    queryType='TOP_PATHS',
    filterParameters=[
        {
            'field': 'string',
            'operator': 'EQUALS'|'NOT_EQUALS'|'IN'|'CONTAINS',
            'values': [
                'string',
            ]
        },
    ],
    limit=123
)
Parameters:
  • monitorName (string) –

    [REQUIRED]

    The name of the performance monitor.

  • startTime (datetime) –

    [REQUIRED]

    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.

  • 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.

  • queryType (string) –

    [REQUIRED]

    The type of query that you want to create. Specify TOP_PATHS to return the top paths for the performance monitor.

  • filterParameters (list) –

    The filters for the query, to return a subset of the top paths. For a TOP_PATHS query, 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 an impact_level filter, including a NOT_EQUALS filter. Network Flow Monitor doesn’t filter the subnet pairs within a path by impact level.

    • (dict) –

      A filter for a query, to return a subset of the results.

      • field (string) – [REQUIRED]

        The name of the field that you want to filter on. The fields that you can specify depend on the type of query.

      • operator (string) – [REQUIRED]

        The operator to use to compare the field with the values that you specify. The operator can be one of the following

        • EQUALS: The field matches a single value.

        • NOT_EQUALS: The field doesn’t match a single value.

        • IN: The field matches any one of several values.

        • CONTAINS: The field contains a value.

      • values (list) – [REQUIRED]

        The values to compare the field with.

        • (string) –

  • limit (integer) – The maximum number of top paths that you want the query 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

  • NetworkFlowMonitor.Client.exceptions.ServiceQuotaExceededException

  • NetworkFlowMonitor.Client.exceptions.ResourceNotFoundException

  • NetworkFlowMonitor.Client.exceptions.ValidationException

  • NetworkFlowMonitor.Client.exceptions.ThrottlingException

  • NetworkFlowMonitor.Client.exceptions.AccessDeniedException

  • NetworkFlowMonitor.Client.exceptions.InternalServerException