SOLR-9735: Fix autoscaling.Commands.json structure

This commit is contained in:
Shalin Shekhar Mangar 2017-10-26 15:14:11 +05:30
parent 0ddb8a03d3
commit b5d3d242ef
1 changed files with 21 additions and 22 deletions

View File

@ -14,7 +14,7 @@
},
"commands": {
"set-trigger": {
"type":"object",
"type": "object",
"description": "The set-trigger command allows you to add and update triggers on various system metrics",
"properties": {
"name": {
@ -49,11 +49,10 @@
}
}
},
"required": [
"name",
"event"
]
}
"required": [
"name",
"event"
]
},
"remove-trigger": {
"description": "Remove a trigger",
@ -88,21 +87,21 @@
"type": "array",
"description": "The stage of the trigger for which to listen",
"items": {
"type" : "string"
"type": "string"
}
},
"beforeAction": {
"type": "array",
"description": "The name of the action before which the listener should be notified",
"items": {
"type" : "string"
"type": "string"
}
},
"afterAction": {
"type": "array",
"description": "The name of the action after which the listener should be notified",
"items": {
"type" : "string"
"type": "string"
}
},
"class": {
@ -160,23 +159,23 @@
"name"
]
},
"set-policy" : {
"type":"object",
"set-policy": {
"type": "object",
"description": "The set-policy command allows you to add and update policies that apply to collections",
/* "patternProperties": {
"^.+$": {
"type": "array"
}
},*/
/* "patternProperties": {
"^.+$": {
"type": "array"
}
},*/
"additionalProperties": true
},
"set-cluster-policy" : {
"type" : "array",
"description" : "The set-cluster-policy command allows you to add and update cluster-level policy that acts as the base for all collection level policies, if any"
"set-cluster-policy": {
"type": "array",
"description": "The set-cluster-policy command allows you to add and update cluster-level policy that acts as the base for all collection level policies, if any"
},
"set-cluster-preferences" : {
"type" : "array",
"description" : "The set-cluster-preferences command allows you to add and update cluster-level preferences that are used to sort nodes for selection in cluster operations"
"set-cluster-preferences": {
"type": "array",
"description": "The set-cluster-preferences command allows you to add and update cluster-level preferences that are used to sort nodes for selection in cluster operations"
},
"remove-policy": {
"description": "Remove a policy",