public static class PingProbeResultSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PingProbeResultSummary |
build() |
PingProbeResultSummary.Builder |
connection(Connection connection) |
PingProbeResultSummary.Builder |
copy(PingProbeResultSummary model) |
PingProbeResultSummary.Builder |
dns(DNS dns) |
PingProbeResultSummary.Builder |
domainLookupEnd(Double domainLookupEnd)
The time immediately before the vantage point finishes the domain name lookup for the
resource.
|
PingProbeResultSummary.Builder |
domainLookupStart(Double domainLookupStart)
The time immediately before the vantage point starts the domain name lookup for the
resource.
|
PingProbeResultSummary.Builder |
errorCategory(PingProbeResultSummary.ErrorCategory errorCategory)
The category of error if an error occurs executing the probe.
|
PingProbeResultSummary.Builder |
errorMessage(String errorMessage)
The error information indicating why a probe execution failed.
|
PingProbeResultSummary.Builder |
icmpCode(Integer icmpCode)
The ICMP code of the response message.
|
PingProbeResultSummary.Builder |
isHealthy(Boolean isHealthy)
True if the probe result is determined to be healthy based on probe type-specific
criteria.
|
PingProbeResultSummary.Builder |
isTimedOut(Boolean isTimedOut)
True if the probe did not complete before the configured
timeoutInSeconds value. |
PingProbeResultSummary.Builder |
key(String key)
A value identifying this specific probe result.
|
PingProbeResultSummary.Builder |
latencyInMs(Double latencyInMs)
The latency of the probe execution, in milliseconds.
|
PingProbeResultSummary.Builder |
probeConfigurationId(String probeConfigurationId)
The OCID of the monitor or on-demand probe responsible for creating this result.
|
PingProbeResultSummary.Builder |
protocol(PingProbeProtocol protocol) |
PingProbeResultSummary.Builder |
startTime(Double startTime)
The date and time the probe was executed, expressed in milliseconds since the POSIX
epoch.
|
PingProbeResultSummary.Builder |
target(String target)
The target hostname or IP address of the probe.
|
PingProbeResultSummary.Builder |
vantagePointName(String vantagePointName)
The name of the vantage point that executed the probe.
|
public PingProbeResultSummary.Builder key(String key)
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.
key
- the value to setpublic PingProbeResultSummary.Builder probeConfigurationId(String probeConfigurationId)
The OCID of the monitor or on-demand probe responsible for creating this result.
probeConfigurationId
- the value to setpublic PingProbeResultSummary.Builder startTime(Double startTime)
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.
startTime
- the value to setpublic PingProbeResultSummary.Builder target(String target)
The target hostname or IP address of the probe.
target
- the value to setpublic PingProbeResultSummary.Builder vantagePointName(String vantagePointName)
The name of the vantage point that executed the probe.
vantagePointName
- the value to setpublic PingProbeResultSummary.Builder isTimedOut(Boolean isTimedOut)
True if the probe did not complete before the configured timeoutInSeconds
value.
isTimedOut
- the value to setpublic PingProbeResultSummary.Builder isHealthy(Boolean isHealthy)
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.
isHealthy
- the value to setpublic PingProbeResultSummary.Builder errorCategory(PingProbeResultSummary.ErrorCategory errorCategory)
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.
errorCategory
- the value to setpublic PingProbeResultSummary.Builder errorMessage(String errorMessage)
The error information indicating why a probe execution failed.
errorMessage
- the value to setpublic PingProbeResultSummary.Builder protocol(PingProbeProtocol protocol)
public PingProbeResultSummary.Builder connection(Connection connection)
public PingProbeResultSummary.Builder dns(DNS dns)
public PingProbeResultSummary.Builder domainLookupStart(Double domainLookupStart)
The time immediately before the vantage point starts the domain name lookup for the resource.
domainLookupStart
- the value to setpublic PingProbeResultSummary.Builder domainLookupEnd(Double domainLookupEnd)
The time immediately before the vantage point finishes the domain name lookup for the resource.
domainLookupEnd
- the value to setpublic PingProbeResultSummary.Builder latencyInMs(Double latencyInMs)
The latency of the probe execution, in milliseconds.
latencyInMs
- the value to setpublic PingProbeResultSummary.Builder icmpCode(Integer icmpCode)
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.
icmpCode
- the value to setpublic PingProbeResultSummary build()
public PingProbeResultSummary.Builder copy(PingProbeResultSummary model)
Copyright © 2016–2024. All rights reserved.