Retrieves the complete configuration information for one app monitor.
Parameters:
Raises:
Source code in docs_src/capo_rum/_services/async_rum.py
| async def get_app_monitor(
self,
name: "capo_rum.types.app_monitor_name.AppMonitorName",
*,
config_overrides: Optional[AsyncRUMClientConfig] = None,
) -> "capo_rum.types.get_app_monitor_response.GetAppMonitorResponse":
"""<p>Retrieves the complete configuration information for one app monitor.</p>
Args:
name: <p>The app monitor to retrieve information for.</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_request.GetAppMonitorRequest]",
) -> AsyncOperationResponse[
"capo_rum.types.get_app_monitor_response.GetAppMonitorResponse"
]:
import capo_rum._operations.rum.get_app_monitor
(
output,
http_response,
) = await capo_rum._operations.rum.get_app_monitor.async_get_app_monitor(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAppMonitor")
)
input_: capo_rum.types.get_app_monitor_request.GetAppMonitorRequest = {
"name": name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|