mirror of https://github.com/apache/lucene.git
SOLR-10373: Override registerV2() in AutoScalingHandler, Fix api spec name used in AutoScalingHandler and merge problem in api spec
This commit is contained in:
parent
3aa0da78c2
commit
17490d30f3
|
@ -552,6 +552,11 @@ public class AutoScalingHandler extends RequestHandlerBase implements Permission
|
|||
|
||||
@Override
|
||||
public Collection<Api> getApis() {
|
||||
return ApiBag.wrapRequestHandlers(this, "scaling.Commands");
|
||||
return ApiBag.wrapRequestHandlers(this, "autoscaling.Commands");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean registerV2() {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue