Skip to main content
POST
/
v1
/
observe
/
drift
Check Drift
curl --request POST \
  --url https://api.example.com/v1/observe/drift \
  --header 'Content-Type: application/json' \
  --data '
{
  "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "baseline_report_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
import requests

url = "https://api.example.com/v1/observe/drift"

payload = {
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"baseline_report_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
dataset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
baseline_report_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};

fetch('https://api.example.com/v1/observe/drift', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "baseline_report_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "current_report_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "severity": "<string>",
  "drift_scores": {
    "overall_delta": 123,
    "baseline_overall": 123,
    "current_overall": 123,
    "coverage_delta": 123,
    "physics_delta": 123,
    "distribution_delta": 123,
    "sim_to_real_delta": 123
  },
  "error": "<string>",
  "completed_at": "2023-11-07T05:31:56Z"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Headers

authorization
string | null

Body

application/json
dataset_id
string<uuid>
required
baseline_report_id
string<uuid>
required

Response

Successful Response

id
string<uuid>
required
dataset_id
string<uuid>
required
baseline_report_id
string<uuid>
required
status
string
required
created_at
string<date-time>
required
current_report_id
string<uuid> | null
severity
string | null
drift_scores
DriftScores · object | null
error
string | null
completed_at
string<date-time> | null