Class HttpProbeResultSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.healthchecks.model.HttpProbeResultSummary.Builder
-
- Enclosing class:
- HttpProbeResultSummary
public static class HttpProbeResultSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpProbeResultSummarybuild()HttpProbeResultSummary.BuilderconnectEnd(Double connectEnd)The time immediately after the vantage point finishes establishing the connection to the server to retrieve the resource.HttpProbeResultSummary.Builderconnection(TcpConnection connection)HttpProbeResultSummary.BuilderconnectStart(Double connectStart)The time immediately before the vantage point starts establishing the connection to the server to retrieve the resource.HttpProbeResultSummary.Buildercopy(HttpProbeResultSummary model)HttpProbeResultSummary.Builderdns(DNS dns)HttpProbeResultSummary.BuilderdomainLookupEnd(Double domainLookupEnd)The time immediately before the vantage point finishes the domain name lookup for the resource.HttpProbeResultSummary.BuilderdomainLookupStart(Double domainLookupStart)The time immediately before the vantage point starts the domain name lookup for the resource.HttpProbeResultSummary.Builderduration(Double duration)The total duration from start of request until response is fully consumed or the connection is closed.HttpProbeResultSummary.BuilderencodedBodySize(Integer encodedBodySize)The size, in octets, of the payload body prior to removing any applied content-codings.HttpProbeResultSummary.BuildererrorCategory(HttpProbeResultSummary.ErrorCategory errorCategory)The category of error if an error occurs executing the probe.HttpProbeResultSummary.BuildererrorMessage(String errorMessage)The error information indicating why a probe execution failed.HttpProbeResultSummary.BuilderfetchStart(Double fetchStart)The time immediately before the vantage point starts to fetch the resource.HttpProbeResultSummary.BuilderisHealthy(Boolean isHealthy)True if the probe result is determined to be healthy based on probe type-specific criteria.HttpProbeResultSummary.BuilderisTimedOut(Boolean isTimedOut)True if the probe did not complete before the configured timeoutInSeconds value.HttpProbeResultSummary.Builderkey(String key)A value identifying this specific probe result.HttpProbeResultSummary.BuilderprobeConfigurationId(String probeConfigurationId)The OCID of the monitor or on-demand probe responsible for creating this result.HttpProbeResultSummary.Builderprotocol(HttpProbeProtocol protocol)HttpProbeResultSummary.BuilderrequestStart(Double requestStart)The time immediately before the vantage point starts requesting the resource from the server.HttpProbeResultSummary.BuilderresponseEnd(Double responseEnd)The time immediately after the vantage point receives the last byte of the response or immediately before the transport connection is closed, whichever comes first.HttpProbeResultSummary.BuilderresponseStart(Double responseStart)The time immediately after the vantage point’s HTTP parser receives the first byte of the response.HttpProbeResultSummary.BuildersecureConnectionStart(Double secureConnectionStart)The time immediately before the vantage point starts the handshake process to secure the current connection.HttpProbeResultSummary.BuilderstartTime(Double startTime)The date and time the probe was executed, expressed in milliseconds since the POSIX epoch.HttpProbeResultSummary.BuilderstatusCode(Integer statusCode)The HTTP response status code.HttpProbeResultSummary.Buildertarget(String target)The target hostname or IP address of the probe.HttpProbeResultSummary.BuildervantagePointName(String vantagePointName)The name of the vantage point that executed the probe.
-
-
-
Method Detail
-
key
public HttpProbeResultSummary.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.
- Parameters:
key- the value to set- Returns:
- this builder
-
probeConfigurationId
public HttpProbeResultSummary.Builder probeConfigurationId(String probeConfigurationId)
The OCID of the monitor or on-demand probe responsible for creating this result.- Parameters:
probeConfigurationId- the value to set- Returns:
- this builder
-
startTime
public HttpProbeResultSummary.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.
- Parameters:
startTime- the value to set- Returns:
- this builder
-
target
public HttpProbeResultSummary.Builder target(String target)
The target hostname or IP address of the probe.- Parameters:
target- the value to set- Returns:
- this builder
-
vantagePointName
public HttpProbeResultSummary.Builder vantagePointName(String vantagePointName)
The name of the vantage point that executed the probe.- Parameters:
vantagePointName- the value to set- Returns:
- this builder
-
isTimedOut
public HttpProbeResultSummary.Builder isTimedOut(Boolean isTimedOut)
True if the probe did not complete before the configured timeoutInSeconds value.- Parameters:
isTimedOut- the value to set- Returns:
- this builder
-
isHealthy
public HttpProbeResultSummary.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.
- Parameters:
isHealthy- the value to set- Returns:
- this builder
-
errorCategory
public HttpProbeResultSummary.Builder errorCategory(HttpProbeResultSummary.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.
- Parameters:
errorCategory- the value to set- Returns:
- this builder
-
errorMessage
public HttpProbeResultSummary.Builder errorMessage(String errorMessage)
The error information indicating why a probe execution failed.- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
protocol
public HttpProbeResultSummary.Builder protocol(HttpProbeProtocol protocol)
-
connection
public HttpProbeResultSummary.Builder connection(TcpConnection connection)
-
dns
public HttpProbeResultSummary.Builder dns(DNS dns)
-
statusCode
public HttpProbeResultSummary.Builder statusCode(Integer statusCode)
The HTTP response status code.- Parameters:
statusCode- the value to set- Returns:
- this builder
-
domainLookupStart
public HttpProbeResultSummary.Builder domainLookupStart(Double domainLookupStart)
The time immediately before the vantage point starts the domain name lookup for the resource.- Parameters:
domainLookupStart- the value to set- Returns:
- this builder
-
domainLookupEnd
public HttpProbeResultSummary.Builder domainLookupEnd(Double domainLookupEnd)
The time immediately before the vantage point finishes the domain name lookup for the resource.- Parameters:
domainLookupEnd- the value to set- Returns:
- this builder
-
connectStart
public HttpProbeResultSummary.Builder connectStart(Double connectStart)
The time immediately before the vantage point starts establishing the connection to the server to retrieve the resource.- Parameters:
connectStart- the value to set- Returns:
- this builder
-
secureConnectionStart
public HttpProbeResultSummary.Builder secureConnectionStart(Double secureConnectionStart)
The time immediately before the vantage point starts the handshake process to secure the current connection.- Parameters:
secureConnectionStart- the value to set- Returns:
- this builder
-
connectEnd
public HttpProbeResultSummary.Builder connectEnd(Double connectEnd)
The time immediately after the vantage point finishes establishing the connection to the server to retrieve the resource.- Parameters:
connectEnd- the value to set- Returns:
- this builder
-
fetchStart
public HttpProbeResultSummary.Builder fetchStart(Double fetchStart)
The time immediately before the vantage point starts to fetch the resource.- Parameters:
fetchStart- the value to set- Returns:
- this builder
-
requestStart
public HttpProbeResultSummary.Builder requestStart(Double requestStart)
The time immediately before the vantage point starts requesting the resource from the server.- Parameters:
requestStart- the value to set- Returns:
- this builder
-
responseStart
public HttpProbeResultSummary.Builder responseStart(Double responseStart)
The time immediately after the vantage point’s HTTP parser receives the first byte of the response.- Parameters:
responseStart- the value to set- Returns:
- this builder
-
responseEnd
public HttpProbeResultSummary.Builder responseEnd(Double responseEnd)
The time immediately after the vantage point receives the last byte of the response or immediately before the transport connection is closed, whichever comes first.- Parameters:
responseEnd- the value to set- Returns:
- this builder
-
duration
public HttpProbeResultSummary.Builder duration(Double duration)
The total duration from start of request until response is fully consumed or the connection is closed.- Parameters:
duration- the value to set- Returns:
- this builder
-
encodedBodySize
public HttpProbeResultSummary.Builder encodedBodySize(Integer encodedBodySize)
The size, in octets, of the payload body prior to removing any applied content-codings.- Parameters:
encodedBodySize- the value to set- Returns:
- this builder
-
build
public HttpProbeResultSummary build()
-
copy
public HttpProbeResultSummary.Builder copy(HttpProbeResultSummary model)
-
-