Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 668e2d8

Browse files
committed
[client] Replace health check by me instead of threat actors
1 parent c01940e commit 668e2d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pycti/api/opencti_api_client.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,16 @@ def health_check(self):
376376
:rtype: bool
377377
"""
378378
try:
379-
test = self.threat_actor.list(first=1)
379+
self.app_logger.info("Health check (me)...")
380+
test = self.query(
381+
"""
382+
query {
383+
me {
384+
id
385+
}
386+
}
387+
"""
388+
)
380389
if test is not None:
381390
return True
382391
except Exception as err: # pylint: disable=broad-except

0 commit comments

Comments
 (0)