/*
* 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 monitoring-2010-08-01.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.CloudWatch.Model
{
///
/// This is the response object from the GetInsightRuleReport operation.
///
public partial class GetInsightRuleReportResponse : AmazonWebServiceResponse
{
private double? _aggregateValue;
private string _aggregationStatistic;
private long? _approximateUniqueCount;
private List _contributors = new List();
private List _keyLabels = new List();
private List _metricDatapoints = new List();
///
/// Gets and sets the property AggregateValue.
///
/// The sum of the values from all individual contributors that match the rule.
///
///
public double AggregateValue
{
get { return this._aggregateValue.GetValueOrDefault(); }
set { this._aggregateValue = value; }
}
// Check to see if AggregateValue property is set
internal bool IsSetAggregateValue()
{
return this._aggregateValue.HasValue;
}
///
/// Gets and sets the property AggregationStatistic.
///
/// Specifies whether this rule aggregates contributor data by COUNT or SUM.
///
///
public string AggregationStatistic
{
get { return this._aggregationStatistic; }
set { this._aggregationStatistic = value; }
}
// Check to see if AggregationStatistic property is set
internal bool IsSetAggregationStatistic()
{
return this._aggregationStatistic != null;
}
///
/// Gets and sets the property ApproximateUniqueCount.
///
/// An approximate count of the unique contributors found by this rule in this time period.
///
///
public long ApproximateUniqueCount
{
get { return this._approximateUniqueCount.GetValueOrDefault(); }
set { this._approximateUniqueCount = value; }
}
// Check to see if ApproximateUniqueCount property is set
internal bool IsSetApproximateUniqueCount()
{
return this._approximateUniqueCount.HasValue;
}
///
/// Gets and sets the property Contributors.
///
/// An array of the unique contributors found by this rule in this time period. If the
/// rule contains multiple keys, each combination of values for the keys counts as a unique
/// contributor.
///
///
public List Contributors
{
get { return this._contributors; }
set { this._contributors = value; }
}
// Check to see if Contributors property is set
internal bool IsSetContributors()
{
return this._contributors != null && this._contributors.Count > 0;
}
///
/// Gets and sets the property KeyLabels.
///
/// An array of the strings used as the keys for this rule. The keys are the dimensions
/// used to classify contributors. If the rule contains more than one key, then each unique
/// combination of values for the keys is counted as a unique contributor.
///
///
public List KeyLabels
{
get { return this._keyLabels; }
set { this._keyLabels = value; }
}
// Check to see if KeyLabels property is set
internal bool IsSetKeyLabels()
{
return this._keyLabels != null && this._keyLabels.Count > 0;
}
///
/// Gets and sets the property MetricDatapoints.
///
/// A time series of metric data points that matches the time period in the rule request.
///
///
public List MetricDatapoints
{
get { return this._metricDatapoints; }
set { this._metricDatapoints = value; }
}
// Check to see if MetricDatapoints property is set
internal bool IsSetMetricDatapoints()
{
return this._metricDatapoints != null && this._metricDatapoints.Count > 0;
}
}
}