Schedules API
Generated from servtuner commit 5b46cdad0e5c.
GET /schedules
Section titled “GET /schedules”Schedules, newest first.
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of ScheduleResource |
POST /schedules
Section titled “POST /schedules”Keep a RunSpec to launch every every_hours; its first run is due at start_at.
Request body: ScheduleCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | ScheduleResource |
422 |
Validation Error | HTTPValidationError |
DELETE /schedules/{schedule_id}
Section titled “DELETE /schedules/{schedule_id}”Delete the schedule; its runs are kept.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
schedule_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |
GET /schedules/{schedule_id}
Section titled “GET /schedules/{schedule_id}”The schedule with its runs, each judged against the baseline’s SLO-max.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
schedule_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ScheduleDetail |
422 |
Validation Error | HTTPValidationError |
PATCH /schedules/{schedule_id}
Section titled “PATCH /schedules/{schedule_id}”Changes a schedule.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
schedule_id |
path | string |
Yes |
Request body: ScheduleUpdate (application/json)
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ScheduleResource |
422 |
Validation Error | HTTPValidationError |
POST /schedules/{schedule_id}/trigger
Section titled “POST /schedules/{schedule_id}/trigger”Launch the schedule’s RunSpec now; 409 while its last run is unfinished.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
schedule_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | RunResource |
422 |
Validation Error | HTTPValidationError |