Skip to content

Commit

Permalink
nifi: show state
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jan 20, 2025
1 parent e370418 commit 95be4f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class NifiQueueActionTypeEnum(Enum):
CLEAR_QUEUE = "CLEAR_QUEUE"
LIST_QUEUE = "LIST_QUEUE"
CLEAR_STATE = "CLEAR_STATE"
VIEW_STATE = "VIEW_STATE"
TERMINATE_PROCESS = "TERMINATE_PROCESS"
CUSTOM_CALLBACK = "CUSTOM_CALLBACK"
REFRESH_TEMPLATE = "REFRESH_TEMPLATE"
Expand Down
3 changes: 3 additions & 0 deletions services/admin/admin_integration_remote_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def _get_new_queue(id_processor: str, action_type: str, data: dict):
if NifiQueueActionTypeEnum.CLEAR_STATE.value == action_type:
queue.url = f"nifi-api/processors/{escape(id_processor)}/state/clear-requests"
queue.method = "POST"
if NifiQueueActionTypeEnum.VIEW_STATE.value == action_type:
queue.url = f"nifi-api/processors/{escape(id_processor)}/state"
queue.method = "GET"
elif NifiQueueActionTypeEnum.SET_STATE.value == action_type:
queue.url = f"nifi-api/processors/{escape(id_processor)}/diagnostics"
queue.method = "GET"
Expand Down

0 comments on commit 95be4f0

Please sign in to comment.