aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 308c428..f0063e5 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -654,6 +654,13 @@ class Mastodon:
654 """ 654 """
655 return self.__api_request('GET', '/api/v1/instance/peers') 655 return self.__api_request('GET', '/api/v1/instance/peers')
656 656
657 @api_version("3.0.0", "3.0.0", "3.0.0")
658 def instance_health(self):
659 """
660 Basic health check. Returns True if healthy, False if not.
661 """
662 return self.__api_request('GET', '/health', parse=False).decode("utf-8") == "success"
663
657 ### 664 ###
658 # Reading data: Timelines 665 # Reading data: Timelines
659 ## 666 ##
Powered by cgit v1.2.3 (git 2.41.0)