@Generated(value="software.amazon.awssdk:codegen") public final class HealthEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HealthEvent.Builder,HealthEvent>
Information about a health event created in a monitor in Amazon CloudWatch Internet Monitor.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HealthEvent.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HealthEvent.Builder |
builder() |
Instant |
createdAt()
When the health event was created.
|
Instant |
endedAt()
The time when a health event ended.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventArn()
The Amazon Resource Name (ARN) of the event.
|
String |
eventId()
The internally generated identifier of a specific network traffic impairment health event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasImpactedLocations()
For responses, this returns true if the service returned a value for the ImpactedLocations property.
|
Double |
healthScoreThreshold()
The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch
Internet Monitor created the health event.
|
List<ImpactedLocation> |
impactedLocations()
The locations impacted by the health event.
|
HealthEventImpactType |
impactType()
The type of impairment for a health event.
|
String |
impactTypeAsString()
The type of impairment for a health event.
|
Instant |
lastUpdatedAt()
When the health event was last updated.
|
Double |
percentOfTotalTrafficImpacted()
The impact on global traffic monitored by this monitor for this health event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HealthEvent.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
When a health event started.
|
HealthEventStatus |
status()
Health event list member.
|
String |
statusAsString()
Health event list member.
|
HealthEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String eventArn()
The Amazon Resource Name (ARN) of the event.
public final String eventId()
The internally generated identifier of a specific network traffic impairment health event.
public final Instant startedAt()
When a health event started.
public final Instant endedAt()
The time when a health event ended. If the health event is still active, then the end time is not set.
public final Instant createdAt()
When the health event was created.
public final Instant lastUpdatedAt()
When the health event was last updated.
public final boolean hasImpactedLocations()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ImpactedLocation> impactedLocations()
The locations impacted by the health event.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasImpactedLocations() method.
public final HealthEventStatus status()
Health event list member.
If the service returns an enum value that is not available in the current SDK version, status will
return HealthEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
HealthEventStatuspublic final String statusAsString()
Health event list member.
If the service returns an enum value that is not available in the current SDK version, status will
return HealthEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
HealthEventStatuspublic final Double percentOfTotalTrafficImpacted()
The impact on global traffic monitored by this monitor for this health event.
public final HealthEventImpactType impactType()
The type of impairment for a health event.
If the service returns an enum value that is not available in the current SDK version, impactType will
return HealthEventImpactType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from impactTypeAsString().
HealthEventImpactTypepublic final String impactTypeAsString()
The type of impairment for a health event.
If the service returns an enum value that is not available in the current SDK version, impactType will
return HealthEventImpactType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from impactTypeAsString().
HealthEventImpactTypepublic final Double healthScoreThreshold()
The value of the threshold percentage for performance or availability that was configured when Amazon CloudWatch Internet Monitor created the health event.
public HealthEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HealthEvent.Builder,HealthEvent>public static HealthEvent.Builder builder()
public static Class<? extends HealthEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.