Предметные инструменты · perfmon
Управление расширенным мониторингом и настройками ORM
perfmon_scoped_operations_writeИзменениеЗапустить расширенный профиль мониторинга · Изменить настройки генератора ORM.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Меняет только переданные параметры. Журнал SQL может содержать персональные данные и секреты; включайте его осознанно. Настройка общая для сайта, требует права W и confirm:true. The five ORM generator flags use a separate explicit profile: first read generator_profile:true, then supply expected_generator_revision and generator_request_id. Generator and legacy keys cannot be mixed. Each group has one durable attempt; UNKNOWN is never automatically retried or compensated. Original Option::set cache invalidation and events remain native; they may have trusted configured effects beyond these five options.
settings- объект · обязательный параметр
expected_generator_revision- строка · обязательный параметр
generator_request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"settings": {
"type": "object",
"properties": {
"enable_tablet_generator": {
"type": "boolean"
},
"tablet_short_aliases": {
"type": "boolean"
},
"tablet_object_settings": {
"type": "boolean"
},
"tablet_use_map_index": {
"type": "boolean"
},
"tablet_validation_closure": {
"type": "boolean"
}
},
"minProperties": 1,
"additionalProperties": false
},
"expected_generator_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"generator_request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"settings",
"confirm",
"expected_generator_revision",
"generator_request_id"
],
"additionalProperties": false
}Включает штатный сбор на всём сайте на 1–3600 секунд. Это влияет на нагрузку и журналирование посетителей. Уже активный монитор не перенастраивается. Нужны confirm:true и confirm_scope:"site_performance_collection". Opt-in monitor_profile:true plus expected_monitor_revision/monitor_request_id uses one durable native attempt. It retimes active capture without duplicate registrations, or starts an inactive complete capture. The native 4h/8h/day/week intervals require already restrictive slow-SQL/large-cache settings. No capture-setting write is added. Loss after arming is UNKNOWN: never replay or compensate automatically. Legacy calls remain inactive-only and 1–3600 seconds.
seconds- целое число · обязательный параметр
confirm_scope- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
expected_monitor_revision- строка · обязательный параметр
monitor_request_id- строка · обязательный параметр
{
"type": "object",
"properties": {
"seconds": {
"type": "integer",
"minimum": 1,
"maximum": 604800,
"anyOf": [
{
"minimum": 1,
"maximum": 3600
},
{
"enum": [
14400,
28800,
86400,
604800
]
}
]
},
"confirm_scope": {
"type": "string",
"enum": [
"site_performance_collection"
]
},
"confirm": {
"type": "boolean"
},
"expected_monitor_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"monitor_request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
}
},
"required": [
"seconds",
"confirm_scope",
"confirm",
"expected_monitor_revision",
"monitor_request_id"
],
"additionalProperties": false
}