[ https://issues.apache.org/jira/browse/NIFI-4849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393212#comment-16393212 ]
ASF GitHub Bot commented on NIFI-4849: -------------------------------------- Github user mcgilman commented on a diff in the pull request: https://github.com/apache/nifi/pull/2468#discussion_r173508849 --- Diff: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/EntityFactory.java --- @@ -77,6 +79,27 @@ public final class EntityFactory { + public ProcessorDiagnosticsEntity createProcessorDiagnosticsEntity(final ProcessorDiagnosticsDTO dto, final RevisionDTO revision, final PermissionsDTO processorPermissions, + final ProcessorStatusDTO status, final List<BulletinEntity> bulletins) { + final ProcessorDiagnosticsEntity entity = new ProcessorDiagnosticsEntity(); + entity.setRevision(revision); + if (dto != null) { + entity.setPermissions(processorPermissions); + entity.setId(dto.getProcessor().getId()); + if (processorPermissions != null && processorPermissions.getCanRead()) { + entity.setComponent(dto); + entity.setBulletins(bulletins); + } + } + + entity.setBulletins(bulletins); + return entity; + } + + private void pairDownDiagnostics(final ProcessorDiagnosticsDTO dto, final PermissionsDTO controllerPermissions) { --- End diff -- This is method OBE since the permission-based filtering happens in the service facade? > Add REST Endpoint for gathering Processor Diagnostics information > ----------------------------------------------------------------- > > Key: NIFI-4849 > URL: https://issues.apache.org/jira/browse/NIFI-4849 > Project: Apache NiFi > Issue Type: Sub-task > Components: Core Framework > Reporter: Mark Payne > Assignee: Mark Payne > Priority: Major > Fix For: 1.6.0 > > > We need to add a REST endpoint that will use the appropriate resources to > gather the Processor Diagnostics information. Information to return should > include things like: > * Processor config > * Processor status > * Garbage Collection info > * Repo Sizes > * Connection info for connections whose source or destination is the > processor > * Controller Services that the processor is referencing -- This message was sent by Atlassian JIRA (v7.6.3#76005)