Служебные инструменты · perfmon

Производительность сайта · чтение · Кеширование PHP

perfmon_site_perfmon_m289_readЧтение

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Кеширование PHP

accelerator_stats

Штатные числовые параметры и рекомендации установленного ускорителя PHP. Содержимое скриптов, пути файлов кеша и окружение процесса не возвращаются.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Операции с кешем: одна запись

cache_get

Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Операции с кешем

cache_list

Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. Optional query preserves original Cache fields, path grouping/order and selected-result counts. Native unpaged Cache counts omit HAVING while TopSQL rows apply it; that difference is reported. Ambiguous native grouping needs explicit acknowledgement and qualified actual session SQL mode; caller-controlled mode or functional-dependency overrides are unavailable. Offset/limit bound returned rows. 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
целое число
Схема параметров JSON
{
  "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
}

Доля попаданий в кеш

cache_summary

Штатная сводка чтений, записей, очисток и отношения успешных чтений. Можно ограничить конкретным открытием страницы.

limit
целое число
hit_id
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "hit_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [],
  "additionalProperties": false
}

Настройки сбора данных

capture_settings

Без аргументов возвращает параметры журналов и пороги медленных запросов/большого кеша. generator_profile:true добавляет пять штатных настроек ORM-генератора и ревизию для их изменения. Opt-in generator_profile:true adds five native ORM generator flags, a committed revision and optional read-only generator_request receipt status. Zero-argument legacy capture settings remain unchanged. Current-default MySQL Source profile; native defaults/site overlays and trusted option callbacks are retained.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Компоненты: одна запись

component_get

Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Компоненты

component_list

Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. Optional query preserves original Component fields, joins, grouping, native sort and selected-result counts. Aggregate aliases must already be selected when required by the original ORDER BY. The typed having_count uses the original paired COUNT trigger/value keys. Offset/limit bound the response through native TopSQL prefix and client skip. No arbitrary SQL or expressions are accepted; native navigation is a separate remaining profile. 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
целое число
Схема параметров JSON
{
  "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
}

Получить состояние панели производительности

dashboard_status

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Скачать исходное примечание

Получить диагностику подключения к базе данных

database_diagnostics

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Скачать исходное примечание

Структура выбранной таблицы

field_types

Типы существующих полей. Значения строк, SQL, подключения к чужой базе и генерация PHP не доступны. Optional connection selects a separately server-admitted warm native MySQL connection. Exact catalogue names can contain letters, digits, combining marks, underscores, spaces and hyphens, starting with a letter or underscore. Non-ASCII names require utf8mb4 for client, connection and results. Fresh original backend metadata isolates same-named tables across connections. Without connection, the default profile requires an ASCII identifier. No caller SQL or connection setup.

table
строка · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "table": {
      "type": "string",
      "pattern": "^[\\p{L}_][\\p{L}\\p{M}\\p{N}_ -]{0,63}$",
      "maxLength": 64
    }
  },
  "required": [
    "table"
  ],
  "additionalProperties": false
}

История замеров: одна запись

history_get

Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

История замеров

history_list

Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. 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. Optional query uses original History GetList with its native ID predicates/order and original default formatted timestamp. The original SELECT star is projected to requested canonical fields; unknown extensions never escape. Offset/limit bound only public fetch/skip, not the full buffered native result. Native date/culture/timezone preflight may initialize normal FULL/SHORT formatter/default caches and requires already qualified warm main options/site. Omitting query preserves legacy behavior.

limit
целое число
after_id
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "after_id": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  },
  "required": [],
  "additionalProperties": false
}

Ошибки PHP на странице

hit_errors

Ошибки только выбранного открытия страницы. Текст ошибки по умолчанию исключён; reveal_details:true с правом W раскрывает его. 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. Optional query uses the original all-hit Error GetList; outer hit_id is optional and AND-limits its filter. Without query hit_id and the legacy lookup/DTO remain required. Grouped errors require explicit native grouped-safe order. ERRSTR predicate, sort or grouped dimension requires fresh ordinary W; revealed error bytes require W, without an administrator blanket. Original COUNT-only adaptation and unpaged result counts are separate; no native pagination argument exists.

hit_id
целое число
limit
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "hit_id": {
      "type": "integer",
      "minimum": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [],
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "hit_id"
      ]
    },
    {
      "required": [
        "query"
      ]
    }
  ]
}

Открытия страниц: одна запись

hit_get

Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Открытия страниц

hit_list

Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. Optional query selects original recorded Hit fields, typed filters, grouping, native ordering and counts. Offset/limit bound the returned page; SelectedRowsCount requires a complete buffered native result, and exact aggregate count is a separate live observation. Revealed URI bytes, native REQUEST_URI ordering and grouping by the full REQUEST_URI require fresh W; redacted URI projection remains available at R. URI operations do not require administrator status. The fixed current-default MySQL Source profile refuses unsupported question/fulltext and native-navigation states before the producer. 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
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "after_id": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  },
  "required": [],
  "additionalProperties": false
}

Индексы выбранной таблицы

index_list

Штатные имена и колонки обычных, уникальных и полнотекстовых индексов. Никакие DDL-команды не выполняются. Optional connection selects a separately server-admitted warm native MySQL connection. Exact catalogue names can contain letters, digits, combining marks, underscores, spaces and hyphens, starting with a letter or underscore. Non-ASCII names require utf8mb4 for client, connection and results. Fresh original backend metadata isolates same-named tables across connections. Without connection, the default profile requires an ASCII identifier. No caller SQL or connection setup. Original native index-query failures can yield an empty index list; functional-index NULL column names retain the existing empty-name representation.

table
строка · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "table": {
      "type": "string",
      "pattern": "^[\\p{L}_][\\p{L}\\p{M}\\p{N}_ -]{0,63}$",
      "maxLength": 64
    }
  },
  "required": [
    "table"
  ],
  "additionalProperties": false
}

Работает ли монитор

monitor_status

Показывает активность и срок сбора данных, без включения монитора или выполнения нагрузочного теста. Opt-in monitor_profile:true reads a committed monitor profile revision; monitor_request inspects only durable custody without requiring a fresh cache image. Ordinary native Perfmon W is required for this explicit management profile.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Получить результаты тестирования кластера

perfmon_cluster_results_list

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

limit
целое число
after_id
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "after_id": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  },
  "required": [],
  "additionalProperties": false
}

Скачать исходное примечание

Предварительная проверка · Перестроение анализа индексов базы данных

perfmon_index_analysis_rebuild_preview

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

maintenance_window
строка · обязательный параметр
acknowledge_quiescence
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "maintenance_window": {
      "type": "string",
      "minLength": 32,
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "acknowledge_quiescence": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "maintenance_window",
    "acknowledge_quiescence"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Отметки индексов: одна запись

perfmon_index_exclusions_get

Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Отметки индексов

perfmon_index_exclusions_list

Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. 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. Optional query uses original IndexComplete GetList, its ID predicates and supported ID/table order. Its native SELECT star is projected to requested canonical fields; unknown or unrequested extensions never escape. Count is original unpaged result cardinality. Offset/limit bound public fetch/skip rather than native query work; no native pagination argument exists. Omitting query preserves legacy behavior.

limit
целое число
after_id
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "after_id": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  },
  "required": [],
  "additionalProperties": false
}

Прочитать статистику предложения индекса

perfmon_index_suggestion_statistics_get

Читает готовую статистику для первых десяти связанных SQL-записей. Для отсутствующих строк возвращает null. Требуются право Perfmon R и допуск MCP.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Заполнить отсутствующую статистику предложения индекса

perfmon_index_suggestion_statistics_recalculate

Штатные функции Perfmon заполняют только отсутствующие строки служебного кэша. Работает при allow_writes=false. До 4096 строк источника, до 8 МиБ по штатным метаданным, до 16 запросов статистики по первым десяти связанным SQL-записям. Требуются право Perfmon R и допуск MCP.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Предложения индексов: одна запись

perfmon_index_suggestions_get

Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W. With stock_details:true, Perfmon R can read the stock formatted SQL as text and nine typed plan fields for one suggestion. SQL up to 8192 bytes and stored plans up to 65536 bytes. This mode is separate from reveal_details. Раскрытие SQL_TEXT и SQL_EXPLAIN требует администратора и свежего штатного права W; сохранённые данные не исполняются и не десериализуются. Для плана длиннее 65536 байт или вне UTF-8 ответ содержит размер и SHA-256. Точные фрагменты доступны через типизированный список предложений.

record_id
целое число · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Предложения индексов

perfmon_index_suggestions_list

Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. 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. Optional query uses original IndexSuggest GetList with closed fields/filters/order and unpaged result counts. SQL_TEXT or serialized SQL_EXPLAIN selection requires fresh administrator and W even while redacted; reveal_details adds inert byte windows without decoding or executing them. Explicit BANNED selection/filtering retains independent native c/c1 joins, NULLs and duplicate associations; a truly emitted unqualified ID predicate with either join is refused. Safe defaults omit the selected BANNED join. Offset/limit only bound the returned page; native buffering remains complete. Omitting query preserves legacy behavior.

limit
целое число
after_id
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "after_id": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  },
  "required": [],
  "additionalProperties": false
}

Получить план записанного запроса к базе данных

perfmon_recorded_explain

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

record_id
целое число · обязательный параметр
expected_sha256
строка
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "expected_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "record_id"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Предварительная проверка · Анализ индексов записанного запроса

perfmon_recorded_index_analysis_preview

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

record_id
целое число · обязательный параметр
maintenance_window
строка · обязательный параметр
acknowledge_quiescence
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "maintenance_window": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$",
      "minLength": 32,
      "maxLength": 32
    },
    "acknowledge_quiescence": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "record_id",
    "maintenance_window",
    "acknowledge_quiescence"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Выполнить · Измерение времени выполнения записанного запроса

perfmon_recorded_timing_execute

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

suggestion_id
целое число · обязательный параметр
expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
nonunique_max_rows
целое число

Required for a nonunique index. Maximum matching rows under the same read-only snapshot.

Схема параметров JSON
{
  "type": "object",
  "properties": {
    "suggestion_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    },
    "nonunique_max_rows": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Required for a nonunique index. Maximum matching rows under the same read-only snapshot."
    }
  },
  "required": [
    "suggestion_id",
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Предварительная проверка · Измерение времени выполнения записанного запроса

perfmon_recorded_timing_preview

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

suggestion_id
целое число · обязательный параметр
nonunique_max_rows
целое число

Required for a nonunique index. Maximum matching rows under the same read-only snapshot.

Схема параметров JSON
{
  "type": "object",
  "properties": {
    "suggestion_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "nonunique_max_rows": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Required for a nonunique index. Maximum matching rows under the same read-only snapshot."
    }
  },
  "required": [
    "suggestion_id"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Предварительная проверка · Изменения схемы базы данных для обновления

perfmon_schema_diff_updater_preview

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

source_ddl
строка · обязательный параметр
target_ddl
строка · обязательный параметр
db_type
строка · обязательный параметр
delimiter
строка · обязательный параметр

Exact native delimiter token text. Matching is case-sensitive and newline-adjacent; no delimiter directive is interpreted.

offset
целое число
limit
целое число
expected_sha256
строка
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "source_ddl": {
      "type": "string",
      "maxLength": 65536
    },
    "target_ddl": {
      "type": "string",
      "maxLength": 65536
    },
    "db_type": {
      "type": "string",
      "enum": [
        "MYSQL",
        "MSSQL",
        "ORACLE",
        "PGSQL"
      ]
    },
    "delimiter": {
      "type": "string",
      "maxLength": 64,
      "description": "Exact native delimiter token text. Matching is case-sensitive and newline-adjacent; no delimiter directive is interpreted."
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16384,
      "default": 4096
    },
    "expected_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "source_ddl",
    "target_ddl",
    "db_type",
    "delimiter"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Прочитать строки таблицы

perfmon_table_rows_read

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

profile
строка · обязательный параметр
limit
целое число
after_lid
строка
after_id
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "site_public",
        "history",
        "suggestion"
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 20
    },
    "after_lid": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_]{2}$",
      "minLength": 2,
      "maxLength": 2
    },
    "after_id": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2147483647
    }
  },
  "required": [
    "profile"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Мои права на диагностику

permissions

Штатные права просмотра статистики и управления монитором текущего пользователя.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Получить параметры PHP для диагностики производительности

php_diagnostics

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

Параметры не требуются. Передайте пустой объект {}.

Схема параметров JSON
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Скачать исходное примечание

Получить зарегистрированные связи таблиц

registered_relations

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

table
строка · обязательный параметр
direction
строка
offset
целое число
limit
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "table": {
      "type": "string",
      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$",
      "maxLength": 64
    },
    "direction": {
      "type": "string",
      "enum": [
        "parents",
        "children"
      ],
      "default": "children"
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    }
  },
  "required": [
    "table"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Размеры таблиц базы

table_list

Штатные имена, движок, приблизительное число строк и размеры данных/индексов. Содержимое таблиц недоступно. Optional connection selects an already connected, nonpersistent native named MySQL pool entry admitted separately by the server for metadata. Canonical default-site Perfmon R and physical connection invariants are verified before and after the original table-list producer. No cold setup, caller SQL, credentials or alternate fallback is exposed. Omitting connection preserves the default catalogue and its DTO. Output pagination does not bound the original complete buffered catalogue.

limit
целое число
offset
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    }
  },
  "required": [],
  "additionalProperties": false
}

Получить сводку нагрузки

workload_summary

Кеширование PHP · Операции с кешем: одна запись · Доля попаданий в кеш.

profile
строка · обязательный параметр
limit
целое число
offset
целое число
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "pages",
        "components",
        "queries"
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  },
  "required": [
    "profile"
  ],
  "additionalProperties": false
}

Скачать исходное примечание