Class PingProbeResultSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        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.

        Parameters:
        key - the value to set
        Returns:
        this builder
      • probeConfigurationId

        public PingProbeResultSummary.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 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.

        Parameters:
        startTime - the value to set
        Returns:
        this builder
      • target

        public PingProbeResultSummary.Builder target​(String target)
        The target hostname or IP address of the probe.
        Parameters:
        target - the value to set
        Returns:
        this builder
      • vantagePointName

        public PingProbeResultSummary.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 PingProbeResultSummary.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 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.

        Parameters:
        isHealthy - the value to set
        Returns:
        this builder
      • errorCategory

        public 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.

        Parameters:
        errorCategory - the value to set
        Returns:
        this builder
      • errorMessage

        public PingProbeResultSummary.Builder errorMessage​(String errorMessage)
        The error information indicating why a probe execution failed.
        Parameters:
        errorMessage - the value to set
        Returns:
        this builder
      • domainLookupStart

        public PingProbeResultSummary.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 PingProbeResultSummary.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
      • latencyInMs

        public PingProbeResultSummary.Builder latencyInMs​(Double latencyInMs)
        The latency of the probe execution, in milliseconds.
        Parameters:
        latencyInMs - the value to set
        Returns:
        this builder