mirror of
https://github.com/hanzoai/insights.git
synced 2026-11-02 14:32:45 +00:00
The tree was a debranded snapshot of upstream taken around 2026-02-20, and upstream has moved about five months since. This replaces it with upstream master, mechanically re-derived: bin/debrand does the rename, and the pipeline and squashed migrations are restored from the shipped tree. Not a merge. The previous import replaced the tree wholesale in a single commit, so there is no shared content history to merge against. Reproducing the rename on the new tree is what actually converges. What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints, compose files, LLM.md, and insights/migrations. The squashed initial migration is load-bearing — the live database records it by name, so upstream's ~918 individual migrations cannot come back. Nine products are dropped as unreferenced. Twenty-one more that we do not run are kept anyway because the core app still imports them; unpicking those is a refactor and does not belong in a rebase. This base does not build yet, and the reasons are not in the rename: upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against our 4.2, and the dependency manifests still name upstream packages that we republish under our own names. Those are decisions, not renames.
1098 lines
66 KiB
JSON
1098 lines
66 KiB
JSON
{
|
||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
"properties": {
|
||
"id": {
|
||
"description": "A unique integer value identifying this dashboard.",
|
||
"type": "number"
|
||
},
|
||
"widgets": {
|
||
"description": "Widget tiles to update atomically, each identified by its tile_id. config shape is per widget_type; see dashboard-widget-catalog-list for per-type config_schema (1–10 per request).",
|
||
"items": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the recent events widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"dateRange": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"date_from": {
|
||
"anyOf": [
|
||
{
|
||
"enum": [
|
||
"-1M",
|
||
"-30M",
|
||
"-1h",
|
||
"-3h",
|
||
"-24h",
|
||
"-7d",
|
||
"-14d",
|
||
"-30d",
|
||
"-90d"
|
||
],
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"eventName": {
|
||
"anyOf": [
|
||
{
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Limit the feed to a single event name. Omit or null for all events."
|
||
},
|
||
"filterTestAccounts": {
|
||
"anyOf": [
|
||
{
|
||
"type": "boolean"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"limit": {
|
||
"default": 25,
|
||
"description": "Maximum number of events to return.",
|
||
"maximum": 50,
|
||
"minimum": 1,
|
||
"type": "number"
|
||
},
|
||
"properties": {
|
||
"anyOf": [
|
||
{
|
||
"items": {
|
||
"properties": {
|
||
"key": {
|
||
"maxLength": 400,
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"label": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"operator": {
|
||
"enum": [
|
||
"exact",
|
||
"is_not",
|
||
"icontains",
|
||
"not_icontains",
|
||
"starts_with",
|
||
"not_starts_with",
|
||
"ends_with",
|
||
"not_ends_with",
|
||
"regex",
|
||
"not_regex",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"is_set",
|
||
"is_not_set",
|
||
"is_date_exact",
|
||
"is_date_before",
|
||
"is_date_after",
|
||
"between",
|
||
"not_between",
|
||
"min",
|
||
"max",
|
||
"in",
|
||
"not_in",
|
||
"is_cleaned_path_exact",
|
||
"flag_evaluates_to",
|
||
"semver_eq",
|
||
"semver_neq",
|
||
"semver_gt",
|
||
"semver_gte",
|
||
"semver_lt",
|
||
"semver_lte",
|
||
"semver_tilde",
|
||
"semver_caret",
|
||
"semver_wildcard",
|
||
"icontains_multi",
|
||
"not_icontains_multi"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"type": {
|
||
"enum": ["event", "person"],
|
||
"type": "string"
|
||
},
|
||
"value": {
|
||
"anyOf": [
|
||
{
|
||
"items": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 4000,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "number"
|
||
},
|
||
{
|
||
"type": "boolean"
|
||
}
|
||
]
|
||
},
|
||
"maxItems": 100,
|
||
"type": "array"
|
||
},
|
||
{
|
||
"maxLength": 4000,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "number"
|
||
},
|
||
{
|
||
"type": "boolean"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"required": ["key", "operator", "type"],
|
||
"type": "object"
|
||
},
|
||
"maxItems": 20,
|
||
"type": "array"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Event and person property filters, matching Activity > Explore events."
|
||
},
|
||
"widgetFilters": {
|
||
"anyOf": [
|
||
{
|
||
"additionalProperties": {
|
||
"properties": {
|
||
"filterId": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"operator": {
|
||
"enum": [
|
||
"exact",
|
||
"is_not",
|
||
"icontains",
|
||
"not_icontains",
|
||
"starts_with",
|
||
"not_starts_with",
|
||
"ends_with",
|
||
"not_ends_with",
|
||
"regex",
|
||
"not_regex",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"is_set",
|
||
"is_not_set",
|
||
"is_date_exact",
|
||
"is_date_before",
|
||
"is_date_after",
|
||
"between",
|
||
"not_between",
|
||
"min",
|
||
"max",
|
||
"in",
|
||
"not_in",
|
||
"is_cleaned_path_exact",
|
||
"flag_evaluates_to",
|
||
"semver_eq",
|
||
"semver_neq",
|
||
"semver_gt",
|
||
"semver_gte",
|
||
"semver_lt",
|
||
"semver_lte",
|
||
"semver_tilde",
|
||
"semver_caret",
|
||
"semver_wildcard",
|
||
"icontains_multi",
|
||
"not_icontains_multi"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"optionId": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"propertyName": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"value": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"required": ["filterId", "propertyName", "optionId", "operator"],
|
||
"type": "object"
|
||
},
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["activity_events_list"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the top issues widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"assignee": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"id": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "number"
|
||
}
|
||
]
|
||
},
|
||
"type": {
|
||
"enum": ["user", "role"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["id", "type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Filter by assignee ({type: user|role, id}). Omit for any assignee."
|
||
},
|
||
"dateRange": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"date_from": {
|
||
"anyOf": [
|
||
{
|
||
"enum": [
|
||
"-1M",
|
||
"-30M",
|
||
"-1h",
|
||
"-3h",
|
||
"-24h",
|
||
"-7d",
|
||
"-14d",
|
||
"-30d",
|
||
"-90d"
|
||
],
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"filterTestAccounts": {
|
||
"anyOf": [
|
||
{
|
||
"type": "boolean"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"limit": {
|
||
"default": 10,
|
||
"description": "Maximum number of issues to return.",
|
||
"maximum": 25,
|
||
"minimum": 1,
|
||
"type": "number"
|
||
},
|
||
"orderBy": {
|
||
"default": "occurrences",
|
||
"description": "Issue ranking column.",
|
||
"enum": ["last_seen", "first_seen", "occurrences", "users", "sessions"],
|
||
"type": "string"
|
||
},
|
||
"orderDirection": {
|
||
"default": "DESC",
|
||
"description": "Sort direction for orderBy.",
|
||
"enum": ["ASC", "DESC"],
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"default": "active",
|
||
"description": "Issue status filter.",
|
||
"enum": [
|
||
"archived",
|
||
"active",
|
||
"resolved",
|
||
"pending_release",
|
||
"suppressed",
|
||
"all"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"widgetFilters": {
|
||
"anyOf": [
|
||
{
|
||
"additionalProperties": {
|
||
"properties": {
|
||
"filterId": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"operator": {
|
||
"enum": [
|
||
"exact",
|
||
"is_not",
|
||
"icontains",
|
||
"not_icontains",
|
||
"starts_with",
|
||
"not_starts_with",
|
||
"ends_with",
|
||
"not_ends_with",
|
||
"regex",
|
||
"not_regex",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"is_set",
|
||
"is_not_set",
|
||
"is_date_exact",
|
||
"is_date_before",
|
||
"is_date_after",
|
||
"between",
|
||
"not_between",
|
||
"min",
|
||
"max",
|
||
"in",
|
||
"not_in",
|
||
"is_cleaned_path_exact",
|
||
"flag_evaluates_to",
|
||
"semver_eq",
|
||
"semver_neq",
|
||
"semver_gt",
|
||
"semver_gte",
|
||
"semver_lt",
|
||
"semver_lte",
|
||
"semver_tilde",
|
||
"semver_caret",
|
||
"semver_wildcard",
|
||
"icontains_multi",
|
||
"not_icontains_multi"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"optionId": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"propertyName": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"value": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"required": ["filterId", "propertyName", "optionId", "operator"],
|
||
"type": "object"
|
||
},
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["error_tracking_list"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the recent recordings widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"collectionId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "short_id of a session replay collection to scope the widget to its pinned recordings. Combine with savedFilterId or property filters to narrow within the collection; orderBy, orderDirection, and limit still apply."
|
||
},
|
||
"dateRange": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"date_from": {
|
||
"anyOf": [
|
||
{
|
||
"enum": [
|
||
"-1M",
|
||
"-30M",
|
||
"-1h",
|
||
"-3h",
|
||
"-24h",
|
||
"-7d",
|
||
"-14d",
|
||
"-30d",
|
||
"-90d"
|
||
],
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"filterTestAccounts": {
|
||
"anyOf": [
|
||
{
|
||
"type": "boolean"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"limit": {
|
||
"default": 10,
|
||
"description": "Maximum number of recordings to return.",
|
||
"maximum": 25,
|
||
"minimum": 1,
|
||
"type": "number"
|
||
},
|
||
"orderBy": {
|
||
"default": "start_time",
|
||
"description": "Recording ranking column.",
|
||
"enum": [
|
||
"start_time",
|
||
"activity_score",
|
||
"recording_duration",
|
||
"duration",
|
||
"click_count",
|
||
"console_error_count"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"orderDirection": {
|
||
"default": "DESC",
|
||
"description": "Sort direction for orderBy.",
|
||
"enum": ["ASC", "DESC"],
|
||
"type": "string"
|
||
},
|
||
"savedFilterId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "short_id of a saved session replay filter to refine the recordings shown. When set, the saved filter owns the date range and property filters; only orderBy, orderDirection, and limit still apply. Combine with collectionId to filter within a collection."
|
||
},
|
||
"widgetFilters": {
|
||
"anyOf": [
|
||
{
|
||
"additionalProperties": {
|
||
"properties": {
|
||
"filterId": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"operator": {
|
||
"enum": [
|
||
"exact",
|
||
"is_not",
|
||
"icontains",
|
||
"not_icontains",
|
||
"starts_with",
|
||
"not_starts_with",
|
||
"ends_with",
|
||
"not_ends_with",
|
||
"regex",
|
||
"not_regex",
|
||
"gt",
|
||
"gte",
|
||
"lt",
|
||
"lte",
|
||
"is_set",
|
||
"is_not_set",
|
||
"is_date_exact",
|
||
"is_date_before",
|
||
"is_date_after",
|
||
"between",
|
||
"not_between",
|
||
"min",
|
||
"max",
|
||
"in",
|
||
"not_in",
|
||
"is_cleaned_path_exact",
|
||
"flag_evaluates_to",
|
||
"semver_eq",
|
||
"semver_neq",
|
||
"semver_gt",
|
||
"semver_gte",
|
||
"semver_lt",
|
||
"semver_lte",
|
||
"semver_tilde",
|
||
"semver_caret",
|
||
"semver_wildcard",
|
||
"icontains_multi",
|
||
"not_icontains_multi"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"optionId": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"propertyName": {
|
||
"minLength": 1,
|
||
"type": "string"
|
||
},
|
||
"value": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"required": ["filterId", "propertyName", "optionId", "operator"],
|
||
"type": "object"
|
||
},
|
||
"propertyNames": {
|
||
"type": "string"
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["session_replay_list"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the experiments list widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"createdBy": {
|
||
"anyOf": [
|
||
{
|
||
"type": "number"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Filter by creator (user id). Omit for any creator."
|
||
},
|
||
"limit": {
|
||
"default": 10,
|
||
"description": "Maximum number of experiments to return.",
|
||
"maximum": 25,
|
||
"minimum": 1,
|
||
"type": "number"
|
||
},
|
||
"orderBy": {
|
||
"default": "created_at",
|
||
"description": "Experiment list sort column.",
|
||
"enum": ["created_at", "name", "start_date"],
|
||
"type": "string"
|
||
},
|
||
"orderDirection": {
|
||
"default": "DESC",
|
||
"description": "Sort direction for orderBy.",
|
||
"enum": ["ASC", "DESC"],
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"default": "all",
|
||
"description": "Experiment status filter.",
|
||
"enum": ["draft", "running", "paused", "exposure_frozen", "stopped", "all"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["experiments_list"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the experiment results widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"experimentId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "number"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Experiment to show results for. Null until the user picks one in the widget settings."
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["experiment_results"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the survey results widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"dateRange": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"date_from": {
|
||
"anyOf": [
|
||
{
|
||
"enum": [
|
||
"-1M",
|
||
"-30M",
|
||
"-1h",
|
||
"-3h",
|
||
"-24h",
|
||
"-7d",
|
||
"-14d",
|
||
"-30d",
|
||
"-90d"
|
||
],
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Null or omitted means all time (the survey's full lifetime)."
|
||
},
|
||
"limit": {
|
||
"default": 10,
|
||
"description": "Maximum number of recent responses to return.",
|
||
"maximum": 25,
|
||
"minimum": 1,
|
||
"type": "number"
|
||
},
|
||
"surveyId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "Survey to show performance stats and recent responses for. Null until the user picks one."
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["survey_results"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
},
|
||
{
|
||
"properties": {
|
||
"config": {
|
||
"description": "New configuration for the recent logs widget. Omit to leave unchanged.",
|
||
"properties": {
|
||
"dateRange": {
|
||
"anyOf": [
|
||
{
|
||
"properties": {
|
||
"date_from": {
|
||
"anyOf": [
|
||
{
|
||
"enum": [
|
||
"-1M",
|
||
"-30M",
|
||
"-1h",
|
||
"-3h",
|
||
"-24h",
|
||
"-7d",
|
||
"-14d",
|
||
"-30d",
|
||
"-90d"
|
||
],
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
]
|
||
},
|
||
"limit": {
|
||
"default": 50,
|
||
"description": "Maximum number of log lines to return.",
|
||
"maximum": 100,
|
||
"minimum": 1,
|
||
"type": "number"
|
||
},
|
||
"orderBy": {
|
||
"default": "latest",
|
||
"description": "Sort by newest (latest) or oldest (earliest) first.",
|
||
"enum": ["latest", "earliest"],
|
||
"type": "string"
|
||
},
|
||
"savedViewId": {
|
||
"anyOf": [
|
||
{
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "short_id of a saved logs view to use as the source. When set, the saved view owns the date range, severity, service, and property filters; only orderBy and limit still apply."
|
||
},
|
||
"serviceNames": {
|
||
"description": "Only show logs from these services. Empty shows all services.",
|
||
"items": {
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
"severityLevels": {
|
||
"description": "Only show logs at these severity levels. Empty shows all levels.",
|
||
"items": {
|
||
"enum": ["trace", "debug", "info", "warn", "error", "fatal"],
|
||
"type": "string"
|
||
},
|
||
"type": "array"
|
||
},
|
||
"timezone": {
|
||
"default": "UTC",
|
||
"description": "Render log timestamps in UTC or in each viewer's local timezone.",
|
||
"enum": ["UTC", "local"],
|
||
"type": "string"
|
||
},
|
||
"wrapLines": {
|
||
"default": false,
|
||
"description": "Wrap long log lines instead of truncating them to a single row.",
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"description": {
|
||
"description": "New markdown description for the widget. Omit to leave unchanged.",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"anyOf": [
|
||
{
|
||
"maxLength": 400,
|
||
"type": "string"
|
||
},
|
||
{
|
||
"type": "null"
|
||
}
|
||
],
|
||
"description": "New display name for the widget. Empty string or null clears it; omit to leave unchanged."
|
||
},
|
||
"tile_id": {
|
||
"description": "ID of the widget tile to update. Use dashboard-get to look up widget tile IDs.",
|
||
"type": "number"
|
||
},
|
||
"widget_type": {
|
||
"enum": ["logs_list"],
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": ["tile_id", "widget_type"],
|
||
"type": "object"
|
||
}
|
||
]
|
||
},
|
||
"maxItems": 10,
|
||
"minItems": 1,
|
||
"type": "array"
|
||
}
|
||
},
|
||
"required": ["id"],
|
||
"type": "object"
|
||
}
|