/* * Copyright 2018-2023 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. */ package com.amazonaws.services.xray.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InsightEvent implements Serializable, Cloneable, StructuredPojo { /** ** A brief description of the event. *
*/ private String summary; /** ** The time, in Unix seconds, at which the event was recorded. *
*/ private java.util.Date eventTime; /** ** 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. *
*/ private RequestImpactStatistics clientRequestImpactStatistics; /** ** 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. *
*/ private RequestImpactStatistics rootCauseServiceRequestImpactStatistics; /** ** The service during the event that is most impacted by the incident. *
*/ private java.util.List* A brief description of the event. *
* * @param summary * A brief description of the event. */ public void setSummary(String summary) { this.summary = summary; } /** ** A brief description of the event. *
* * @return A brief description of the event. */ public String getSummary() { return this.summary; } /** ** A brief description of the event. *
* * @param summary * A brief description of the event. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightEvent withSummary(String summary) { setSummary(summary); return this; } /** ** The time, in Unix seconds, at which the event was recorded. *
* * @param eventTime * The time, in Unix seconds, at which the event was recorded. */ public void setEventTime(java.util.Date eventTime) { this.eventTime = eventTime; } /** ** The time, in Unix seconds, at which the event was recorded. *
* * @return The time, in Unix seconds, at which the event was recorded. */ public java.util.Date getEventTime() { return this.eventTime; } /** ** The time, in Unix seconds, at which the event was recorded. *
* * @param eventTime * The time, in Unix seconds, at which the event was recorded. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightEvent withEventTime(java.util.Date eventTime) { setEventTime(eventTime); return this; } /** ** 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. *
* * @param 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 void setClientRequestImpactStatistics(RequestImpactStatistics clientRequestImpactStatistics) { this.clientRequestImpactStatistics = 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. *
* * @return 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 getClientRequestImpactStatistics() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightEvent withClientRequestImpactStatistics(RequestImpactStatistics clientRequestImpactStatistics) { setClientRequestImpactStatistics(clientRequestImpactStatistics); return this; } /** ** 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. *
* * @param 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 void setRootCauseServiceRequestImpactStatistics(RequestImpactStatistics rootCauseServiceRequestImpactStatistics) { this.rootCauseServiceRequestImpactStatistics = 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. *
* * @return 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 getRootCauseServiceRequestImpactStatistics() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightEvent withRootCauseServiceRequestImpactStatistics(RequestImpactStatistics rootCauseServiceRequestImpactStatistics) { setRootCauseServiceRequestImpactStatistics(rootCauseServiceRequestImpactStatistics); return this; } /** ** The service during the event that is most impacted by the incident. *
* * @return The service during the event that is most impacted by the incident. */ public java.util.List* The service during the event that is most impacted by the incident. *
* * @param topAnomalousServices * The service during the event that is most impacted by the incident. */ public void setTopAnomalousServices(java.util.Collection* The service during the event that is most impacted by the incident. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTopAnomalousServices(java.util.Collection)} or {@link #withTopAnomalousServices(java.util.Collection)} * if you want to override the existing values. *
* * @param topAnomalousServices * The service during the event that is most impacted by the incident. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightEvent withTopAnomalousServices(AnomalousService... topAnomalousServices) { if (this.topAnomalousServices == null) { setTopAnomalousServices(new java.util.ArrayList* The service during the event that is most impacted by the incident. *
* * @param topAnomalousServices * The service during the event that is most impacted by the incident. * @return Returns a reference to this object so that method calls can be chained together. */ public InsightEvent withTopAnomalousServices(java.util.Collection