/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object describing a Performance Insights metric and one or more dimensions
* for that metric.See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
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.
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.
The valid dimensions for the metric.
*/ inline const Aws::MapThe valid dimensions for the metric.
*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *The valid dimensions for the metric.
*/ inline void SetDimensions(const Aws::MapThe valid dimensions for the metric.
*/ inline void SetDimensions(Aws::MapThe valid dimensions for the metric.
*/ inline ResponseResourceMetricKey& WithDimensions(const Aws::MapThe valid dimensions for the metric.
*/ inline ResponseResourceMetricKey& WithDimensions(Aws::MapThe 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