/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the pi-2018-02-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.PI.Model
{
///
/// An object describing a Performance Insights metric and one or more dimensions for
/// that metric.
///
public partial class ResponseResourceMetricKey
{
private Dictionary _dimensions = new Dictionary();
private string _metric;
///
/// Gets and sets the property Dimensions.
///
/// The valid dimensions for the metric.
///
///
public Dictionary Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Required=true, Min=0, Max=256)]
public string Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
}
}