Log maintenance
log_maintenanceLog a cleaning or maintenance job against a piece of equipment. A task that takes the thing apart opens a calibration epoch, and every recipe locked before it is read through that epoch's offset — so record the offset here if you counted the clicks while reassembling, which is the one moment anybody actually knows it. Read the available tasks, their intervals and their due state from list_grinders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional — what you did, and anything that surprised you | |
| task | Yes | Which maintenance job was performed | |
| details | No | Fields specific to this task. Which ones a task takes is published as details_fields in the task catalog on list_grinders; a burr clean takes none | |
| evidence | No | One line recording what the measurement rested on, e.g. "Counted 6 clicks coarser at reassembly." | |
| equipment_id | Yes | The ID of that piece of equipment | |
| offset_value | No | The correction, if you measured it now: clicks to ADD to a pre-clean reading to get the same grind today, signed along the collar's own number direction. Omit it and the epoch stays unmeasured, which is a state the app shows rather than a zero it assumes | |
| performed_at | No | When it was done (ISO 8601 or YYYY-MM-DD HH:MM:SS, UTC). Defaults to now; backdating is fine | |
| disturbs_zero | No | Whether this job disturbed the reference the stored numbers are read against — for a burr clean, whether the burrs actually came out. Defaults to the task's own answer; send 0 for a wipe-down that left the collar alone | |
| offset_source | No | How the offset was arrived at: pull (a reference shot), counted (clicks counted at reassembly), typed (asserted directly) | |
| equipment_kind | Yes | Which kind of equipment this job was done on |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | ||
| message | Yes | ||
| entry_id | Yes |