Returns information about a performance monitor, including the resources that it monitors, its status, and the tags for the monitor.
Parameters:
-
monitor_name
(ResourceName)
–
The name of the performance monitor.
Raises:
Source code in docs_src/capo_networkflowmonitor/_services/async_network_flow_monitor.py
| async def get_performance_monitor(
self,
monitor_name: "capo_networkflowmonitor.types.resource_name.ResourceName",
*,
config_overrides: Optional[AsyncNetworkFlowMonitorClientConfig] = None,
) -> "capo_networkflowmonitor.types.get_performance_monitor_output.GetPerformanceMonitorOutput":
"""<p>Returns information about a performance monitor, including the resources that it monitors, its status, and the tags for the monitor.</p>
Args:
monitor_name: <p>The name of the performance monitor.</p>
Raises:
capo_networkflowmonitor.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permission to perform this action.</p>
capo_networkflowmonitor.errors.internal_server_exception.InternalServerException: <p>An internal error occurred.</p>
capo_networkflowmonitor.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request specifies a resource that doesn't exist.</p>
capo_networkflowmonitor.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_networkflowmonitor.errors.validation_exception.ValidationException: <p>Invalid request.</p>
capo_networkflowmonitor.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_networkflowmonitor.types.get_performance_monitor_input.GetPerformanceMonitorInput]",
) -> AsyncOperationResponse[
"capo_networkflowmonitor.types.get_performance_monitor_output.GetPerformanceMonitorOutput"
]:
import capo_networkflowmonitor._operations.network_flow_monitor.get_performance_monitor
(
output,
http_response,
) = await capo_networkflowmonitor._operations.network_flow_monitor.get_performance_monitor.async_get_performance_monitor(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetPerformanceMonitor")
)
input_: capo_networkflowmonitor.types.get_performance_monitor_input.GetPerformanceMonitorInput = {
"monitor_name": monitor_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|