public class SecurityCheckResultMetric
extends java.lang.Object
implements org.aerogear.mobile.core.metrics.Metrics<org.json.JSONArray>
SecurityCheckResult. This is intended to be used with the
MetricsService.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTIFIER |
static java.lang.String |
KEY_TYPE |
static java.lang.String |
KEY_VALUE |
| Constructor and Description |
|---|
SecurityCheckResultMetric(java.lang.Iterable<SecurityCheckResult> results)
Creates a SecurityCheckResultMetric object.
|
SecurityCheckResultMetric(SecurityCheckResult... results)
Creates a SecurityCheckResultMetric object.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
data()
Gets the data from the result which contains whether the check passed or not.
|
java.lang.String |
identifier()
Gets the name of the check performed.
|
public static final java.lang.String IDENTIFIER
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_VALUE
public SecurityCheckResultMetric(@NonNull
java.lang.Iterable<SecurityCheckResult> results)
results - the list of SecurityCheckResult of the tests executedjava.lang.IllegalArgumentException - if result is nullpublic SecurityCheckResultMetric(@NonNull
SecurityCheckResult... results)
results - the list of SecurityCheckResult of the tests executedjava.lang.IllegalArgumentException - if result is nullpublic java.lang.String identifier()
identifier in interface org.aerogear.mobile.core.metrics.Metrics<org.json.JSONArray>String name of security checkpublic org.json.JSONArray data()
data in interface org.aerogear.mobile.core.metrics.Metrics<org.json.JSONArray>JSONArray containing the results for self-defence checks