/* * 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.cloudwatch.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* By default, a metric stream always sends the MAX
, MIN
, SUM
, and
* SAMPLECOUNT
statistics for each metric that is streamed. This structure contains information for one
* metric that includes additional statistics in the stream. For more information about statistics, see CloudWatch,
* listed in
* CloudWatch statistics definitions.
*
* An array of metric name and namespace pairs that stream the additional statistics listed in the value of the
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
*
* All metrics that match the combination of metric name and namespace will be streamed with the additional * statistics, no matter their dimensions. *
*/ private com.amazonaws.internal.SdkInternalList
* The list of additional statistics that are to be streamed for the metrics listed in the
* IncludeMetrics
array in this structure. This list can include as many as 20 statistics.
*
* If the OutputFormat
for the stream is opentelemetry0.7
, the only valid values are
* p??
percentile statistics such as p90
, p99
and so on.
*
* If the OutputFormat
for the stream is json
, the valid values include the abbreviations
* for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
*
* An array of metric name and namespace pairs that stream the additional statistics listed in the value of the
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
*
* All metrics that match the combination of metric name and namespace will be streamed with the additional * statistics, no matter their dimensions. *
* * @return An array of metric name and namespace pairs that stream the additional statistics listed in the value of * theAdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
*
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
*/
public java.util.List
* An array of metric name and namespace pairs that stream the additional statistics listed in the value of the
*
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
*/
public void setIncludeMetrics(java.util.Collection
* An array of metric name and namespace pairs that stream the additional statistics listed in the value of the
*
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setIncludeMetrics(java.util.Collection)} or {@link #withIncludeMetrics(java.util.Collection)} if you want
* to override the existing values.
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricStreamStatisticsConfiguration withIncludeMetrics(MetricStreamStatisticsMetric... includeMetrics) {
if (this.includeMetrics == null) {
setIncludeMetrics(new com.amazonaws.internal.SdkInternalList
* An array of metric name and namespace pairs that stream the additional statistics listed in the value of the
*
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
* AdditionalStatistics
parameter. There can be as many as 100 pairs in the array.
* All metrics that match the combination of metric name and namespace will be streamed with the additional
* statistics, no matter their dimensions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricStreamStatisticsConfiguration withIncludeMetrics(java.util.Collection
* The list of additional statistics that are to be streamed for the metrics listed in the
*
* If the
* If the IncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* OutputFormat
for the stream is opentelemetry0.7
, the only valid values are
* p??
percentile statistics such as p90
, p99
and so on.
* OutputFormat
for the stream is json
, the valid values include the abbreviations
* for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
* IncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* If the OutputFormat
for the stream is opentelemetry0.7
, the only valid values
* are p??
percentile statistics such as p90
, p99
and so on.
*
* If the
* The list of additional statistics that are to be streamed for the metrics listed in the
*
* If the
* If the OutputFormat
for the stream is json
, the valid values include the
* abbreviations for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
*/
public java.util.ListIncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* OutputFormat
for the stream is opentelemetry0.7
, the only valid values are
* p??
percentile statistics such as p90
, p99
and so on.
* OutputFormat
for the stream is json
, the valid values include the abbreviations
* for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
* IncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* If the OutputFormat
for the stream is opentelemetry0.7
, the only valid values
* are p??
percentile statistics such as p90
, p99
and so on.
*
* If the
* The list of additional statistics that are to be streamed for the metrics listed in the
*
* If the
* If the
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdditionalStatistics(java.util.Collection)} or {@link #withAdditionalStatistics(java.util.Collection)}
* if you want to override the existing values.
* OutputFormat
for the stream is json
, the valid values include the
* abbreviations for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
*/
public void setAdditionalStatistics(java.util.CollectionIncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* OutputFormat
for the stream is opentelemetry0.7
, the only valid values are
* p??
percentile statistics such as p90
, p99
and so on.
* OutputFormat
for the stream is json
, the valid values include the abbreviations
* for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
* IncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* If the OutputFormat
for the stream is opentelemetry0.7
, the only valid values
* are p??
percentile statistics such as p90
, p99
and so on.
*
* If the
* The list of additional statistics that are to be streamed for the metrics listed in the
*
* If the
* If the OutputFormat
for the stream is json
, the valid values include the
* abbreviations for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricStreamStatisticsConfiguration withAdditionalStatistics(String... additionalStatistics) {
if (this.additionalStatistics == null) {
setAdditionalStatistics(new com.amazonaws.internal.SdkInternalListIncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* OutputFormat
for the stream is opentelemetry0.7
, the only valid values are
* p??
percentile statistics such as p90
, p99
and so on.
* OutputFormat
for the stream is json
, the valid values include the abbreviations
* for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
* IncludeMetrics
array in this structure. This list can include as many as 20 statistics.
* If the OutputFormat
for the stream is opentelemetry0.7
, the only valid values
* are p??
percentile statistics such as p90
, p99
and so on.
*
* If the OutputFormat
for the stream is json
, the valid values include the
* abbreviations for all of the statistics listed in
* CloudWatch statistics definitions. For example, this includes tm98,
wm90
,
* PR(:300)
, and so on.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricStreamStatisticsConfiguration withAdditionalStatistics(java.util.Collection