/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

Response statistics for an edge.

See Also:

AWS * API Reference

*/ class EdgeStatistics { public: AWS_XRAY_API EdgeStatistics(); AWS_XRAY_API EdgeStatistics(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API EdgeStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of requests that completed with a 2xx Success status code.

*/ inline long long GetOkCount() const{ return m_okCount; } /** *

The number of requests that completed with a 2xx Success status code.

*/ inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; } /** *

The number of requests that completed with a 2xx Success status code.

*/ inline void SetOkCount(long long value) { m_okCountHasBeenSet = true; m_okCount = value; } /** *

The number of requests that completed with a 2xx Success status code.

*/ inline EdgeStatistics& WithOkCount(long long value) { SetOkCount(value); return *this;} /** *

Information about requests that failed with a 4xx Client Error status * code.

*/ inline const ErrorStatistics& GetErrorStatistics() const{ return m_errorStatistics; } /** *

Information about requests that failed with a 4xx Client Error status * code.

*/ inline bool ErrorStatisticsHasBeenSet() const { return m_errorStatisticsHasBeenSet; } /** *

Information about requests that failed with a 4xx Client Error status * code.

*/ inline void SetErrorStatistics(const ErrorStatistics& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = value; } /** *

Information about requests that failed with a 4xx Client Error status * code.

*/ inline void SetErrorStatistics(ErrorStatistics&& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = std::move(value); } /** *

Information about requests that failed with a 4xx Client Error status * code.

*/ inline EdgeStatistics& WithErrorStatistics(const ErrorStatistics& value) { SetErrorStatistics(value); return *this;} /** *

Information about requests that failed with a 4xx Client Error status * code.

*/ inline EdgeStatistics& WithErrorStatistics(ErrorStatistics&& value) { SetErrorStatistics(std::move(value)); return *this;} /** *

Information about requests that failed with a 5xx Server Error status * code.

*/ inline const FaultStatistics& GetFaultStatistics() const{ return m_faultStatistics; } /** *

Information about requests that failed with a 5xx Server Error status * code.

*/ inline bool FaultStatisticsHasBeenSet() const { return m_faultStatisticsHasBeenSet; } /** *

Information about requests that failed with a 5xx Server Error status * code.

*/ inline void SetFaultStatistics(const FaultStatistics& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = value; } /** *

Information about requests that failed with a 5xx Server Error status * code.

*/ inline void SetFaultStatistics(FaultStatistics&& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = std::move(value); } /** *

Information about requests that failed with a 5xx Server Error status * code.

*/ inline EdgeStatistics& WithFaultStatistics(const FaultStatistics& value) { SetFaultStatistics(value); return *this;} /** *

Information about requests that failed with a 5xx Server Error status * code.

*/ inline EdgeStatistics& WithFaultStatistics(FaultStatistics&& value) { SetFaultStatistics(std::move(value)); return *this;} /** *

The total number of completed requests.

*/ inline long long GetTotalCount() const{ return m_totalCount; } /** *

The total number of completed requests.

*/ inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } /** *

The total number of completed requests.

*/ inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; } /** *

The total number of completed requests.

*/ inline EdgeStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;} /** *

The aggregate response time of completed requests.

*/ inline double GetTotalResponseTime() const{ return m_totalResponseTime; } /** *

The aggregate response time of completed requests.

*/ inline bool TotalResponseTimeHasBeenSet() const { return m_totalResponseTimeHasBeenSet; } /** *

The aggregate response time of completed requests.

*/ inline void SetTotalResponseTime(double value) { m_totalResponseTimeHasBeenSet = true; m_totalResponseTime = value; } /** *

The aggregate response time of completed requests.

*/ inline EdgeStatistics& WithTotalResponseTime(double value) { SetTotalResponseTime(value); return *this;} private: long long m_okCount; bool m_okCountHasBeenSet = false; ErrorStatistics m_errorStatistics; bool m_errorStatisticsHasBeenSet = false; FaultStatistics m_faultStatistics; bool m_faultStatisticsHasBeenSet = false; long long m_totalCount; bool m_totalCountHasBeenSet = false; double m_totalResponseTime; bool m_totalResponseTimeHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws