/** * 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 PI { namespace Model { /** *

An object describing a Performance Insights metric and one or more dimensions * for that metric.

See Also:

AWS * API Reference

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

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline const Aws::String& GetMetric() const{ return m_metric; } /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; } /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; } /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); } /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); } /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline ResponseResourceMetricKey& WithMetric(const Aws::String& value) { SetMetric(value); return *this;} /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline ResponseResourceMetricKey& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;} /** *

The name of a Performance Insights metric to be measured.

Valid values * for Metric are:

  • db.load.avg - A * scaled representation of the number of active sessions for the database * engine.

  • db.sampledload.avg - The raw number of * active sessions for the database engine.

  • The counter metrics * listed in Performance * Insights operating system counters in the Amazon Aurora User * Guide.

If the number of active sessions is less than an * internal Performance Insights threshold, db.load.avg and * db.sampledload.avg are the same value. If the number of active * sessions is greater than the internal threshold, Performance Insights samples * the active sessions, with db.load.avg showing the scaled values, * db.sampledload.avg showing the raw values, and * db.sampledload.avg less than db.load.avg. For most use * cases, you can query db.load.avg only.

*/ inline ResponseResourceMetricKey& WithMetric(const char* value) { SetMetric(value); return *this;} /** *

The valid dimensions for the metric.

*/ inline const Aws::Map& GetDimensions() const{ return m_dimensions; } /** *

The valid dimensions for the metric.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

The valid dimensions for the metric.

*/ inline void SetDimensions(const Aws::Map& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

The valid dimensions for the metric.

*/ inline void SetDimensions(Aws::Map&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& WithDimensions(const Aws::Map& value) { SetDimensions(value); return *this;} /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& WithDimensions(Aws::Map&& value) { SetDimensions(std::move(value)); return *this;} /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; } /** *

The valid dimensions for the metric.

*/ inline ResponseResourceMetricKey& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; } private: Aws::String m_metric; bool m_metricHasBeenSet = false; Aws::Map m_dimensions; bool m_dimensionsHasBeenSet = false; }; } // namespace Model } // namespace PI } // namespace Aws