Jagger
|
Implementation of the MetricService
.
More...
Public Member Functions | |
void | createMetric (MetricDescription metricDescription) |
Creates metric. More... | |
DefaultMetricService (String sessionId, String taskId, NodeContext context) | |
void | flush () |
Writes all values to file system. More... | |
boolean | isAvailable () |
Reports if service is available. More... | |
void | saveValue (String metricId, Number value) |
Saves metric value during test run. More... | |
void | saveValue (String metricId, Number value, long timeStamp) |
Saves metric value with specific timestamp during test run. More... | |
Static Public Attributes | |
static final String | METRIC_MARKER = "METRIC" |
Protected Attributes | |
NodeContext | context |
String | sessionId |
String | taskId |
Implementation of the MetricService
.
Service gives an ability to create and describe metrics, save metric values.
Where this service is available you can find in chapter: Services
Below is example of creating metric with metric service. MetricDescription is used to setup how metric will be aggregated and stored
In the example we are creating metric before running performance test and saving values on every successful request to the SUT. After test is over, results for this metric will be aggregated by multiple aggregators. More details about metrics collection you can find in the chapter Collecting metrics
Definition at line 29 of file DefaultMetricService.java.