@Target(value={ANNOTATION_TYPE,METHOD,TYPE}) @Retention(value=RUNTIME) @Documented @Repeatable(value=StatisticsReportList.class) @API(status=MAINTAINED, since="1.2.3") public @interface StatisticsReport
There are three usage scenarios:
@StatisticsReport(STANDARD)
to enable the standard reporting.
This is the default anyway.
@StatisticsReport(OFF)
to disable statistics reporting.
@StatisticsReport(format = YourReportFormat.class)
to plug in your own format.
This annotation is repeatable when used on property methods. In this case use label() to specify for which statistics collection the given report format shall be used.
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
ALL_LABELS |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends StatisticsReportFormat> |
format
The format to be used for publishing statistics reports
in the annotated property.
|
java.lang.String |
label
The statistics label to which the format in this annotation should be applied.
|
boolean |
onFailureOnly
Set to true when only failing properties should report their statistics
|
StatisticsReport.StatisticsReportMode |
value |
public abstract StatisticsReport.StatisticsReportMode value
public abstract java.lang.Class<? extends StatisticsReportFormat> format