ALL

Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.

contracts/schemas/fleet-e2e-block.schema.json

SHA-256: 75b683d653ae2eb61946c65f4b9097647a30f16f4e06de3302e3f330ea688264
25 líneas · 2350 bytes · Ver en GitHub

1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://all-mcp.fyi/contracts/v2/fleet-e2e-block.schema.json",
4 "title": "The `e2e` block of the fleet heartbeat (POST /v1/devices/heartbeat). The five base keys and the optional counters stay as they are (a control plane older than 2.0 refuses any other key with invalid_fleet_health_shape and the device falls back to the base shape); this object is one more optional key. Closed shape: no label, host, device id, address or free text. The Worker keeps only the latest block of each computer (overwritten) and counts over a 24-hour window from list metadata, with no identifier in any count (the contract, WP35 notes). bytes are the device's own totals for period_s. window is the device's random id for that byte window: a resend of an unaccepted window carries the same id and the same bytes, and the Worker adds a window's bytes to the day once (a 48 h marker per computer; a resend read before the first write has spread can still count twice, the contract, WP35 notes).",
5 "type": "object",
6 "required": ["v", "state", "cert_not_after", "nodes_connected", "nodes_configured", "last_error", "clock_skew", "ct_alert", "migrated", "cohort", "eligible", "window", "bytes_in", "bytes_out", "period_s"],
7 "additionalProperties": false,
8 "properties": {
9 "v": {"const": 1},
10 "state": {"type": "string", "enum": ["off", "unenrolled", "waiting", "issuing", "connecting", "ready", "degraded", "clock_skew", "compat_only", "killed"]},
11 "cert_not_after": {"oneOf": [{"type": "null"}, {"$ref": "common.schema.json#/$defs/epoch_s"}]},
12 "nodes_connected": {"type": "integer", "minimum": 0, "maximum": 8},
13 "nodes_configured": {"type": "integer", "minimum": 0, "maximum": 8},
14 "last_error": {"oneOf": [{"type": "null"}, {"$ref": "common.schema.json#/$defs/reason_word"}]},
15 "clock_skew": {"type": "boolean"},
16 "ct_alert": {"type": "boolean"},
17 "migrated": {"type": "boolean"},
18 "cohort": {"type": "string", "enum": ["paid", "trial", "flex", "legacy"]},
19 "eligible": {"type": "boolean"},
20 "window": {"type": "string", "pattern": "^[a-f0-9]{16}$"},
21 "bytes_in": {"$ref": "common.schema.json#/$defs/count"},
22 "bytes_out": {"$ref": "common.schema.json#/$defs/count"},
23 "period_s": {"type": "integer", "minimum": 1, "maximum": 604800}
24 }
25}