Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ public class Batch {
private String startedAt;
private String finishedAt;
private String duration;
private String batchStrategy;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.meilisearch.sdk.model.batch.res;

import lombok.Data;

@Data
public class EmbedderRequests {
private int total;
private int failed;
private String lastError;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import com.meilisearch.sdk.enums.OperationType;
import com.meilisearch.sdk.model.TaskStatus;

import java.util.HashMap;
import java.util.Map;

import lombok.Data;

@Data
Expand All @@ -11,4 +14,8 @@ public class StatDetails {
private Map<TaskStatus, Integer> status;
private Map<OperationType, Integer> types;
private Map<String, Integer> indexUids;
private HashMap<String, String> progressTrace;
private HashMap<String, String> writeChannelCongestion;
private HashMap<String, String> internalDatabaseSizes;
private EmbedderRequests embedderRequests;
}
1 change: 1 addition & 0 deletions src/test/java/com/meilisearch/integration/BatchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void testGetBatch() {
assertTrue(batch.getStats().getTotalNbTasks() > 0);
assertNotNull(batch.getStats().getStatus());
assertNotNull(batch.getStats().getTypes());
assertNotNull(batch.getBatchStrategy());
assertNotNull(batch.getStats().getIndexUids());
assertNotNull(batch.getDuration());
assertNotNull(batch.getStartedAt());
Expand Down