@@ -429,6 +429,42 @@ export class ApiClient {
429429 return data ;
430430 }
431431
432+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
433+ async listDropIndexes ( options : FetchOptions < operations [ "listDropIndexes" ] > ) {
434+ const { data, error, response } = await this . client . GET (
435+ "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/dropIndexSuggestions" ,
436+ options
437+ ) ;
438+ if ( error ) {
439+ throw ApiClientError . fromError ( response , error ) ;
440+ }
441+ return data ;
442+ }
443+
444+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
445+ async listSchemaAdvice ( options : FetchOptions < operations [ "listSchemaAdvice" ] > ) {
446+ const { data, error, response } = await this . client . GET (
447+ "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/schemaAdvice" ,
448+ options
449+ ) ;
450+ if ( error ) {
451+ throw ApiClientError . fromError ( response , error ) ;
452+ }
453+ return data ;
454+ }
455+
456+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
457+ async listClusterSuggestedIndexes ( options : FetchOptions < operations [ "listClusterSuggestedIndexes" ] > ) {
458+ const { data, error, response } = await this . client . GET (
459+ "/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/performanceAdvisor/suggestedIndexes" ,
460+ options
461+ ) ;
462+ if ( error ) {
463+ throw ApiClientError . fromError ( response , error ) ;
464+ }
465+ return data ;
466+ }
467+
432468 // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
433469 async listDatabaseUsers ( options : FetchOptions < operations [ "listDatabaseUsers" ] > ) {
434470 const { data, error, response } = await this . client . GET (
@@ -508,6 +544,18 @@ export class ApiClient {
508544 return data ;
509545 }
510546
547+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
548+ async listSlowQueries ( options : FetchOptions < operations [ "listSlowQueries" ] > ) {
549+ const { data, error, response } = await this . client . GET (
550+ "/api/atlas/v2/groups/{groupId}/processes/{processId}/performanceAdvisor/slowQueryLogs" ,
551+ options
552+ ) ;
553+ if ( error ) {
554+ throw ApiClientError . fromError ( response , error ) ;
555+ }
556+ return data ;
557+ }
558+
511559 // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
512560 async listOrganizations ( options ?: FetchOptions < operations [ "listOrganizations" ] > ) {
513561 const { data, error, response } = await this . client . GET ( "/api/atlas/v2/orgs" , options ) ;
0 commit comments