@@ -429,6 +429,42 @@ export class ApiClient {
429
429
return data ;
430
430
}
431
431
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
+
432
468
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
433
469
async listDatabaseUsers ( options : FetchOptions < operations [ "listDatabaseUsers" ] > ) {
434
470
const { data, error, response } = await this . client . GET (
@@ -508,6 +544,18 @@ export class ApiClient {
508
544
return data ;
509
545
}
510
546
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
+
511
559
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
512
560
async listOrganizations ( options ?: FetchOptions < operations [ "listOrganizations" ] > ) {
513
561
const { data, error, response } = await this . client . GET ( "/api/atlas/v2/orgs" , options ) ;
0 commit comments