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