Use this information to get a single metrics recorded during an execution of a scenario.
Metrics are recorded only if a step has been executed; this initiates recording.
The following elements are described:
Request
Aspect |
Value |
Endpoint URL |
api/behaviour/executions/{executionId}/metrics/{metricId} |
HTTP Method |
GET |
Path parameters
Field |
Description |
Mandatory |
executionId |
ID of the execution |
Yes |
metricId |
ID of the metric |
Yes |
Body
Field |
Description |
id |
ID of the metric (unique within the context of the execution) |
name |
Name of the metric |
executionId |
ID of the execution this metric belongs to |
metricThresholds |
List of any thresholds set on this metric. Only included if a step defining a metric has been
executed in a scenario. |
data |
Key/value pairs of any values recorded, keyed by their timestamp |
Example
{
"data": {
"1572260858613": "5",
"1572260865985": "7"
},
"executionId": "7c132ad3-f126-2c1d-7fe1-42ac6234e145",
"id": "6f122fa4-a219-2a2f-7be5-81bd2346b010",
"metricThresholds": [
{
"endTime": 1572260865985,
"startTime": 1572260858613,
"type": "less than",
"value": 10
}
],
"name": "Example Metric"
}