SOLR-10373: Override registerV2() in AutoScalingHandler, Fix api spec name used in AutoScalingHandler and merge problem in api spec

This commit is contained in:
Shalin Shekhar Mangar 2017-05-12 14:00:27 +05:30
parent 3aa0da78c2
commit 17490d30f3
2 changed files with 10 additions and 28 deletions

View File

@ -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;
}
}

View File

@ -39,29 +39,6 @@
"type": "boolean",
"description": "The state of the trigger"
},
"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",