POST /mltk/experiments/{experiment_id}/history
POST /mltk/experiments/{experiment_id}/history
Append a history record.
Description. Append a history record. Validated against bin/experiment/experiment_history_schema.json.
Required fields.
| Field | Type | Notes |
|---|---|---|
sid |
string | Splunk search ID for the run |
searchStages |
array | Snapshot of stages at run time |
from_schedule |
bool | Defaults to false if omitted |
Server-injected fields. experimentId (from URL), _time (current epoch), user and app (from searchinfo). Any stats_* fields in the body are also persisted.
Example.
curl -sk -u "$SPLUNK_USER:$SPLUNK_PASSWORD" -X POST
-H "Content-Type: application/json"
--data @- "$SPLUNK_HOST/servicesNS/nobody/Splunk_ML_Toolkit/mltk/experiments/abc123def456abc123def456abc12345/history?output_mode=json" <<'JSON'
{
"sid": "1715425200.999",
"from_schedule": false,
"searchStages": [],
"stats_rmse": 0.12
}
JSON