metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From merrimanr <...@git.apache.org>
Subject [GitHub] incubator-metron pull request #489: METRON-623: Management UI
Date Fri, 31 Mar 2017 15:52:15 GMT
Github user merrimanr commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/489#discussion_r109191525
  
    --- Diff: metron-interface/metron-rest/src/main/java/org/apache/metron/rest/controller/GrokController.java
---
    @@ -53,4 +54,11 @@
         ResponseEntity<Map<String, String>> list() throws RestException {
             return new ResponseEntity<>(grokService.getCommonGrokPatterns(), HttpStatus.OK);
         }
    +
    +    @ApiOperation(value = "Retrieves a Grok statement from the classpath")
    +    @ApiResponse(message = "Grok statement", code = 200)
    +    @RequestMapping(value = "/get/statement", method = RequestMethod.GET)
    --- End diff --
    
    Getting the grokStatement from HDFS is a different REST endpoint.  The logic does mimic
GrokParser.openInputStream, it's just on the client side.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message