-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3439d60
commit 9ec6263
Showing
6 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { apiRequestActions } from 'shared/components/helpers/api'; | ||
import { apiRequest } from 'shared/components/helpers/api'; | ||
|
||
export default { | ||
getTraditionalExplainJSONMongo(body) { | ||
const requestBody = { mongodb_explain: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
}; |
12 changes: 6 additions & 6 deletions
12
pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import { apiRequestActions } from 'shared/components/helpers/api'; | ||
import { apiRequest } from 'shared/components/helpers/api'; | ||
|
||
export default { | ||
getShowCreateTableMySQL(body) { | ||
const requestBody = { mysql_show_create_table: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
|
||
getMysqlTableStatus(body) { | ||
const requestBody = { mysql_show_table_status: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
|
||
getMysqlIndex(body) { | ||
const requestBody = { mysql_show_index: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
|
||
getTraditionalExplainJSONMysql(body) { | ||
const requestBody = { mysql_explain_traditional_json: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
|
||
getTraditionalExplainMysql(body) { | ||
const requestBody = { mysql_explain_json: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
}; |
6 changes: 3 additions & 3 deletions
6
pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { apiRequestActions } from 'shared/components/helpers/api'; | ||
import { apiRequest } from 'shared/components/helpers/api'; | ||
|
||
export default { | ||
getPostgreSQLIndex(body) { | ||
const requestBody = { postgres_show_index: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
getShowCreateTablePostgreSQL(body) { | ||
const requestBody = { postgres_show_create_table: body }; | ||
|
||
return apiRequestActions.post<any, any>(':startServiceAction', requestBody); | ||
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { apiRequestActions } from '../helpers/api'; | ||
import { apiRequest } from '../helpers/api'; | ||
import { ActionRequest, ActionResponse } from './Actions.types'; | ||
|
||
export const ActionsService = { | ||
getActionResult(body: ActionRequest): Promise<ActionResponse> { | ||
return apiRequestActions.get<any, any>(`/${body.action_id}`); | ||
return apiRequest.get<any, any>(`/v1/actions/${body.action_id}`); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters