public static interface ApplicationMetrics.Builder extends CopyableBuilder<ApplicationMetrics.Builder,ApplicationMetrics>
Modifier and Type | Method and Description |
---|---|
ApplicationMetrics.Builder |
duration(Integer duration)
The amount of time that the metrics cover (usually 10 seconds).
|
default ApplicationMetrics.Builder |
latency(Consumer<Latency.Builder> latency)
Represents the average latency for the slowest X percent of requests over the last 10 seconds.
|
ApplicationMetrics.Builder |
latency(Latency latency)
Represents the average latency for the slowest X percent of requests over the last 10 seconds.
|
ApplicationMetrics.Builder |
requestCount(Integer requestCount)
Average number of requests handled by the web server per second over the last 10 seconds.
|
default ApplicationMetrics.Builder |
statusCodes(Consumer<StatusCodes.Builder> statusCodes)
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code
response.
|
ApplicationMetrics.Builder |
statusCodes(StatusCodes statusCodes)
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code
response.
|
copy
applyMutation, build
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
).
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
).ApplicationMetrics.Builder requestCount(Integer requestCount)
Average number of requests handled by the web server per second over the last 10 seconds.
requestCount
- Average number of requests handled by the web server per second over the last 10 seconds.ApplicationMetrics.Builder statusCodes(StatusCodes statusCodes)
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
statusCodes
- Represents the percentage of requests over the last 10 seconds that resulted in each type of status
code response.default ApplicationMetrics.Builder statusCodes(Consumer<StatusCodes.Builder> statusCodes)
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
This is a convenience that creates an instance of theStatusCodes.Builder
avoiding the need to create
one manually via StatusCodes.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to statusCodes(StatusCodes)
.statusCodes
- a consumer that will call methods on StatusCodes.Builder
statusCodes(StatusCodes)
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.
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.default ApplicationMetrics.Builder latency(Consumer<Latency.Builder> 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.
This is a convenience that creates an instance of theLatency.Builder
avoiding the need to create one
manually via Latency.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to latency(Latency)
.latency
- a consumer that will call methods on Latency.Builder
latency(Latency)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.