Interface EdgeStatistics.Builder

All Superinterfaces:
Buildable, CopyableBuilder<EdgeStatistics.Builder,EdgeStatistics>, SdkBuilder<EdgeStatistics.Builder,EdgeStatistics>, SdkPojo
Enclosing class:
EdgeStatistics

public static interface EdgeStatistics.Builder extends SdkPojo, CopyableBuilder<EdgeStatistics.Builder,EdgeStatistics>
  • Method Details

    • okCount

      EdgeStatistics.Builder okCount(Long okCount)

      The number of requests that completed with a 2xx Success status code.

      Parameters:
      okCount - The number of requests that completed with a 2xx Success status code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorStatistics

      EdgeStatistics.Builder errorStatistics(ErrorStatistics errorStatistics)

      Information about requests that failed with a 4xx Client Error status code.

      Parameters:
      errorStatistics - Information about requests that failed with a 4xx Client Error status code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorStatistics

      default EdgeStatistics.Builder errorStatistics(Consumer<ErrorStatistics.Builder> errorStatistics)

      Information about requests that failed with a 4xx Client Error status code.

      This is a convenience method that creates an instance of the ErrorStatistics.Builder avoiding the need to create one manually via ErrorStatistics.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errorStatistics(ErrorStatistics).

      Parameters:
      errorStatistics - a consumer that will call methods on ErrorStatistics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • faultStatistics

      EdgeStatistics.Builder faultStatistics(FaultStatistics faultStatistics)

      Information about requests that failed with a 5xx Server Error status code.

      Parameters:
      faultStatistics - Information about requests that failed with a 5xx Server Error status code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • faultStatistics

      default EdgeStatistics.Builder faultStatistics(Consumer<FaultStatistics.Builder> faultStatistics)

      Information about requests that failed with a 5xx Server Error status code.

      This is a convenience method that creates an instance of the FaultStatistics.Builder avoiding the need to create one manually via FaultStatistics.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to faultStatistics(FaultStatistics).

      Parameters:
      faultStatistics - a consumer that will call methods on FaultStatistics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • totalCount

      EdgeStatistics.Builder totalCount(Long totalCount)

      The total number of completed requests.

      Parameters:
      totalCount - The total number of completed requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalResponseTime

      EdgeStatistics.Builder totalResponseTime(Double totalResponseTime)

      The aggregate response time of completed requests.

      Parameters:
      totalResponseTime - The aggregate response time of completed requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.