Operation | Deploying a Rule |
---|
URL | api/holmes-engine-mgmt/v1/rule |
---|
Method | PUT |
---|
Request | Message Type | JSON String |
---|
Message | { "engineid": "aplus-d", "content": "template header\n ruleId\n package packageName..." } |
---|
Field Name | Mandatory | Data Type | Default Value | Description |
---|
engineid | Y | string |
| the id of the rule engine which the rule is to be deployed to | content | Y | string |
| the content of the rule which should be fully in compliance with the grammatical regulations of Drools |
|
---|
Response | Success Code | 200 |
---|
Error Code | 499 |
---|
Message on Success | { "package": "package0281721", } |
---|
Message on Error | { "code": 499, "message": "The detailed error message is displayed here." } |
---|
Field Name | Description |
---|
package | the id of the package returned from the server | code | the error code returned from the server | message | the detailed message if any error occurs |
|
---|