You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/13 17:37:58 UTC

[jira] [Commented] (MINIFI-170) Change FlowStatusReport to be JSON

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

ASF GitHub Bot commented on MINIFI-170:
---------------------------------------

GitHub user apsaltis opened a pull request:

    https://github.com/apache/nifi-minifi/pull/65

    MINIFI-170 Change FlowStatusReport to be JSON

    The FlowStatus report were in a format that is close to but not JSON.
    
    FlowStatusReport{controllerServiceStatusList=null, processorStatusList=[{name='GenerateFlowFile', processorHealth={runStatus='Running', hasBulletins=false, validationErrorList=[]}, processorStats={activeThreads=0, flowfilesReceived=0, bytesRead=0, bytesWritten=1024000, flowfilesSent=0, invocations=100, processingNanos=106080516}, bulletinList=[]}], connectionStatusList=null, remoteProcessGroupStatusList=null, instanceStatus=null, systemDiagnosticsStatus=null, reportingTaskStatusList=null, errorsGeneratingReport=[]}
    
    This makes it hard to process. The changes in this P/R result in a FlowStatus report that is valid JSON, thus enabling standard tools to be used to process the reports. 


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

    $ git pull https://github.com/apsaltis/nifi-minifi MINIFI-170

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

    https://github.com/apache/nifi-minifi/pull/65.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 #65
    
----
commit 2401547287284a8fd207fdd3bf14e3a76d3ba157
Author: Andrew Psaltis <ps...@gmail.com>
Date:   2016-12-13T17:15:40Z

    Changing FlowStatus report to be JSON based

commit c6b27408c525509c7019a1bc63d4b3c94571897f
Author: Andrew Psaltis <ps...@gmail.com>
Date:   2016-12-13T17:32:11Z

    cleaning up imports

----


> Change FlowStatusReport to be JSON
> ----------------------------------
>
>                 Key: MINIFI-170
>                 URL: https://issues.apache.org/jira/browse/MINIFI-170
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>          Components: utilities
>    Affects Versions: 0.1.0, 0.2.0
>            Reporter: Andrew Psaltis
>            Assignee: Andrew Psaltis
>
> The current FlowStatus report is in a format that is close to but not JSON. 
> {code}
> FlowStatusReport{controllerServiceStatusList=null, processorStatusList=[{name='GenerateFlowFile', processorHealth={runStatus='Running', hasBulletins=false, validationErrorList=[]}, processorStats={activeThreads=0, flowfilesReceived=0, bytesRead=0, bytesWritten=1024000, flowfilesSent=0, invocations=100, processingNanos=106080516}, bulletinList=[]}], connectionStatusList=null, remoteProcessGroupStatusList=null, instanceStatus=null, systemDiagnosticsStatus=null, reportingTaskStatusList=null, errorsGeneratingReport=[]}
> {code}
> This makes it painful for consumption by other tools as there needs to be custom script written to either massage it into JSON or to parse it. 



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