Предметные инструменты · perfmon
Производительность сайта · чтение · Чтение · perfmon_table_row_prepare
perfmon_site_perfmon_m293_readЧтениеДействия модуля perfmon.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Действия модуля perfmon.
profile- строка · обязательный параметр
operation- строка · обязательный параметр
key- строка / целое число · обязательный параметр
values- объект · обязательный параметр
{
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"site_row",
"site_row_orm_cache",
"site_row_global_cache",
"history_row",
"suggestion_row"
]
},
"operation": {
"type": "string",
"enum": [
"insert",
"update",
"delete"
]
},
"key": {
"type": [
"string",
"integer"
]
},
"values": {
"type": "object",
"properties": {
"LID": {
"type": "string",
"maxLength": 2
},
"SORT": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"DEF": {
"type": "string",
"maxLength": 1
},
"ACTIVE": {
"type": "string",
"maxLength": 1
},
"NAME": {
"type": "string",
"maxLength": 50
},
"DIR": {
"type": "string",
"maxLength": 50
},
"FORMAT_DATE": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"FORMAT_DATETIME": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"FORMAT_NAME": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"WEEK_START": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"CHARSET": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"LANGUAGE_ID": {
"type": "string",
"maxLength": 2
},
"DOC_ROOT": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"DOMAIN_LIMITED": {
"type": "string",
"maxLength": 1
},
"SERVER_NAME": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"SITE_NAME": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"EMAIL": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"CULTURE_ID": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"ID": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"TIMESTAMP_X": {
"type": [
"string",
"null"
],
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
},
"TOTAL_MARK": {
"type": [
"number",
"null"
]
},
"ACCELERATOR_ENABLED": {
"type": [
"string",
"null"
],
"enum": [
"Y",
"N",
null
]
},
"SQL_MD5": {
"type": [
"string",
"null"
],
"maxLength": 32
},
"SQL_COUNT": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 2147483647
},
"SQL_TIME": {
"type": [
"number",
"null"
]
},
"TABLE_NAME": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"TABLE_ALIAS": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"COLUMN_NAMES": {
"type": [
"string",
"null"
],
"maxLength": 250
},
"SQL_TEXT": {
"type": [
"string",
"null"
],
"maxLength": 65535
},
"SQL_EXPLAIN": {
"type": [
"string",
"object",
"null"
],
"oneOf": [
{
"type": "string",
"maxLength": 65536
},
{
"type": "null"
},
{
"type": "object",
"properties": {
"encoding": {
"type": "string",
"enum": [
"serialized",
"json"
]
},
"value": {
"description": "Any JSON value, including null"
}
},
"required": [
"encoding",
"value"
],
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}
},
"required": [
"profile",
"operation",
"key",
"values"
],
"additionalProperties": false
}Действия модуля perfmon.
profile- строка · обязательный параметр
operation- строка · обязательный параметр
key- строка / целое число · обязательный параметр
values- объект · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
{
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"site_row",
"site_row_orm_cache",
"site_row_global_cache",
"history_row",
"suggestion_row"
]
},
"operation": {
"type": "string",
"enum": [
"insert",
"update",
"delete"
]
},
"key": {
"type": [
"string",
"integer"
]
},
"values": {
"type": "object",
"properties": {
"LID": {
"type": "string",
"maxLength": 2
},
"SORT": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"DEF": {
"type": "string",
"maxLength": 1
},
"ACTIVE": {
"type": "string",
"maxLength": 1
},
"NAME": {
"type": "string",
"maxLength": 50
},
"DIR": {
"type": "string",
"maxLength": 50
},
"FORMAT_DATE": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"FORMAT_DATETIME": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"FORMAT_NAME": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"WEEK_START": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"CHARSET": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"LANGUAGE_ID": {
"type": "string",
"maxLength": 2
},
"DOC_ROOT": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"DOMAIN_LIMITED": {
"type": "string",
"maxLength": 1
},
"SERVER_NAME": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"SITE_NAME": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"EMAIL": {
"type": [
"string",
"null"
],
"maxLength": 255
},
"CULTURE_ID": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647
},
"ID": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"TIMESTAMP_X": {
"type": [
"string",
"null"
],
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
},
"TOTAL_MARK": {
"type": [
"number",
"null"
]
},
"ACCELERATOR_ENABLED": {
"type": [
"string",
"null"
],
"enum": [
"Y",
"N",
null
]
},
"SQL_MD5": {
"type": [
"string",
"null"
],
"maxLength": 32
},
"SQL_COUNT": {
"type": [
"integer",
"null"
],
"minimum": 0,
"maximum": 2147483647
},
"SQL_TIME": {
"type": [
"number",
"null"
]
},
"TABLE_NAME": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"TABLE_ALIAS": {
"type": [
"string",
"null"
],
"maxLength": 50
},
"COLUMN_NAMES": {
"type": [
"string",
"null"
],
"maxLength": 250
},
"SQL_TEXT": {
"type": [
"string",
"null"
],
"maxLength": 65535
},
"SQL_EXPLAIN": {
"type": [
"string",
"object",
"null"
],
"oneOf": [
{
"type": "string",
"maxLength": 65536
},
{
"type": "null"
},
{
"type": "object",
"properties": {
"encoding": {
"type": "string",
"enum": [
"serialized",
"json"
]
},
"value": {
"description": "Any JSON value, including null"
}
},
"required": [
"encoding",
"value"
],
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
}
},
"required": [
"profile",
"operation",
"key",
"values",
"expected_revision",
"request_id"
],
"additionalProperties": false
}