Interface ApplicationMetrics.Builder

    • Method Detail

      • duration

        ApplicationMetrics.Builder duration​(Integer duration)

        The amount of time that the metrics cover (usually 10 seconds). For example, you might have 5 requests ( request_count) within the most recent time slice of 10 seconds (duration).

        Parameters:
        duration - The amount of time that the metrics cover (usually 10 seconds). For example, you might have 5 requests (request_count) within the most recent time slice of 10 seconds (duration).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • requestCount

        ApplicationMetrics.Builder requestCount​(Integer requestCount)

        Average number of requests handled by the web server per second over the last 10 seconds.

        Parameters:
        requestCount - Average number of requests handled by the web server per second over the last 10 seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statusCodes

        ApplicationMetrics.Builder statusCodes​(StatusCodes statusCodes)

        Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.

        Parameters:
        statusCodes - Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • latency

        ApplicationMetrics.Builder latency​(Latency latency)

        Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.

        Parameters:
        latency - Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.