/*
* 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 lookoutmetrics-2017-07-25.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.LookoutMetrics.Model
{
///
/// A group of anomalous metrics
///
public partial class AnomalyGroup
{
private string _anomalyGroupId;
private double? _anomalyGroupScore;
private string _endTime;
private List _metricLevelImpactList = new List();
private string _primaryMetricName;
private string _startTime;
///
/// Gets and sets the property AnomalyGroupId.
///
/// The ID of the anomaly group.
///
///
[AWSProperty(Max=63)]
public string AnomalyGroupId
{
get { return this._anomalyGroupId; }
set { this._anomalyGroupId = value; }
}
// Check to see if AnomalyGroupId property is set
internal bool IsSetAnomalyGroupId()
{
return this._anomalyGroupId != null;
}
///
/// Gets and sets the property AnomalyGroupScore.
///
/// The severity score of the group.
///
///
[AWSProperty(Min=0, Max=100)]
public double AnomalyGroupScore
{
get { return this._anomalyGroupScore.GetValueOrDefault(); }
set { this._anomalyGroupScore = value; }
}
// Check to see if AnomalyGroupScore property is set
internal bool IsSetAnomalyGroupScore()
{
return this._anomalyGroupScore.HasValue;
}
///
/// Gets and sets the property EndTime.
///
/// The end time for the group.
///
///
[AWSProperty(Max=60)]
public string EndTime
{
get { return this._endTime; }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime != null;
}
///
/// Gets and sets the property MetricLevelImpactList.
///
/// A list of measures affected by the anomaly.
///
///
public List MetricLevelImpactList
{
get { return this._metricLevelImpactList; }
set { this._metricLevelImpactList = value; }
}
// Check to see if MetricLevelImpactList property is set
internal bool IsSetMetricLevelImpactList()
{
return this._metricLevelImpactList != null && this._metricLevelImpactList.Count > 0;
}
///
/// Gets and sets the property PrimaryMetricName.
///
/// The name of the primary affected measure for the group.
///
///
[AWSProperty(Max=256)]
public string PrimaryMetricName
{
get { return this._primaryMetricName; }
set { this._primaryMetricName = value; }
}
// Check to see if PrimaryMetricName property is set
internal bool IsSetPrimaryMetricName()
{
return this._primaryMetricName != null;
}
///
/// Gets and sets the property StartTime.
///
/// The start time for the group.
///
///
[AWSProperty(Max=60)]
public string StartTime
{
get { return this._startTime; }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime != null;
}
}
}