public interface StatsReporter
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_COUNT
The total count of extracted entities.
|
static String |
EXTRACTION_REQUESTS
The count of entity extraction requests.
|
| Modifier and Type | Method and Description |
|---|---|
void |
increment(String metricName)
Increment a value.
|
void |
increment(String metricName,
long value)
Increments a value.
|
void |
recordEntityExtraction(Entity entity,
ModelManifest modelManifest)
Record an entity extraction.
|
void |
time(String metricName,
long elapsedTime)
Report an elapsed time.
|
static final String EXTRACTION_REQUESTS
static final String ENTITY_COUNT
void recordEntityExtraction(Entity entity, ModelManifest modelManifest)
entity - The extracted entity.modelManifest - The StandardModelManifest that extracted the entity.void increment(String metricName)
metricName - The name of the metric.void increment(String metricName, long value)
metricName - The name of the metric.value - The value.void time(String metricName, long elapsedTime)
metricName - The name of the metric.elapsedTime - The elapsed time.Copyright © 2018. All rights reserved.