/*
* 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 xray-2016-04-12.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.XRay.Model
{
///
/// X-Ray reevaluates insights periodically until they are resolved, and records each
/// intermediate state in an event. You can review incident events in the Impact Timeline
/// on the Inspect page in the X-Ray console.
///
public partial class InsightEvent
{
private RequestImpactStatistics _clientRequestImpactStatistics;
private DateTime? _eventTime;
private RequestImpactStatistics _rootCauseServiceRequestImpactStatistics;
private string _summary;
private List _topAnomalousServices = new List();
///
/// Gets and sets the property ClientRequestImpactStatistics.
///
/// The impact statistics of the client side service. This includes the number of requests
/// to the client service and whether the requests were faults or okay.
///
///
public RequestImpactStatistics ClientRequestImpactStatistics
{
get { return this._clientRequestImpactStatistics; }
set { this._clientRequestImpactStatistics = value; }
}
// Check to see if ClientRequestImpactStatistics property is set
internal bool IsSetClientRequestImpactStatistics()
{
return this._clientRequestImpactStatistics != null;
}
///
/// Gets and sets the property EventTime.
///
/// The time, in Unix seconds, at which the event was recorded.
///
///
public DateTime EventTime
{
get { return this._eventTime.GetValueOrDefault(); }
set { this._eventTime = value; }
}
// Check to see if EventTime property is set
internal bool IsSetEventTime()
{
return this._eventTime.HasValue;
}
///
/// Gets and sets the property RootCauseServiceRequestImpactStatistics.
///
/// The impact statistics of the root cause service. This includes the number of requests
/// to the client service and whether the requests were faults or okay.
///
///
public RequestImpactStatistics RootCauseServiceRequestImpactStatistics
{
get { return this._rootCauseServiceRequestImpactStatistics; }
set { this._rootCauseServiceRequestImpactStatistics = value; }
}
// Check to see if RootCauseServiceRequestImpactStatistics property is set
internal bool IsSetRootCauseServiceRequestImpactStatistics()
{
return this._rootCauseServiceRequestImpactStatistics != null;
}
///
/// Gets and sets the property Summary.
///
/// A brief description of the event.
///
///
public string Summary
{
get { return this._summary; }
set { this._summary = value; }
}
// Check to see if Summary property is set
internal bool IsSetSummary()
{
return this._summary != null;
}
///
/// Gets and sets the property TopAnomalousServices.
///
/// The service during the event that is most impacted by the incident.
///
///
public List TopAnomalousServices
{
get { return this._topAnomalousServices; }
set { this._topAnomalousServices = value; }
}
// Check to see if TopAnomalousServices property is set
internal bool IsSetTopAnomalousServices()
{
return this._topAnomalousServices != null && this._topAnomalousServices.Count > 0;
}
}
}