Interface ApplicationMetrics.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<ApplicationMetrics.Builder,,- ApplicationMetrics> - SdkBuilder<ApplicationMetrics.Builder,,- ApplicationMetrics> - SdkPojo
- Enclosing class:
- ApplicationMetrics
- 
Method SummaryModifier and TypeMethodDescriptionThe amount of time that the metrics cover (usually 10 seconds).default ApplicationMetrics.Builderlatency(Consumer<Latency.Builder> latency) Represents the average latency for the slowest X percent of requests over the last 10 seconds.Represents the average latency for the slowest X percent of requests over the last 10 seconds.requestCount(Integer requestCount) Average number of requests handled by the web server per second over the last 10 seconds.default ApplicationMetrics.BuilderstatusCodes(Consumer<StatusCodes.Builder> statusCodes) Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.statusCodes(StatusCodes statusCodes) Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
durationThe 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.
 
- 
requestCountAverage 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.
 
- 
statusCodesRepresents 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.
 
- 
statusCodesRepresents the percentage of requests over the last 10 seconds that resulted in each type of status code response. This is a convenience method that creates an instance of theStatusCodes.Builderavoiding the need to create one manually viaStatusCodes.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatusCodes(StatusCodes).- Parameters:
- statusCodes- a consumer that will call methods on- StatusCodes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
latencyRepresents 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.
 
- 
latencyRepresents 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 method that creates an instance of theLatency.Builderavoiding the need to create one manually viaLatency.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolatency(Latency).- Parameters:
- latency- a consumer that will call methods on- Latency.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-