diff --git a/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java b/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java index 5173251f8cc..759ca140bbd 100644 --- a/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java +++ b/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java @@ -552,6 +552,11 @@ public class AutoScalingHandler extends RequestHandlerBase implements Permission @Override public Collection getApis() { - return ApiBag.wrapRequestHandlers(this, "scaling.Commands"); + return ApiBag.wrapRequestHandlers(this, "autoscaling.Commands"); + } + + @Override + public Boolean registerV2() { + return Boolean.TRUE; } } diff --git a/solr/core/src/resources/apispec/autoscaling.Commands.json b/solr/core/src/resources/apispec/autoscaling.Commands.json index 7d6633cf704..77b42cdb798 100644 --- a/solr/core/src/resources/apispec/autoscaling.Commands.json +++ b/solr/core/src/resources/apispec/autoscaling.Commands.json @@ -42,34 +42,11 @@ "actions": { "type": "array", "description": "The actions to be performed in sequence when the trigger is activated", - "event": { - "type": "string", - "description": "The event type on which to set a trigger" - }, - "waitFor": { - "type": "string", - "description": "The amount of time to wait after the trigger condition is satisfied before trigger is activated" - }, - "lowerBound": { - "type": "number", - "description": "The lower bound of the condition below which the trigger is activated" - }, - "upperBound": { - "type": "number", - "description": "The upper bound of the condition below which the trigger is activated" - }, - "enabled": { - "type": "boolean", - "description": "The state of the trigger" - }, - "actions": { - "type": "array", - "description": "The actions to be performed in sequence when the trigger is activated", - "items": { - "type": "object" - } + "items": { + "type": "object" } - }, + } + }, "required": [ "name", "event"