/* * Copyright 2018-2023 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. */ package com.amazonaws.services.devopsguru.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details about Performance Insights metrics. *
** Amazon RDS Performance Insights enables you to monitor and explore different dimensions of database load based on * data captured from a running DB instance. DB load is measured as average active sessions. Performance Insights * provides the data to API consumers as a two-dimensional time-series dataset. The time dimension provides DB load data * for each time point in the queried time range. Each time point decomposes overall load in relation to the requested * dimensions, measured at that time point. Examples include SQL, Wait event, User, and Host. *
** To learn more about Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora User * Guide. *
** To learn more about Performance Insights and Amazon RDS DB instances, go to the Amazon RDS User Guide. *
** The name used for a specific Performance Insights metric. *
*/ private String metricDisplayName; /** ** The unit of measure for a metric. For example, a session or a process. *
*/ private String unit; /** *
* A single query to be processed for the metric. For more information, see
* PerformanceInsightsMetricQuery
* .
*
* For more information, see
* PerformanceInsightsReferenceData
* .
*
* The metric statistics during the anomalous period detected by DevOps Guru; *
*/ private java.util.List
* Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes metrics, it compares them
* to StatsAtBaseline
to help determine if they are anomalous.
*
* The name used for a specific Performance Insights metric. *
* * @param metricDisplayName * The name used for a specific Performance Insights metric. */ public void setMetricDisplayName(String metricDisplayName) { this.metricDisplayName = metricDisplayName; } /** ** The name used for a specific Performance Insights metric. *
* * @return The name used for a specific Performance Insights metric. */ public String getMetricDisplayName() { return this.metricDisplayName; } /** ** The name used for a specific Performance Insights metric. *
* * @param metricDisplayName * The name used for a specific Performance Insights metric. * @return Returns a reference to this object so that method calls can be chained together. */ public PerformanceInsightsMetricsDetail withMetricDisplayName(String metricDisplayName) { setMetricDisplayName(metricDisplayName); return this; } /** ** The unit of measure for a metric. For example, a session or a process. *
* * @param unit * The unit of measure for a metric. For example, a session or a process. */ public void setUnit(String unit) { this.unit = unit; } /** ** The unit of measure for a metric. For example, a session or a process. *
* * @return The unit of measure for a metric. For example, a session or a process. */ public String getUnit() { return this.unit; } /** ** The unit of measure for a metric. For example, a session or a process. *
* * @param unit * The unit of measure for a metric. For example, a session or a process. * @return Returns a reference to this object so that method calls can be chained together. */ public PerformanceInsightsMetricsDetail withUnit(String unit) { setUnit(unit); return this; } /** *
* A single query to be processed for the metric. For more information, see
* PerformanceInsightsMetricQuery
* .
*
PerformanceInsightsMetricQuery
* .
*/
public void setMetricQuery(PerformanceInsightsMetricQuery metricQuery) {
this.metricQuery = metricQuery;
}
/**
*
* A single query to be processed for the metric. For more information, see
* PerformanceInsightsMetricQuery
* .
*
PerformanceInsightsMetricQuery
* .
*/
public PerformanceInsightsMetricQuery getMetricQuery() {
return this.metricQuery;
}
/**
*
* A single query to be processed for the metric. For more information, see
* PerformanceInsightsMetricQuery
* .
*
PerformanceInsightsMetricQuery
* .
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PerformanceInsightsMetricsDetail withMetricQuery(PerformanceInsightsMetricQuery metricQuery) {
setMetricQuery(metricQuery);
return this;
}
/**
*
* For more information, see
* PerformanceInsightsReferenceData
* .
*
PerformanceInsightsReferenceData
* .
*/
public java.util.List
* For more information, see
* PerformanceInsightsReferenceData
* .
*
PerformanceInsightsReferenceData
* .
*/
public void setReferenceData(java.util.Collection
* For more information, see
* PerformanceInsightsReferenceData
* .
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setReferenceData(java.util.Collection)} or {@link #withReferenceData(java.util.Collection)} if you want * to override the existing values. *
* * @param referenceData * For more information, see * PerformanceInsightsReferenceData
* .
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PerformanceInsightsMetricsDetail withReferenceData(PerformanceInsightsReferenceData... referenceData) {
if (this.referenceData == null) {
setReferenceData(new java.util.ArrayList
* For more information, see
* PerformanceInsightsReferenceData
* .
*
PerformanceInsightsReferenceData
* .
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PerformanceInsightsMetricsDetail withReferenceData(java.util.Collection* The metric statistics during the anomalous period detected by DevOps Guru; *
* * @return The metric statistics during the anomalous period detected by DevOps Guru; */ public java.util.List* The metric statistics during the anomalous period detected by DevOps Guru; *
* * @param statsAtAnomaly * The metric statistics during the anomalous period detected by DevOps Guru; */ public void setStatsAtAnomaly(java.util.Collection* The metric statistics during the anomalous period detected by DevOps Guru; *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStatsAtAnomaly(java.util.Collection)} or {@link #withStatsAtAnomaly(java.util.Collection)} if you want * to override the existing values. *
* * @param statsAtAnomaly * The metric statistics during the anomalous period detected by DevOps Guru; * @return Returns a reference to this object so that method calls can be chained together. */ public PerformanceInsightsMetricsDetail withStatsAtAnomaly(PerformanceInsightsStat... statsAtAnomaly) { if (this.statsAtAnomaly == null) { setStatsAtAnomaly(new java.util.ArrayList* The metric statistics during the anomalous period detected by DevOps Guru; *
* * @param statsAtAnomaly * The metric statistics during the anomalous period detected by DevOps Guru; * @return Returns a reference to this object so that method calls can be chained together. */ public PerformanceInsightsMetricsDetail withStatsAtAnomaly(java.util.Collection
* Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes metrics, it compares them
* to StatsAtBaseline
to help determine if they are anomalous.
*
StatsAtBaseline
to help determine if they are anomalous.
*/
public java.util.List
* Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes metrics, it compares them
* to StatsAtBaseline
to help determine if they are anomalous.
*
StatsAtBaseline
to help determine if they are anomalous.
*/
public void setStatsAtBaseline(java.util.Collection
* Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes metrics, it compares them
* to StatsAtBaseline
to help determine if they are anomalous.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStatsAtBaseline(java.util.Collection)} or {@link #withStatsAtBaseline(java.util.Collection)} if you * want to override the existing values. *
* * @param statsAtBaseline * Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes metrics, it * compares them toStatsAtBaseline
to help determine if they are anomalous.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PerformanceInsightsMetricsDetail withStatsAtBaseline(PerformanceInsightsStat... statsAtBaseline) {
if (this.statsAtBaseline == null) {
setStatsAtBaseline(new java.util.ArrayList
* Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes metrics, it compares them
* to StatsAtBaseline
to help determine if they are anomalous.
*
StatsAtBaseline
to help determine if they are anomalous.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PerformanceInsightsMetricsDetail withStatsAtBaseline(java.util.Collection