Experiment Main Metrics DATA
POSThttps://sandbox.absmartly.com/v1/experiments/:experimentId/metrics/main
Required Permissions: Experiment Get or Experiment Admin
Request
Path Parameters
Possible values: >= 1
The id of the experiment that you want the main metrics of.
- application/json
Body
required
The parameters to filter the main metrics by. If no filtering is required then filters can be an empty object
filters object
Responses
- 200
A JSON Object with the current values of the experiment's main metrics. The object has three properties,
columnNames, columnTypes and rows. columnNames is an array of strings which identifies which
columns are which in the rows[][]. columnTypes is an array of strings which identifies the types of
data in the rows[][]. rows is an array of arrays which contain the current main metric data for each of
the experiment's variants. The column names are defined as the following:
Regular Columns:
variant- The variant that this row describes. (0, 1, 2 or 3).first_exposure_at- The date of the first exposure of this variant in milliseconds since epoch.last_exposure_at- The date of the last exposure of this variant in milliseconds since epoch.unit_count- The number of units that have been exposed to this variant.
Dynamic Columns:
metric_${metric_id}- The current value of the metric with the id of${metric_id}.metric_${metric_id}_mean- The mean value of the metric with the id of${metric_id}.metric_${metric_id}_var- The variance of the metric with the id of${metric_id}.metric_${metric_id}_pvalue- The p-value of the metric with the id of${metric_id}.metric_${metric_id}_impact- The current impact of the metric with the id of${metric_id}.metric_${metric_id}_impact_ci_lower- The lower bound of the confidence interval of the impact of the metric with the id of${metric_id}.metric_${metric_id}_impact_ci_upper- The upper bound of the confidence interval of the impact of the metric with the id of${metric_id}.
The columns may come in a different order than the one listed above. It's important to use the columnNames array to identify the index of the column you want to use.
- application/json
- Schema
- Example (from schema)
Schema
{
"columnNames": [
"string"
],
"columnTypes": [
"string"
],
"rows": [
[
0
]
]
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: A User API Key for API authorization. **Must be in the format "Api-Key your_user_api_key"**scheme: ^Api-Key\s\S+
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://sandbox.absmartly.com/v1/experiments/:experimentId/metrics/main' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"filters": {
"segments": [
{
"segment_id": 1,
"operator": "not_in",
"values": [
"absmartly-javascript-sdk"
]
}
]
}
}'