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 ApplicationMetrics
clone()
boolean
equals(Object obj)
Integer
getDuration()
The amount of time that the metrics cover (usually 10 seconds).Latency
getLatency()
Represents the average latency for the slowest X percent of requests over the last 10 seconds.Integer
getRequestCount()
Average number of requests handled by the web server per second over the last 10 seconds.StatusCodes
getStatusCodes()
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.int
hashCode()
void
setDuration(Integer duration)
The amount of time that the metrics cover (usually 10 seconds).void
setLatency(Latency latency)
Represents the average latency for the slowest X percent of requests over the last 10 seconds.void
setRequestCount(Integer requestCount)
Average number of requests handled by the web server per second over the last 10 seconds.void
setStatusCodes(StatusCodes statusCodes)
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.String
toString()
Returns a string representation of this object; useful for testing and debugging.ApplicationMetrics
withDuration(Integer duration)
The amount of time that the metrics cover (usually 10 seconds).ApplicationMetrics
withLatency(Latency latency)
Represents the average latency for the slowest X percent of requests over the last 10 seconds.ApplicationMetrics
withRequestCount(Integer requestCount)
Average number of requests handled by the web server per second over the last 10 seconds.ApplicationMetrics
withStatusCodes(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ApplicationMetrics clone()
-
-