Class PingProbeResultSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.healthchecks.model.PingProbeResultSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20180501") public final class PingProbeResultSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe results returned by running a ping probe.All times and durations are returned in milliseconds. All times are relative to the POSIX epoch (1970-01-01T00:00Z).
Note: Objects should always be created or deserialized using thePingProbeResultSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of thePingProbeResultSummary.Builder, which maintain a set of all explicitly set fields calledPingProbeResultSummary.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPingProbeResultSummary.Builderstatic classPingProbeResultSummary.ErrorCategoryThe category of error if an error occurs executing the probe.
-
Constructor Summary
Constructors Constructor Description PingProbeResultSummary(String key, String probeConfigurationId, Double startTime, String target, String vantagePointName, Boolean isTimedOut, Boolean isHealthy, PingProbeResultSummary.ErrorCategory errorCategory, String errorMessage, PingProbeProtocol protocol, Connection connection, DNS dns, Double domainLookupStart, Double domainLookupEnd, Double latencyInMs, Integer icmpCode)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PingProbeResultSummary.Builderbuilder()Create a new builder.booleanequals(Object o)ConnectiongetConnection()DNSgetDns()DoublegetDomainLookupEnd()The time immediately before the vantage point finishes the domain name lookup for the resource.DoublegetDomainLookupStart()The time immediately before the vantage point starts the domain name lookup for the resource.PingProbeResultSummary.ErrorCategorygetErrorCategory()The category of error if an error occurs executing the probe.StringgetErrorMessage()The error information indicating why a probe execution failed.IntegergetIcmpCode()The ICMP code of the response message.BooleangetIsHealthy()True if the probe result is determined to be healthy based on probe type-specific criteria.BooleangetIsTimedOut()True if the probe did not complete before the configured timeoutInSeconds value.StringgetKey()A value identifying this specific probe result.DoublegetLatencyInMs()The latency of the probe execution, in milliseconds.StringgetProbeConfigurationId()The OCID of the monitor or on-demand probe responsible for creating this result.PingProbeProtocolgetProtocol()DoublegetStartTime()The date and time the probe was executed, expressed in milliseconds since the POSIX epoch.StringgetTarget()The target hostname or IP address of the probe.StringgetVantagePointName()The name of the vantage point that executed the probe.inthashCode()PingProbeResultSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
PingProbeResultSummary
@Deprecated @ConstructorProperties({"key","probeConfigurationId","startTime","target","vantagePointName","isTimedOut","isHealthy","errorCategory","errorMessage","protocol","connection","dns","domainLookupStart","domainLookupEnd","latencyInMs","icmpCode"}) public PingProbeResultSummary(String key, String probeConfigurationId, Double startTime, String target, String vantagePointName, Boolean isTimedOut, Boolean isHealthy, PingProbeResultSummary.ErrorCategory errorCategory, String errorMessage, PingProbeProtocol protocol, Connection connection, DNS dns, Double domainLookupStart, Double domainLookupEnd, Double latencyInMs, Integer icmpCode)
Deprecated.
-
-
Method Detail
-
builder
public static PingProbeResultSummary.Builder builder()
Create a new builder.
-
toBuilder
public PingProbeResultSummary.Builder toBuilder()
-
getKey
public String getKey()
A value identifying this specific probe result.The key is only unique within the results of its probe configuration. The key may be reused after 90 days.
- Returns:
- the value
-
getProbeConfigurationId
public String getProbeConfigurationId()
The OCID of the monitor or on-demand probe responsible for creating this result.- Returns:
- the value
-
getStartTime
public Double getStartTime()
The date and time the probe was executed, expressed in milliseconds since the POSIX epoch.This field is defined by the PerformanceResourceTiming interface of the W3C Resource Timing specification. For more information, see Resource Timing.
- Returns:
- the value
-
getTarget
public String getTarget()
The target hostname or IP address of the probe.- Returns:
- the value
-
getVantagePointName
public String getVantagePointName()
The name of the vantage point that executed the probe.- Returns:
- the value
-
getIsTimedOut
public Boolean getIsTimedOut()
True if the probe did not complete before the configured timeoutInSeconds value.- Returns:
- the value
-
getIsHealthy
public Boolean getIsHealthy()
True if the probe result is determined to be healthy based on probe type-specific criteria.For HTTP probes, a probe result is considered healthy if the HTTP response code is greater than or equal to 200 and less than 300.
- Returns:
- the value
-
getErrorCategory
public PingProbeResultSummary.ErrorCategory getErrorCategory()
The category of error if an error occurs executing the probe.The errorMessage field provides a message with the error details. * NONE - No error * DNS - DNS errors * TRANSPORT - Transport-related errors, for example a “TLS certificate expired” error. * NETWORK - Network-related errors, for example a “network unreachable” error. * SYSTEM - Internal system errors.
- Returns:
- the value
-
getErrorMessage
public String getErrorMessage()
The error information indicating why a probe execution failed.- Returns:
- the value
-
getProtocol
public PingProbeProtocol getProtocol()
-
getConnection
public Connection getConnection()
-
getDns
public DNS getDns()
-
getDomainLookupStart
public Double getDomainLookupStart()
The time immediately before the vantage point starts the domain name lookup for the resource.- Returns:
- the value
-
getDomainLookupEnd
public Double getDomainLookupEnd()
The time immediately before the vantage point finishes the domain name lookup for the resource.- Returns:
- the value
-
getLatencyInMs
public Double getLatencyInMs()
The latency of the probe execution, in milliseconds.- Returns:
- the value
-
getIcmpCode
public Integer getIcmpCode()
The ICMP code of the response message.This field is not used when the protocol is set to TCP. For more information on ICMP codes, see Internet Control Message Protocol (ICMP) Parameters.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-