All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.internetmonitor.model.InternetHealth Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.internetmonitor.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Internet health includes measurements calculated by Amazon CloudWatch Internet Monitor about the performance and * availability for your application on the internet. Amazon Web Services has substantial historical data about internet * performance and availability between Amazon Web Services services and different network providers and geographies. By * applying statistical analysis to the data, Internet Monitor can detect when the performance and availability for your * application has dropped, compared to an estimated baseline that's already calculated. To make it easier to see those * drops, Internet Monitor reports the information to you in the form of health scores: a performance score and an * availability score. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InternetHealth implements Serializable, Cloneable, StructuredPojo { /** *

* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

*/ private AvailabilityMeasurement availability; /** *

* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance * drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of * the traffic experiencing a performance drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

*/ private PerformanceMeasurement performance; /** *

* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

* * @param availability * Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair.

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. */ public void setAvailability(AvailabilityMeasurement availability) { this.availability = availability; } /** *

* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

* * @return Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair.

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch * Internet Monitor section of the CloudWatch User Guide. */ public AvailabilityMeasurement getAvailability() { return this.availability; } /** *

* Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

* * @param availability * Availability in Internet Monitor represents the estimated percentage of traffic that is not seeing an * availability drop. For example, an availability score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing an availability drop for that pair.

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public InternetHealth withAvailability(AvailabilityMeasurement availability) { setAvailability(availability); return this; } /** *

* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance * drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of * the traffic experiencing a performance drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

* * @param performance * Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a * performance drop. For example, a performance score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing a performance drop for that pair.

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. */ public void setPerformance(PerformanceMeasurement performance) { this.performance = performance; } /** *

* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance * drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of * the traffic experiencing a performance drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

* * @return Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a * performance drop. For example, a performance score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing a performance drop for that pair.

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch * Internet Monitor section of the CloudWatch User Guide. */ public PerformanceMeasurement getPerformance() { return this.performance; } /** *

* Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a performance * drop. For example, a performance score of 99% for an end user and service location pair is equivalent to 1% of * the traffic experiencing a performance drop for that pair. *

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. *

* * @param performance * Performance in Internet Monitor represents the estimated percentage of traffic that is not seeing a * performance drop. For example, a performance score of 99% for an end user and service location pair is * equivalent to 1% of the traffic experiencing a performance drop for that pair.

*

* For more information, see How Internet Monitor calculates performance and availability scores in the Amazon CloudWatch Internet * Monitor section of the CloudWatch User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public InternetHealth withPerformance(PerformanceMeasurement performance) { setPerformance(performance); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAvailability() != null) sb.append("Availability: ").append(getAvailability()).append(","); if (getPerformance() != null) sb.append("Performance: ").append(getPerformance()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InternetHealth == false) return false; InternetHealth other = (InternetHealth) obj; if (other.getAvailability() == null ^ this.getAvailability() == null) return false; if (other.getAvailability() != null && other.getAvailability().equals(this.getAvailability()) == false) return false; if (other.getPerformance() == null ^ this.getPerformance() == null) return false; if (other.getPerformance() != null && other.getPerformance().equals(this.getPerformance()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAvailability() == null) ? 0 : getAvailability().hashCode()); hashCode = prime * hashCode + ((getPerformance() == null) ? 0 : getPerformance().hashCode()); return hashCode; } @Override public InternetHealth clone() { try { return (InternetHealth) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.internetmonitor.model.transform.InternetHealthMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy