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

A list of TimeSeriesStatistic structures.

See Also:

AWS * API Reference

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

Timestamp of the window for which statistics are aggregated.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

Timestamp of the window for which statistics are aggregated.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

Timestamp of the window for which statistics are aggregated.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

Timestamp of the window for which statistics are aggregated.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

Timestamp of the window for which statistics are aggregated.

*/ inline TimeSeriesServiceStatistics& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

Timestamp of the window for which statistics are aggregated.

*/ inline TimeSeriesServiceStatistics& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} inline const EdgeStatistics& GetEdgeSummaryStatistics() const{ return m_edgeSummaryStatistics; } inline bool EdgeSummaryStatisticsHasBeenSet() const { return m_edgeSummaryStatisticsHasBeenSet; } inline void SetEdgeSummaryStatistics(const EdgeStatistics& value) { m_edgeSummaryStatisticsHasBeenSet = true; m_edgeSummaryStatistics = value; } inline void SetEdgeSummaryStatistics(EdgeStatistics&& value) { m_edgeSummaryStatisticsHasBeenSet = true; m_edgeSummaryStatistics = std::move(value); } inline TimeSeriesServiceStatistics& WithEdgeSummaryStatistics(const EdgeStatistics& value) { SetEdgeSummaryStatistics(value); return *this;} inline TimeSeriesServiceStatistics& WithEdgeSummaryStatistics(EdgeStatistics&& value) { SetEdgeSummaryStatistics(std::move(value)); return *this;} inline const ServiceStatistics& GetServiceSummaryStatistics() const{ return m_serviceSummaryStatistics; } inline bool ServiceSummaryStatisticsHasBeenSet() const { return m_serviceSummaryStatisticsHasBeenSet; } inline void SetServiceSummaryStatistics(const ServiceStatistics& value) { m_serviceSummaryStatisticsHasBeenSet = true; m_serviceSummaryStatistics = value; } inline void SetServiceSummaryStatistics(ServiceStatistics&& value) { m_serviceSummaryStatisticsHasBeenSet = true; m_serviceSummaryStatistics = std::move(value); } inline TimeSeriesServiceStatistics& WithServiceSummaryStatistics(const ServiceStatistics& value) { SetServiceSummaryStatistics(value); return *this;} inline TimeSeriesServiceStatistics& WithServiceSummaryStatistics(ServiceStatistics&& value) { SetServiceSummaryStatistics(std::move(value)); return *this;} /** *

The forecasted high and low fault count values.

*/ inline const ForecastStatistics& GetServiceForecastStatistics() const{ return m_serviceForecastStatistics; } /** *

The forecasted high and low fault count values.

*/ inline bool ServiceForecastStatisticsHasBeenSet() const { return m_serviceForecastStatisticsHasBeenSet; } /** *

The forecasted high and low fault count values.

*/ inline void SetServiceForecastStatistics(const ForecastStatistics& value) { m_serviceForecastStatisticsHasBeenSet = true; m_serviceForecastStatistics = value; } /** *

The forecasted high and low fault count values.

*/ inline void SetServiceForecastStatistics(ForecastStatistics&& value) { m_serviceForecastStatisticsHasBeenSet = true; m_serviceForecastStatistics = std::move(value); } /** *

The forecasted high and low fault count values.

*/ inline TimeSeriesServiceStatistics& WithServiceForecastStatistics(const ForecastStatistics& value) { SetServiceForecastStatistics(value); return *this;} /** *

The forecasted high and low fault count values.

*/ inline TimeSeriesServiceStatistics& WithServiceForecastStatistics(ForecastStatistics&& value) { SetServiceForecastStatistics(std::move(value)); return *this;} /** *

The response time histogram for the selected entities.

*/ inline const Aws::Vector& GetResponseTimeHistogram() const{ return m_responseTimeHistogram; } /** *

The response time histogram for the selected entities.

*/ inline bool ResponseTimeHistogramHasBeenSet() const { return m_responseTimeHistogramHasBeenSet; } /** *

The response time histogram for the selected entities.

*/ inline void SetResponseTimeHistogram(const Aws::Vector& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = value; } /** *

The response time histogram for the selected entities.

*/ inline void SetResponseTimeHistogram(Aws::Vector&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram = std::move(value); } /** *

The response time histogram for the selected entities.

*/ inline TimeSeriesServiceStatistics& WithResponseTimeHistogram(const Aws::Vector& value) { SetResponseTimeHistogram(value); return *this;} /** *

The response time histogram for the selected entities.

*/ inline TimeSeriesServiceStatistics& WithResponseTimeHistogram(Aws::Vector&& value) { SetResponseTimeHistogram(std::move(value)); return *this;} /** *

The response time histogram for the selected entities.

*/ inline TimeSeriesServiceStatistics& AddResponseTimeHistogram(const HistogramEntry& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(value); return *this; } /** *

The response time histogram for the selected entities.

*/ inline TimeSeriesServiceStatistics& AddResponseTimeHistogram(HistogramEntry&& value) { m_responseTimeHistogramHasBeenSet = true; m_responseTimeHistogram.push_back(std::move(value)); return *this; } private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; EdgeStatistics m_edgeSummaryStatistics; bool m_edgeSummaryStatisticsHasBeenSet = false; ServiceStatistics m_serviceSummaryStatistics; bool m_serviceSummaryStatisticsHasBeenSet = false; ForecastStatistics m_serviceForecastStatistics; bool m_serviceForecastStatisticsHasBeenSet = false; Aws::Vector m_responseTimeHistogram; bool m_responseTimeHistogramHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws