/*
* 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 devops-guru-2020-12-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.DevOpsGuru.Model
{
///
/// Details about a reactive anomaly. This object is returned by ListAnomalies
.
///
public partial class ReactiveAnomaly
{
private AnomalyReportedTimeRange _anomalyReportedTimeRange;
private List _anomalyResources = new List();
private AnomalyTimeRange _anomalyTimeRange;
private string _associatedInsightId;
private string _causalAnomalyId;
private string _description;
private string _id;
private string _name;
private ResourceCollection _resourceCollection;
private AnomalySeverity _severity;
private AnomalySourceDetails _sourceDetails;
private AnomalyStatus _status;
private AnomalyType _type;
///
/// Gets and sets the property AnomalyReportedTimeRange.
///
/// An AnomalyReportedTimeRange
object that specifies the time range between
/// when the anomaly is opened and the time when it is closed.
///
///
public AnomalyReportedTimeRange AnomalyReportedTimeRange
{
get { return this._anomalyReportedTimeRange; }
set { this._anomalyReportedTimeRange = value; }
}
// Check to see if AnomalyReportedTimeRange property is set
internal bool IsSetAnomalyReportedTimeRange()
{
return this._anomalyReportedTimeRange != null;
}
///
/// Gets and sets the property AnomalyResources.
///
/// The Amazon Web Services resources in which anomalous behavior was detected by DevOps
/// Guru.
///
///
public List AnomalyResources
{
get { return this._anomalyResources; }
set { this._anomalyResources = value; }
}
// Check to see if AnomalyResources property is set
internal bool IsSetAnomalyResources()
{
return this._anomalyResources != null && this._anomalyResources.Count > 0;
}
///
/// Gets and sets the property AnomalyTimeRange.
///
public AnomalyTimeRange AnomalyTimeRange
{
get { return this._anomalyTimeRange; }
set { this._anomalyTimeRange = value; }
}
// Check to see if AnomalyTimeRange property is set
internal bool IsSetAnomalyTimeRange()
{
return this._anomalyTimeRange != null;
}
///
/// Gets and sets the property AssociatedInsightId.
///
/// The ID of the insight that contains this anomaly. An insight is composed of related
/// anomalies.
///
///
[AWSProperty(Min=1, Max=100)]
public string AssociatedInsightId
{
get { return this._associatedInsightId; }
set { this._associatedInsightId = value; }
}
// Check to see if AssociatedInsightId property is set
internal bool IsSetAssociatedInsightId()
{
return this._associatedInsightId != null;
}
///
/// Gets and sets the property CausalAnomalyId.
///
/// The ID of the causal anomaly that is associated with this reactive anomaly. The ID
/// of a `CAUSAL` anomaly is always `NULL`.
///
///
[AWSProperty(Min=1, Max=100)]
public string CausalAnomalyId
{
get { return this._causalAnomalyId; }
set { this._causalAnomalyId = value; }
}
// Check to see if CausalAnomalyId property is set
internal bool IsSetCausalAnomalyId()
{
return this._causalAnomalyId != null;
}
///
/// Gets and sets the property Description.
///
/// A description of the reactive anomaly.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property Id.
///
/// The ID of the reactive anomaly.
///
///
[AWSProperty(Min=1, Max=100)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the reactive anomaly.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property ResourceCollection.
///
public ResourceCollection ResourceCollection
{
get { return this._resourceCollection; }
set { this._resourceCollection = value; }
}
// Check to see if ResourceCollection property is set
internal bool IsSetResourceCollection()
{
return this._resourceCollection != null;
}
///
/// Gets and sets the property Severity.
///
/// The severity of the anomaly. The severity of anomalies that generate an insight determine
/// that insight's severity. For more information, see Understanding
/// insight severities in the Amazon DevOps Guru User Guide.
///
///
public AnomalySeverity Severity
{
get { return this._severity; }
set { this._severity = value; }
}
// Check to see if Severity property is set
internal bool IsSetSeverity()
{
return this._severity != null;
}
///
/// Gets and sets the property SourceDetails.
///
/// Details about the source of the analyzed operational data that triggered the anomaly.
/// The one supported source is Amazon CloudWatch metrics.
///
///
public AnomalySourceDetails SourceDetails
{
get { return this._sourceDetails; }
set { this._sourceDetails = value; }
}
// Check to see if SourceDetails property is set
internal bool IsSetSourceDetails()
{
return this._sourceDetails != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the anomaly.
///
///
public AnomalyStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Type.
///
/// The type of the reactive anomaly. It can be one of the following types.
///
/// -
///
///
CAUSAL
- the anomaly can cause a new insight.
///
/// -
///
///
CONTEXTUAL
- the anomaly contains additional information about an insight
/// or its causal anomaly.
///
///
///
public AnomalyType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}