File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export interface Cluster {
2929 state ?: "IDLE" | "CREATING" | "UPDATING" | "DELETING" | "REPAIRING" ;
3030 mongoDBVersion ?: string ;
3131 connectionString ?: string ;
32- processIds ?: string [ ] ;
32+ processIds ?: Array < string > ;
3333}
3434
3535export function formatFlexCluster ( cluster : FlexClusterDescription20241113 ) : Cluster {
@@ -126,7 +126,7 @@ export async function getProcessIdsFromCluster(
126126 apiClient : ApiClient ,
127127 projectId : string ,
128128 clusterName : string
129- ) : Promise < string [ ] > {
129+ ) : Promise < Array < string > > {
130130 try {
131131 const cluster = await inspectCluster ( apiClient , projectId , clusterName ) ;
132132 return cluster . processIds || [ ] ;
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ export async function getSlowQueries(
118118 return { slowQueryLogs : [ ] } ;
119119 }
120120
121- // Make parallel API calls for each process ID
122121 const slowQueryPromises = processIds . map ( ( processId ) =>
123122 apiClient . listSlowQueries ( {
124123 params : {
@@ -136,7 +135,6 @@ export async function getSlowQueries(
136135
137136 const responses = await Promise . all ( slowQueryPromises ) ;
138137
139- // Combine all slow query logs from all process IDs
140138 const allSlowQueryLogs = responses . reduce ( ( acc , response ) => {
141139 return acc . concat ( response . slowQueries ?? [ ] ) ;
142140 } , [ ] as Array < SlowQueryLog > ) ;
You can’t perform that action at this time.
0 commit comments