[jira] [Commented] (EAGLE-635) Refactor policy parser and validator for richer plan details and better performance

2016-10-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15587436#comment-15587436
 ] 

ASF GitHub Bot commented on EAGLE-635:
--

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/529


> Refactor policy parser and validator for richer plan details and better 
> performance
> ---
>
> Key: EAGLE-635
> URL: https://issues.apache.org/jira/browse/EAGLE-635
> Project: Eagle
>  Issue Type: Improvement
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> h2. Changes
> * Refactor policy parser and validator for richer plan details and better 
> performance
> * Decouple PolicyExecutionPlan and PolicyValidation
> h2. API
> * Parse API
> {code}
> POST /metadata/policies/parse 
> Accept-Type: text
> from HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX#window.timeBatch(2 min) select 
> cmd, user, count() as total_count group by cmd,user insert into 
> HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX_OUT"
> {code}
> * Validation API
> {code}
> POST /metadata/policies/validate 
> Accept-Type: application/json
> {
>"name": "hdfsPolicy",
>"description": "hdfsPolicy",
>"inputStreams": [
>   "HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX"
>],
>"outputStreams": [
>   "HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX_OUT"
>],
>"definition": {
>   "type": "siddhi",
>   "value": "from 
> HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX#window.timeBatch(2 min) select cmd, 
> user, count() as total_count group by cmd,user insert into 
> HDFS_AUDIT_LOG_ENRICHED_STREAM_SANDBOX_OUT "
>},
>"partitionSpec": [
>   {
>  "streamId": "hdfs_audit_log_enriched_stream",
>  "type": "GROUPBY",
>  "columns" : [
> "cmd"
>  ]
>   }
>],
>"parallelismHint": 2
> }
> {code}



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


[jira] [Commented] (EAGLE-635) Refactor policy parser and validator for richer plan details and better performance

2016-10-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/EAGLE-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15586187#comment-15586187
 ] 

ASF GitHub Bot commented on EAGLE-635:
--

GitHub user haoch opened a pull request:

https://github.com/apache/incubator-eagle/pull/529

[EAGLE-635] Refactor policy parser and validator for richer plan details 
and better performance

- Refactor policy parser and validator for richer plan details and better 
performance
- Decouple PolicyExecutionPlan and PolicyValidation

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/haoch/incubator-eagle RefactorPolicyValidator

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/529.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #529






> Refactor policy parser and validator for richer plan details and better 
> performance
> ---
>
> Key: EAGLE-635
> URL: https://issues.apache.org/jira/browse/EAGLE-635
> Project: Eagle
>  Issue Type: Improvement
>Affects Versions: v0.5.0
>Reporter: Hao Chen
>Assignee: Hao Chen
> Fix For: v0.5.0
>
>
> * Refactor policy parser and validator for richer plan details and better 
> performance
> * Decouple PolicyExecutionPlan and PolicyValidation



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