Skip to content

get_app_monitor_data async

get_app_monitor_data(
    name: AppMonitorName,
    time_range: TimeRange,
    *,
    config_overrides: Optional[AsyncRUMClientConfig] = None,
    filters: Optional[QueryFilters] = None,
    max_results: Optional[MaxQueryResults] = None,
    next_token: Optional[Token] = None,
) -> GetAppMonitorDataResponse

Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data.

Parameters:

  • name (AppMonitorName) –

    The name of the app monitor that collected the data that you want to retrieve.

  • time_range (TimeRange) –

    A structure that defines the time range that you want to retrieve results from.

  • filters (Optional[QueryFilters], default: None ) –

    An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.

  • max_results (Optional[MaxQueryResults], default: None ) –

    The maximum number of results to return in one operation.

  • next_token (Optional[Token], default: None ) –

    Use the token returned by the previous operation to request the next page of results.

Raises:

Source code in docs_src/capo_rum/_services/async_rum.py
async def get_app_monitor_data(
    self,
    name: "capo_rum.types.app_monitor_name.AppMonitorName",
    time_range: "capo_rum.types.time_range.TimeRange",
    *,
    config_overrides: Optional[AsyncRUMClientConfig] = None,
    filters: Optional["capo_rum.types.query_filters.QueryFilters"] = None,
    max_results: Optional[
        "capo_rum.types.max_query_results.MaxQueryResults"
    ] = None,
    next_token: Optional["capo_rum.types.token.Token"] = None,
) -> "capo_rum.types.get_app_monitor_data_response.GetAppMonitorDataResponse":
    """<p>Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data.</p>

    Args:
        name: <p>The name of the app monitor that collected the data that you want to retrieve.</p>
        time_range: <p>A structure that defines the time range that you want to retrieve results from.</p>
        filters: <p>An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.</p>
        max_results: <p>The maximum number of results to return in one operation. </p>
        next_token: <p>Use the token returned by the previous operation to request the next page of results.</p>

    Raises:
        capo_rum.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this action.</p>
        capo_rum.errors.internal_server_exception.InternalServerException: <p>Internal service exception.</p>
        capo_rum.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found.</p>
        capo_rum.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_rum.errors.validation_exception.ValidationException: <p>One of the arguments for the request is not valid.</p>
        capo_rum.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_rum.types.get_app_monitor_data_request.GetAppMonitorDataRequest]",
    ) -> AsyncOperationResponse[
        "capo_rum.types.get_app_monitor_data_response.GetAppMonitorDataResponse"
    ]:
        import capo_rum._operations.rum.get_app_monitor_data

        (
            output,
            http_response,
        ) = await capo_rum._operations.rum.get_app_monitor_data.async_get_app_monitor_data(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAppMonitorData")
    )
    input_: capo_rum.types.get_app_monitor_data_request.GetAppMonitorDataRequest = {
        "name": name,
        "time_range": time_range,
    }
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output