Class ApplicationMetrics
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.ApplicationMetrics
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ApplicationMetrics extends Object implements Serializable, Cloneable
Represents the application metrics for a specified environment.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApplicationMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationMetricsclone()booleanequals(Object obj)IntegergetDuration()The amount of time that the metrics cover (usually 10 seconds).LatencygetLatency()Represents the average latency for the slowest X percent of requests over the last 10 seconds.IntegergetRequestCount()Average number of requests handled by the web server per second over the last 10 seconds.StatusCodesgetStatusCodes()Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.inthashCode()voidsetDuration(Integer duration)The amount of time that the metrics cover (usually 10 seconds).voidsetLatency(Latency latency)Represents the average latency for the slowest X percent of requests over the last 10 seconds.voidsetRequestCount(Integer requestCount)Average number of requests handled by the web server per second over the last 10 seconds.voidsetStatusCodes(StatusCodes statusCodes)Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.StringtoString()Returns a string representation of this object; useful for testing and debugging.ApplicationMetricswithDuration(Integer duration)The amount of time that the metrics cover (usually 10 seconds).ApplicationMetricswithLatency(Latency latency)Represents the average latency for the slowest X percent of requests over the last 10 seconds.ApplicationMetricswithRequestCount(Integer requestCount)Average number of requests handled by the web server per second over the last 10 seconds.ApplicationMetricswithStatusCodes(StatusCodes statusCodes)Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
-
-
-
Method Detail
-
setDuration
public void setDuration(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).
-
getDuration
public Integer getDuration()
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:
- 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).
-
withDuration
public ApplicationMetrics withDuration(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.
-
setRequestCount
public void setRequestCount(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.
-
getRequestCount
public Integer getRequestCount()
Average number of requests handled by the web server per second over the last 10 seconds.
- Returns:
- Average number of requests handled by the web server per second over the last 10 seconds.
-
withRequestCount
public ApplicationMetrics withRequestCount(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.
-
setStatusCodes
public void setStatusCodes(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.
-
getStatusCodes
public StatusCodes getStatusCodes()
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
- Returns:
- Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
-
withStatusCodes
public ApplicationMetrics withStatusCodes(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.
-
setLatency
public void setLatency(Latency latency)
Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one milisecond 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 milisecond resolution.
-
getLatency
public Latency getLatency()
Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one milisecond resolution.
- Returns:
- Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one milisecond resolution.
-
withLatency
public ApplicationMetrics withLatency(Latency latency)
Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one milisecond 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 milisecond resolution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ApplicationMetrics clone()
-
-