

# ServiceStatistics
<a name="API_ServiceStatistics"></a>

Response statistics for a service.

## Contents
<a name="API_ServiceStatistics_Contents"></a>

 ** ErrorStatistics **   <a name="xray-Type-ServiceStatistics-ErrorStatistics"></a>
Information about requests that failed with a 4xx Client Error status code.  
Type: [ErrorStatistics](API_ErrorStatistics.md) object  
Required: No

 ** FaultStatistics **   <a name="xray-Type-ServiceStatistics-FaultStatistics"></a>
Information about requests that failed with a 5xx Server Error status code.  
Type: [FaultStatistics](API_FaultStatistics.md) object  
Required: No

 ** OkCount **   <a name="xray-Type-ServiceStatistics-OkCount"></a>
The number of requests that completed with a 2xx Success status code.  
Type: Long  
Required: No

 ** TotalCount **   <a name="xray-Type-ServiceStatistics-TotalCount"></a>
The total number of completed requests.  
Type: Long  
Required: No

 ** TotalResponseTime **   <a name="xray-Type-ServiceStatistics-TotalResponseTime"></a>
The aggregate response time of completed requests.  
Type: Double  
Required: No

## See Also
<a name="API_ServiceStatistics_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/xray-2016-04-12/ServiceStatistics) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/xray-2016-04-12/ServiceStatistics) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/xray-2016-04-12/ServiceStatistics) 