Служебные инструменты · perfmon
Журнал запросов производительности
perfmon_query_monitor_readЧтениеЗапросы к базе · Запросы к базе: одна запись · Журнал SQL-запросов.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W. Administrator and Perfmon access required, matching the stock SQL list. Раскрытие SQL_TEXT и SQL_EXPLAIN требует администратора и свежего штатного права W.
record_id- целое число · обязательный параметр
{
"type": "object",
"properties": {
"record_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"record_id"
],
"additionalProperties": false
}Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. Administrator and Perfmon access required, matching the stock SQL list. Optional query uses original SQL log fields, filters, grouping, order, selected-result counts and original joined-row COUNT. SUGGEST_ID associations can duplicate rows; native duplicates are preserved. Selecting or ordering SQL_TEXT requires fresh administrator and Perfmon W even when bytes remain redacted; reveal_details additionally returns inert byte windows. SQL_EXPLAIN is not an original SQL report selector. Unknown fields/expressions and broken native LEFT join states are refused. Omitting query preserves the legacy DTO. query.native_nav opts into original native page/count behavior and requires ack_native_navigation_state:true. Omit outer limit/after_id; only rows, selected_rows, offset0 and include_total_count:false are compatible. Original navigation changes request NavNum and may change qualified existing session-local navigation state; no session is started, restored or saved by the tool. The complete native page can contain199 rows at page_size100 when descending. Native counts preserve original family/group units and live count/data races; native_navigation replaces ordinary offset/limit/more fields. Session backend epilogue persistence is unverified. String filter operator *% uses original fulltext-like tokenization and LIKE predicates, preserving AND within a phrase and OR between phrases. It does not use MATCH indexes or the FT token-size memo. Raw NULL phrases remain unsupported. Empty or punctuation-only phrases, including four-byte characters discarded by the original splitter, can drop a predicate and are disclosed in warnings; arguments are not rewritten. Logical ? uses the already-loaded original parser, functions and effective error-message state; cold or lazy language resolution remains unsupported. Existing message overrides, empty or whitespace messages, boolean operators and original diagnostic or condition-drop behavior are preserved; arguments are not rewritten. MATCH operators * and *= remain separately unqualified.
limit- целое число
after_id- целое число
hit_id- целое число
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
},
"after_id": {
"type": "integer",
"minimum": 0,
"default": 0
},
"hit_id": {
"type": "integer",
"minimum": 1
}
},
"required": [],
"additionalProperties": false
}Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. Administrator and Perfmon access required, matching the stock SQL list. Optional query uses original SQL log fields, filters, grouping, order, selected-result counts and original joined-row COUNT. SUGGEST_ID associations can duplicate rows; native duplicates are preserved. Selecting or ordering SQL_TEXT requires fresh administrator and Perfmon W even when bytes remain redacted; reveal_details additionally returns inert byte windows. SQL_EXPLAIN is not an original SQL report selector. Unknown fields/expressions and broken native LEFT join states are refused. Omitting query preserves the legacy DTO. query.native_nav opts into original native page/count behavior and requires ack_native_navigation_state:true. Omit outer limit/after_id; only rows, selected_rows, offset0 and include_total_count:false are compatible. Original navigation changes request NavNum and may change qualified existing session-local navigation state; no session is started, restored or saved by the tool. The complete native page can contain199 rows at page_size100 when descending. Native counts preserve original family/group units and live count/data races; native_navigation replaces ordinary offset/limit/more fields. Session backend epilogue persistence is unverified. String filter operator *% uses original fulltext-like tokenization and LIKE predicates, preserving AND within a phrase and OR between phrases. It does not use MATCH indexes or the FT token-size memo. Raw NULL phrases remain unsupported. Empty or punctuation-only phrases, including four-byte characters discarded by the original splitter, can drop a predicate and are disclosed in warnings; arguments are not rewritten. Logical ? uses the already-loaded original parser, functions and effective error-message state; cold or lazy language resolution remains unsupported. Existing message overrides, empty or whitespace messages, boolean operators and original diagnostic or condition-drop behavior are preserved; arguments are not rewritten. MATCH operators * and *= remain separately unqualified.
limit- целое число
after_id- целое число
hit_id- целое число
query- объект · обязательный параметр
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
},
"after_id": {
"type": "integer",
"minimum": 0,
"default": 0
},
"hit_id": {
"type": "integer",
"minimum": 1
},
"query": {
"type": "object",
"properties": {
"native_nav": {
"type": "object",
"properties": {
"page_size": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
},
"page": {
"type": "integer",
"minimum": 1,
"maximum": 1000000,
"default": 1
},
"descending": {
"type": "boolean",
"default": false
},
"check_out_of_range": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"ack_native_navigation_state": {
"type": "boolean",
"default": false
},
"mode": {
"type": "string",
"enum": [
"rows",
"count"
],
"default": "rows"
},
"group": {
"type": "boolean",
"default": false
},
"fields": {
"type": "array",
"items": {
"type": "string",
"enum": [
"ID",
"HIT_ID",
"NN",
"MODULE_NAME",
"COMPONENT_NAME",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS",
"QUERY_TIME",
"COUNT",
"MIN_QUERY_TIME",
"MAX_QUERY_TIME",
"AVG_QUERY_TIME",
"SUM_QUERY_TIME"
]
},
"maxItems": 128,
"uniqueItems": true
},
"filter": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"logic": {
"type": "string",
"enum": [
"AND",
"OR",
"NOT"
]
},
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"HIT_ID",
"COMPONENT_ID",
"ID",
"QUERY_TIME",
"SUGGEST_ID",
"NODE_ID",
"SELECTED_ROWS",
"SELECTED_FIELDS",
"FETCHED_ROWS",
"FETCHED_LENGTH",
"HAS_BIG_FIELDS"
]
},
"operator": {
"type": "string",
"enum": [
"",
"!><",
"!=%",
"!%=",
"!==",
"!=",
"!%",
"><",
">=",
"<=",
"=%",
"%=",
"!@",
"==",
"=",
"%",
"?",
">",
"<",
"!",
"@",
"*",
"*=",
"*%"
]
},
"value": {
"type": [
"string",
"integer",
"number",
"boolean",
"null",
"array"
],
"maxLength": 4096,
"maxItems": 64,
"items": {
"type": [
"string",
"integer",
"number",
"boolean",
"null"
],
"maxLength": 4096
}
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
},
"maxItems": 32
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [],
"additionalProperties": false
},
"order": {
"type": "array",
"maxItems": 16,
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"ID",
"HIT_ID",
"NN",
"MODULE_NAME",
"COMPONENT_NAME",
"NODE_ID",
"QUERY_TIME",
"COUNT",
"MIN_QUERY_TIME",
"MAX_QUERY_TIME",
"AVG_QUERY_TIME",
"SUM_QUERY_TIME"
]
},
"direction": {
"type": "string",
"enum": [
"ASC",
"DESC"
]
}
},
"required": [
"field",
"direction"
],
"additionalProperties": false
}
},
"offset": {
"type": "integer",
"minimum": 0,
"maximum": 9223372036854776000,
"default": 0
},
"count_method": {
"type": "string",
"enum": [
"selected_rows",
"native_records_total"
],
"default": "selected_rows"
},
"include_total_count": {
"type": "boolean",
"default": false
},
"reveal_details": {
"type": "boolean",
"default": false,
"enum": [
false
]
},
"text_window": {
"type": "object",
"properties": {
"offset": {
"type": "integer",
"minimum": 0,
"maximum": 9223372036854759000,
"default": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16384,
"default": 4096
}
},
"required": [],
"additionalProperties": false
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"query"
],
"additionalProperties": false
}