Class StatusCodes
- All Implemented Interfaces:
Serializable, Cloneable
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response. For more information, see Status Code Definitions.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.inthashCode()voidsetStatus2xx(Integer status2xx) The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.voidsetStatus3xx(Integer status3xx) The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.voidsetStatus4xx(Integer status4xx) The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.voidsetStatus5xx(Integer status5xx) The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.toString()Returns a string representation of this object; useful for testing and debugging.withStatus2xx(Integer status2xx) The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.withStatus3xx(Integer status3xx) The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.withStatus4xx(Integer status4xx) The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.withStatus5xx(Integer status5xx) The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
-
Constructor Details
-
StatusCodes
public StatusCodes()
-
-
Method Details
-
setStatus2xx
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
- Parameters:
status2xx- The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
-
getStatus2xx
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
- Returns:
- The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
-
withStatus2xx
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
- Parameters:
status2xx- The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus3xx
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
- Parameters:
status3xx- The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
-
getStatus3xx
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
- Returns:
- The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
-
withStatus3xx
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
- Parameters:
status3xx- The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus4xx
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
- Parameters:
status4xx- The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
-
getStatus4xx
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
- Returns:
- The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
-
withStatus4xx
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
- Parameters:
status4xx- The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus5xx
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
- Parameters:
status5xx- The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
-
getStatus5xx
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
- Returns:
- The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
-
withStatus5xx
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
- Parameters:
status5xx- The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-