addedInput schema / $defs / ResourceSelect
Added value: +{
+ "additionalProperties": false,
+ "description": "One resource of a `Select`.",
+ "properties": {
+ "columns": {
+ "description": "Columns to read by the diff's names (`calls`, `avg`, `p95`, `total`,\n`percent_total`, ...). Default: every column of each section.",
+ "items": {
+ "type": "string"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "keys": {
+ "description": "Exact, case-sensitive entity keys, as the diff's rows name them.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "kinds": {
+ "description": "Sections to read (`timing`, `alloc`, `icount` for functions; `timing`,\n`alloc` for server; `main` for the rest). Default: every section.",
+ "items": {
+ "$ref": "#/$defs/SelectKind"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "type": "object"
+}
addedInput schema / $defs / Select
Added value: +{
+ "additionalProperties": false,
+ "description": "`select=` as sent: per resource, exact entity keys and optionally the\nsections and columns to read. Shared by the REST query and the MCP tools,\nwhose schema it is.",
+ "properties": {
+ "channels": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Channel keys: the label."
+ },
+ "functions": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Function keys: the function name (`crate::module::fn`)."
+ },
+ "http": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "HTTP call keys: `name | route | source`, `-` for a part the entry lacks."
+ },
+ "io": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "I/O keys: `label | operation | -`."
+ },
+ "mutexes": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Mutex keys: the label."
+ },
+ "rw_locks": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "RwLock keys: the label."
+ },
+ "server": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Route keys: the route (`GET /users/{id}`)."
+ },
+ "sql": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "SQL keys: `query | route | source`, `-` for a part the entry lacks."
+ },
+ "threads": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ResourceSelect"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Thread keys: the thread name (threads sharing one are summed)."
+ }
+ },
+ "type": "object"
+}
addedInput schema / $defs / SelectKind
Added value: +{
+ "description": "A section kind as `select=` names it.",
+ "enum": [
+ "icount",
+ "alloc",
+ "timing",
+ "main"
+ ],
+ "type": "string"
+}
addedInput schema / properties / select
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Select"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Metrics of named entities, read from each report: per resource\n(`functions`, `sql`, `http`, `server`, `mutexes`, `rw_locks`, `channels`,\n`io`, `threads`) exact, case-sensitive `keys` (function name; sql and\nhttp `name | route | source` with `-` for a missing part; io\n`label | op | -`; server the route; locks and channels the label;\nthreads the thread name), optional `kinds` (sections: `timing`,\n`alloc`, `icount`, `main`) and optional `columns` (the diff's names:\n`calls`, `avg`, `p95`, `total`, `percent_total`, ...). Up to 20 keys."
+}