diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts b/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts index 4f38e27f31..24e2c4ae05 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts @@ -80,8 +80,8 @@ export const fetchExplains = async ( }; const [classicResult, jsonResult] = await Promise.all([ - mysqlMethods.getExplainMysql(payload).then(getActionResult), - mysqlMethods.getExplainJSONMysql(payload).then(getActionResult), + mysqlMethods.getExplain(payload).then(getActionResult), + mysqlMethods.getExplainJSON(payload).then(getActionResult), ]); const jsonValue = parseExplain(jsonResult); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts index 2011dea57d..315b50e0b5 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts @@ -44,11 +44,11 @@ export const mysqlMethods = { return result.mysql_show_table_status.action_id; }, - getExplainJSONMysql: async ({ example, queryId, placeholders }) => { + getExplainJSON: async ({ example, queryId, placeholders }) => { try { const payload = getExplainPayload(example, queryId, placeholders); - const result = await MysqlDatabaseService.getExplainJSONMysql(payload); + const result = await MysqlDatabaseService.getExplainJSON(payload); return result.mysql_explain_json.action_id; } catch (e) { @@ -58,11 +58,11 @@ export const mysqlMethods = { } }, - getExplainMysql: async ({ example, queryId, placeholders }) => { + getExplain: async ({ example, queryId, placeholders }) => { try { const payload = getExplainPayload(example, queryId, placeholders); - const result = await MysqlDatabaseService.getExplainMysql(payload); + const result = await MysqlDatabaseService.getExplain(payload); return result.mysql_explain.action_id; } catch (e) { diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts index 3ef079ebc0..13c0e8b491 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts @@ -19,13 +19,13 @@ export default { return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, - getExplainJSONMysql(body) { + getExplainJSON(body) { const requestBody = { mysql_explain_json: body }; return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, - getExplainMysql(body) { + getExplain(body) { const requestBody = { mysql_explain: body }; return apiRequest.post('/v1/actions:startServiceAction', requestBody);