/*
* 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
{
///
/// An Amazon CloudWatch log group that contains log anomalies and is used to generate
/// an insight.
///
public partial class AnomalousLogGroup
{
private DateTime? _impactEndTime;
private DateTime? _impactStartTime;
private List _logAnomalyShowcases = new List();
private string _logGroupName;
private int? _numberOfLogLinesScanned;
///
/// Gets and sets the property ImpactEndTime.
///
/// The time the anomalous log events stopped.
///
///
public DateTime ImpactEndTime
{
get { return this._impactEndTime.GetValueOrDefault(); }
set { this._impactEndTime = value; }
}
// Check to see if ImpactEndTime property is set
internal bool IsSetImpactEndTime()
{
return this._impactEndTime.HasValue;
}
///
/// Gets and sets the property ImpactStartTime.
///
/// The time the anomalous log events began. The impact start time indicates the time
/// of the first log anomaly event that occurs.
///
///
public DateTime ImpactStartTime
{
get { return this._impactStartTime.GetValueOrDefault(); }
set { this._impactStartTime = value; }
}
// Check to see if ImpactStartTime property is set
internal bool IsSetImpactStartTime()
{
return this._impactStartTime.HasValue;
}
///
/// Gets and sets the property LogAnomalyShowcases.
///
/// The log anomalies in the log group. Each log anomaly displayed represents a cluster
/// of similar anomalous log events.
///
///
[AWSProperty(Min=0, Max=20)]
public List LogAnomalyShowcases
{
get { return this._logAnomalyShowcases; }
set { this._logAnomalyShowcases = value; }
}
// Check to see if LogAnomalyShowcases property is set
internal bool IsSetLogAnomalyShowcases()
{
return this._logAnomalyShowcases != null && this._logAnomalyShowcases.Count > 0;
}
///
/// Gets and sets the property LogGroupName.
///
/// The name of the CloudWatch log group.
///
///
[AWSProperty(Min=1, Max=512)]
public string LogGroupName
{
get { return this._logGroupName; }
set { this._logGroupName = value; }
}
// Check to see if LogGroupName property is set
internal bool IsSetLogGroupName()
{
return this._logGroupName != null;
}
///
/// Gets and sets the property NumberOfLogLinesScanned.
///
/// The number of log lines that were scanned for anomalous log events.
///
///
public int NumberOfLogLinesScanned
{
get { return this._numberOfLogLinesScanned.GetValueOrDefault(); }
set { this._numberOfLogLinesScanned = value; }
}
// Check to see if NumberOfLogLinesScanned property is set
internal bool IsSetNumberOfLogLinesScanned()
{
return this._numberOfLogLinesScanned.HasValue;
}
}
}