import requests
url = "https://{FUSION HOST}/api/experiments/{id}/history"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"experiment": {
"id": "<string>",
"description": "<string>",
"uniqueIdParameter": "<string>",
"baseSignalsCollection": "<string>",
"variants": [
{
"id": "<string>",
"name": "<string>",
"collection": "<string>",
"queryPipeline": "<string>",
"params": [
{
"key": "<string>",
"value": "<string>",
"policy": "replace"
}
],
"weight": 123
}
],
"automaticallyAdjustTraffic": true,
"enabled": true,
"startTimestamp": "2023-11-07T05:31:56Z",
"runId": "<string>",
"metrics": [
{
"type": "<string>",
"name": "<string>",
"description": "<string>",
"jobId": "<string>",
"binary": true,
"primary": true
}
]
},
"experimentStartDate": "2023-11-07T05:31:56Z",
"experimentEndDate": "2023-11-07T05:31:56Z"
}
]Get the job histories for an experiment
import requests
url = "https://{FUSION HOST}/api/experiments/{id}/history"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"experiment": {
"id": "<string>",
"description": "<string>",
"uniqueIdParameter": "<string>",
"baseSignalsCollection": "<string>",
"variants": [
{
"id": "<string>",
"name": "<string>",
"collection": "<string>",
"queryPipeline": "<string>",
"params": [
{
"key": "<string>",
"value": "<string>",
"policy": "replace"
}
],
"weight": 123
}
],
"automaticallyAdjustTraffic": true,
"enabled": true,
"startTimestamp": "2023-11-07T05:31:56Z",
"runId": "<string>",
"metrics": [
{
"type": "<string>",
"name": "<string>",
"description": "<string>",
"jobId": "<string>",
"binary": true,
"primary": true
}
]
},
"experimentStartDate": "2023-11-07T05:31:56Z",
"experimentEndDate": "2023-11-07T05:31:56Z"
}
]Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The experiment ID.
OK
Show child attributes
The experiment ID.
A description of this experiment.
The name of the request parameter containing the user ID.
Signals resulting from requests that flow through this experiment will go into the signal collection associated with this base collection.
The variants belonging to this experiment.
Show child attributes
The experiment variant ID.
The experiment variant name.
The data collection associated with this experiment variant.
The query pipeline associated with this experiment variant.
This variant's traffic weight.
true to enable multi-armed bandits; in that case, there is no need to specify a traffic weight for each variant.
True if this experiment is enabled.
The date and time when the experiment was launched.
The experiment run ID.
Experiment metrics.
Show child attributes
The experiment start date.
The experiment end date.
Was this page helpful?