Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
150 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
metrics-annotation/src/main/java/com/codahale/metrics/annotation/ResponseMeteredLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.codahale.metrics.annotation; | ||
|
||
/** | ||
* ResponseMeteredLevel is a parameter for the ResponseMetered annotation. The constants of this enumerated type | ||
* decide what meters are included when a class or method is annotated with the ResponseMetered annotation. | ||
* | ||
*/ | ||
public enum ResponseMeteredLevel { | ||
/** | ||
* Will include meters for 1xx/2xx/3xx/4xx/5xx responses | ||
*/ | ||
COARSE, | ||
|
||
/** | ||
* Will include meters for every response code | ||
*/ | ||
DETAILED, | ||
|
||
/** | ||
* Will include meters for every response code in addition to top level 1xx/2xx/3xx/4xx/5xx responses | ||
*/ | ||
ALL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.