실험 API (GitLab 팀 전용)
Tier: Free, Premium, Ultimate
Offering: GitLab.com
이 API는 GitLab에서 정의된 A/B 실험 목록을 가져오기 위한 것입니다.
사용자는 API에 접근하기 위해 GitLab 팀 멤버여야 합니다.
모든 실험 목록 가져오기
모든 실험의 목록을 가져옵니다. 각 실험은 전 세계적으로 활성화되어 있는지 또는 특정 컨텍스트에서만 활성화되어 있는지를 나타내는 enabled
상태를 가지고 있습니다.
GET /experiments
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/experiments"
예제 응답:
[
{
"key": "code_quality_walkthrough",
"definition": {
"name": "code_quality_walkthrough",
"introduced_by_url": "https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58900",
"rollout_issue_url": "https://gitlab.com/gitlab-org/gitlab/-/issues/327229",
"milestone": "13.12",
"type": "experiment",
"group": "group::activation",
"default_enabled": false
},
"current_status": {
"state": "conditional",
"gates": [
{
"key": "boolean",
"value": false
},
{
"key": "percentage_of_actors",
"value": 25
}
]
}
},
{
"key": "ci_runner_templates",
"definition": {
"name": "ci_runner_templates",
"introduced_by_url": "https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58357",
"rollout_issue_url": "https://gitlab.com/gitlab-org/gitlab/-/issues/326725",
"milestone": "14.0",
"type": "experiment",
"group": "group::activation",
"default_enabled": false
},
"current_status": {
"state": "off",
"gates": [
{
"key": "boolean",
"value": false
}
]
}
}
]