Gets operating information about a wireless gateway.
Parameters:
-
wireless_gateway_id
(WirelessGatewayId)
–
The ID of the wireless gateway for which to get the data.
Raises:
Source code in docs_src/capo_iot_wireless/_services/io_t_wireless.py
| def get_wireless_gateway_statistics(
self,
wireless_gateway_id: "capo_iot_wireless.types.wireless_gateway_id.WirelessGatewayId",
*,
config_overrides: Optional[IoTWirelessClientConfig] = None,
) -> "capo_iot_wireless.types.get_wireless_gateway_statistics_response.GetWirelessGatewayStatisticsResponse":
"""<p>Gets operating information about a wireless gateway.</p>
Args:
wireless_gateway_id: <p>The ID of the wireless gateway for which to get the data.</p>
Raises:
capo_iot_wireless.errors.access_denied_exception.AccessDeniedException: <p>User does not have permission to perform this action.</p>
capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
capo_iot_wireless.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource does not exist.</p>
capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iot_wireless.types.get_wireless_gateway_statistics_request.GetWirelessGatewayStatisticsRequest]",
) -> OperationResponse[
"capo_iot_wireless.types.get_wireless_gateway_statistics_response.GetWirelessGatewayStatisticsResponse"
]:
import capo_iot_wireless._operations.iotwireless.get_wireless_gateway_statistics
output, http_response = (
capo_iot_wireless._operations.iotwireless.get_wireless_gateway_statistics.get_wireless_gateway_statistics(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetWirelessGatewayStatistics")
)
input_: capo_iot_wireless.types.get_wireless_gateway_statistics_request.GetWirelessGatewayStatisticsRequest = {
"wireless_gateway_id": wireless_gateway_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|