Codewerk
runbook draft
For every alert rule (or the one you name) it extracts the expression, comparison and threshold, the for duration, the metrics involved, grouping labels, severity and existing annotations, and derives diagnosis queries: the expression without the comparison to see the current value, and per metric a rate() for counters (_total, _count, _sum) or the raw series otherwise. The Markdown runbook contains these facts plus clearly marked TODO sections for impact, mitigation and escalation. It does.
POST https://code.halowerk.com/v1/runbook-draftInputs
| Field | Type | Required | Description |
|---|---|---|---|
| rules | string | Yes | |
| alert | string | No | |
| dashboard_url | string | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"rules"
],
"properties": {
"rules": {
"type": "string",
"minLength": 10,
"maxLength": 1000000
},
"alert": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"dashboard_url": {
"type": "string",
"format": "uri",
"maxLength": 500
}
}
}Published input example
{
"rules": "groups:\n - name: api\n rules:\n - alert: HighErrorRate\n expr: sum by (job) (rate(http_requests_total{status=~\"5..\"}[5m])) / sum by (job) (rate(http_requests_total[5m])) > 0.05\n for: 10m\n labels: { severity: page }\n",
"alert": "HighErrorRate"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea