Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions src/sentry/seer/agent/embed_widgets.generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,126 @@
}
}
]
},
{
"name": "chart",
"description": "Display numeric data as a compact Sentry-style chart. For line, area, and bar charts, prefer at least three points. Use x_axis \"time\" only with offset-bearing ISO 8601 timestamps and \"category\" for named buckets. For heatmaps, each series is a row, each point is a colored cell, and values must be non-negative. Wheel charts require one category series with 2-12 non-negative points and a positive total. Duration values are milliseconds, percentage values are 0-100, and byte values are raw bytes.",
"level": ["block"],
"body": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"subtitle": {
"type": "string"
},
"visualization": {
"default": "line",
"type": "string",
"enum": ["line", "area", "bar", "heatmap", "wheel"]
},
"x_axis": {
"default": "time",
"type": "string",
"enum": ["time", "category"]
},
"y_axis_unit": {
"default": "number",
"type": "string",
"enum": ["number", "percentage", "duration", "bytes"]
},
"y_axis_label": {
"type": "string"
},
"series": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"data": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"x": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"y": {
"type": "number"
}
},
"required": ["x", "y"],
"additionalProperties": false
}
}
},
"required": ["name", "data"],
"additionalProperties": false
}
}
},
"required": ["title", "visualization", "x_axis", "y_axis_unit", "series"],
"additionalProperties": false
},
"examples": [
{
"label": "Error volume",
"data": {
"title": "Error volume",
"subtitle": "Last 6 hours",
"visualization": "area",
"x_axis": "time",
"y_axis_unit": "number",
"series": [
{
"name": "Errors",
"data": [
{
"x": "2026-07-30T12:00:00Z",
"y": 12
},
{
"x": "2026-07-30T13:00:00Z",
"y": 18
},
{
"x": "2026-07-30T14:00:00Z",
"y": 15
},
{
"x": "2026-07-30T15:00:00Z",
"y": 31
},
{
"x": "2026-07-30T16:00:00Z",
"y": 46
},
{
"x": "2026-07-30T17:00:00Z",
"y": 38
}
]
}
]
}
}
]
}
]
Loading
Loading