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:
  • Constructor Details

    • ApplicationMetrics

      public ApplicationMetrics()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ApplicationMetrics clone()
      Overrides:
      clone in class Object