[ 
https://issues.apache.org/jira/browse/EAGLE-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hao Chen updated EAGLE-627:
---------------------------
    Description: 
Add Policy PolicyValidator and Validation API on 

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
    * Validate syntax is ok 
    * Explain details like inputStreams and outputStreams

API: 
{code}
POST /metadata/policies/validate

Request: PolicyDefinition
Response: PolicyValidation
{code}

Reference:
* 
https://github.com/apache/incubator-eagle/blob/master/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/engine/coordinator/PolicyDefinition.java
* 
https://github.com/apache/incubator-eagle/blob/master/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/PolicyValidation.java


  was:
Add Policy PolicyValidator and Validation API on 

* Validate SiddhiQL syntax problem
* Provide Internal information like: 
    * Validate syntax is ok 
    * Explain details like inputStreams and outputStreams

API: 
{code}
POST /metadata/policies/validate

Request: PolicyDefinition
Response: PolicyValidation
{code}



> Add PolicyValidator and Validation API
> --------------------------------------
>
>                 Key: EAGLE-627
>                 URL: https://issues.apache.org/jira/browse/EAGLE-627
>             Project: Eagle
>          Issue Type: Bug
>    Affects Versions: v0.5.0
>            Reporter: Hao Chen
>            Assignee: Hao Chen
>             Fix For: v0.5.0
>
>
> Add Policy PolicyValidator and Validation API on 
> * Validate SiddhiQL syntax problem
> * Provide Internal information like: 
>     * Validate syntax is ok 
>     * Explain details like inputStreams and outputStreams
> API: 
> {code}
> POST /metadata/policies/validate
> Request: PolicyDefinition
> Response: PolicyValidation
> {code}
> Reference:
> * 
> https://github.com/apache/incubator-eagle/blob/master/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/main/java/org/apache/eagle/alert/engine/coordinator/PolicyDefinition.java
> * 
> https://github.com/apache/incubator-eagle/blob/master/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/PolicyValidation.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to