{"$defs":{"BarChart":{"additionalProperties":false,"properties":{"id":{"description":"chosen by you, unique within the dashboard; updates address charts by id","pattern":"^[A-Za-z0-9_-]{1,40}$","title":"Id","type":"string"},"grid":{"anyOf":[{"$ref":"#/$defs/Grid"},{"type":"null"}],"default":null,"description":"give every chart a grid or none"},"title":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"unit":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"shown after values, e.g. % or ms","title":"Unit"},"labels":{"description":"x values; for x_type time, Unix seconds or ISO 8601 strings. May be empty.","items":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"number"}]},"maxItems":1000,"title":"Labels","type":"array"},"x_type":{"default":"category","enum":["category","number","time"],"title":"X Type","type":"string"},"series":{"items":{"$ref":"#/$defs/Series"},"maxItems":10,"minItems":1,"title":"Series","type":"array"},"max_points":{"default":1000,"description":"appends drop the oldest points beyond this","maximum":1000,"minimum":1,"title":"Max Points","type":"integer"},"y_min":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Y Min"},"y_max":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Y Max"},"log_y":{"default":false,"title":"Log Y","type":"boolean"},"legend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"defaults to true when there is more than one series","title":"Legend"},"x_label":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"what the x axis counts, e.g. update or epoch; shown under the axis and in tooltips","title":"X Label"},"gaps":{"default":"connect","description":"how a line crosses nulls: connect draws straight through, break draws a faint dashed bridge","enum":["connect","break"],"title":"Gaps","type":"string"},"type":{"const":"bar","title":"Type","type":"string"}},"required":["id","labels","series","type"],"title":"BarChart","type":"object"},"FullPush":{"additionalProperties":false,"description":"Replaces the whole dashboard, history included.","properties":{"v":{"const":1,"title":"V"},"title":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"name of the dashboard, shown small at the top and in the browser tab; use a heading chart for a big on-board title","title":"Title"},"palette":{"default":"pastel","description":"colour set the named colours come from: pastel, primary, earth or riso. Viewers can switch it for themselves","enum":["pastel","primary","earth","riso"],"title":"Palette","type":"string"},"expires_in":{"default":7200,"description":"seconds, counted from the last push","maximum":86400,"minimum":60,"title":"Expires In","type":"integer"},"charts":{"items":{"discriminator":{"mapping":{"bar":"#/$defs/BarChart","heading":"#/$defs/HeadingChart","line":"#/$defs/LineChart","stat":"#/$defs/StatChart"},"propertyName":"type"},"oneOf":[{"$ref":"#/$defs/LineChart"},{"$ref":"#/$defs/BarChart"},{"$ref":"#/$defs/StatChart"},{"$ref":"#/$defs/HeadingChart"}]},"maxItems":20,"minItems":1,"title":"Charts","type":"array"}},"required":["v","charts"],"title":"FullPush","type":"object"},"Grid":{"additionalProperties":false,"description":"Position on a 12-column grid with 64 px rows.","properties":{"x":{"description":"column, 0–11","maximum":11,"minimum":0,"title":"X","type":"integer"},"y":{"description":"row, 0 at the top","minimum":0,"title":"Y","type":"integer"},"w":{"description":"width in columns; x + w ≤ 12","maximum":12,"minimum":1,"title":"W","type":"integer"},"h":{"description":"height in rows","maximum":12,"minimum":1,"title":"H","type":"integer"}},"required":["x","y","w","h"],"title":"Grid","type":"object"},"HeadingChart":{"additionalProperties":false,"description":"Large text on the board that names a section. Not a chart: it has no data and can't be updated in place.","properties":{"id":{"description":"chosen by you, unique within the dashboard; updates address charts by id","pattern":"^[A-Za-z0-9_-]{1,40}$","title":"Id","type":"string"},"grid":{"anyOf":[{"$ref":"#/$defs/Grid"},{"type":"null"}],"default":null,"description":"give every chart a grid or none"},"type":{"const":"heading","title":"Type","type":"string"},"title":{"description":"the heading text","maxLength":80,"title":"Title","type":"string"},"text":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"an optional line of smaller text under the heading","title":"Text"}},"required":["id","type","title"],"title":"HeadingChart","type":"object"},"LineChart":{"additionalProperties":false,"properties":{"id":{"description":"chosen by you, unique within the dashboard; updates address charts by id","pattern":"^[A-Za-z0-9_-]{1,40}$","title":"Id","type":"string"},"grid":{"anyOf":[{"$ref":"#/$defs/Grid"},{"type":"null"}],"default":null,"description":"give every chart a grid or none"},"title":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"unit":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"shown after values, e.g. % or ms","title":"Unit"},"labels":{"description":"x values; for x_type time, Unix seconds or ISO 8601 strings. May be empty.","items":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"number"}]},"maxItems":1000,"title":"Labels","type":"array"},"x_type":{"default":"category","enum":["category","number","time"],"title":"X Type","type":"string"},"series":{"items":{"$ref":"#/$defs/Series"},"maxItems":10,"minItems":1,"title":"Series","type":"array"},"max_points":{"default":1000,"description":"appends drop the oldest points beyond this","maximum":1000,"minimum":1,"title":"Max Points","type":"integer"},"y_min":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Y Min"},"y_max":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Y Max"},"log_y":{"default":false,"title":"Log Y","type":"boolean"},"legend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"defaults to true when there is more than one series","title":"Legend"},"x_label":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"what the x axis counts, e.g. update or epoch; shown under the axis and in tooltips","title":"X Label"},"gaps":{"default":"connect","description":"how a line crosses nulls: connect draws straight through, break draws a faint dashed bridge","enum":["connect","break"],"title":"Gaps","type":"string"},"type":{"const":"line","title":"Type","type":"string"}},"required":["id","labels","series","type"],"title":"LineChart","type":"object"},"Point":{"additionalProperties":false,"properties":{"x":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"number"},{"type":"null"}],"default":null,"description":"may be left out only when the chart's x_type is time","title":"X"},"y":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"description":"series name → number or null; a series left out gets null","minProperties":1,"title":"Y","type":"object"}},"required":["y"],"title":"Point","type":"object"},"Series":{"additionalProperties":false,"properties":{"name":{"description":"unique within the chart; updates address series by name","maxLength":40,"title":"Name","type":"string"},"data":{"description":"one value per label; null is a gap","items":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxItems":1000,"title":"Data","type":"array"},"color":{"anyOf":[{"enum":["red","orange","yellow","green","teal","blue","purple","pink","gray"]},{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},{"type":"null"}],"default":null,"title":"Color"},"role":{"anyOf":[{"enum":["band","ref"],"type":"string"},{"type":"null"}],"default":null,"description":"band: give exactly two series this role (low and high) and they draw as one shaded range; ref: a thin dashed line for a target or baseline","title":"Role"}},"required":["name","data"],"title":"Series","type":"object"},"StatChart":{"additionalProperties":false,"properties":{"id":{"description":"chosen by you, unique within the dashboard; updates address charts by id","pattern":"^[A-Za-z0-9_-]{1,40}$","title":"Id","type":"string"},"grid":{"anyOf":[{"$ref":"#/$defs/Grid"},{"type":"null"}],"default":null,"description":"give every chart a grid or none"},"title":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"unit":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"shown after values, e.g. % or ms","title":"Unit"},"type":{"const":"stat","title":"Type","type":"string"},"value":{"title":"Value","type":"number"},"decimals":{"anyOf":[{"maximum":6,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Decimals"},"color":{"anyOf":[{"enum":["red","orange","yellow","green","teal","blue","purple","pink","gray"]},{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},{"type":"null"}],"default":null,"description":"a small colour key beside the title, to match a series elsewhere","title":"Color"},"status":{"anyOf":[{"enum":["ok","warn","bad"],"type":"string"},{"type":"null"}],"default":null,"description":"fills the tile green, yellow or red","title":"Status"},"subtitle":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"a line of context under the value, e.g. target 0.8","title":"Subtitle"},"trend_of":{"anyOf":[{"maxLength":82,"type":"string"},{"type":"null"}],"default":null,"description":"draws a sparkline from a line or bar chart in this dashboard: its id, or id:series name; the first series by default","title":"Trend Of"}},"required":["id","type","value"],"title":"StatChart","type":"object"},"UpdatePush":{"additionalProperties":false,"description":"Changes charts by id without resending the dashboard.","properties":{"v":{"const":1,"title":"V"},"append":{"anyOf":[{"additionalProperties":{"anyOf":[{"$ref":"#/$defs/Point"},{"items":{"$ref":"#/$defs/Point"},"type":"array"}]},"type":"object"},{"type":"null"}],"default":null,"description":"line/bar chart id → one point or a list of points","title":"Append"},"set":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"default":null,"description":"stat chart id → new value","title":"Set"}},"required":["v"],"title":"UpdatePush","type":"object"}},"anyOf":[{"$ref":"#/$defs/FullPush"},{"$ref":"#/$defs/UpdatePush"}],"title":"Dashboard push (v1)","description":"POST to your write URL. A body with `charts` replaces the dashboard; a body with `append` and/or `set` updates it in place."}