|
@@ -20,6 +20,8 @@ import org.elasticsearch.common.time.DateFormatter;
|
|
|
import org.elasticsearch.core.TimeValue;
|
|
|
import org.elasticsearch.rest.RestRequest;
|
|
|
import org.elasticsearch.rest.RestResponse;
|
|
|
+import org.elasticsearch.rest.Scope;
|
|
|
+import org.elasticsearch.rest.ServerlessScope;
|
|
|
import org.elasticsearch.rest.action.RestResponseListener;
|
|
|
import org.elasticsearch.tasks.Task;
|
|
|
import org.elasticsearch.tasks.TaskInfo;
|
|
@@ -36,6 +38,7 @@ import static org.elasticsearch.common.util.set.Sets.addToCopy;
|
|
|
import static org.elasticsearch.rest.RestRequest.Method.GET;
|
|
|
import static org.elasticsearch.rest.action.admin.cluster.RestListTasksAction.generateListTasksRequest;
|
|
|
|
|
|
+@ServerlessScope(Scope.INTERNAL)
|
|
|
public class RestTasksAction extends AbstractCatAction {
|
|
|
|
|
|
private static final Set<String> RESPONSE_PARAMS = addToCopy(AbstractCatAction.RESPONSE_PARAMS, "detailed");
|