Source code for mattermostdriver.endpoints.system

from .base import Base


[docs]class System(Base): """ This endpoint has a mix of different endpoints, not only /system """
[docs] def check_system_health(self): return self.client.get( '/system/ping' )
[docs] def recycle_database_connection(self): return self.client.post( '/database/recycle' )
[docs] def send_test_email(self, options=None): return self.client.post( '/email/test', options=options )
[docs] def get_configuration(self): return self.client.get( '/config' )
[docs] def update_configuration(self, options): return self.client.put( '/config', options=options )
[docs] def reload_configuration(self): return self.client.post( '/config/reload' )
[docs] def get_client_configuration(self, params): return self.client.get( '/config/client', params=params )
[docs] def upload_license_file(self, files): return self.client.post( '/license', files=files )
[docs] def remove_license_file(self): return self.client.delete( '/license' )
[docs] def get_client_license(self, params): return self.client.get( '/license/client', params=params )
[docs] def get_audits(self, params): return self.client.get( '/audits', params=params )
[docs] def invalidate_all_caches(self): return self.client.post( '/caches/invalidate', )
[docs] def get_logs(self, params): return self.client.get( '/logs', params=params )
[docs] def add_log_message(self, options): return self.client.post( '/logs', options=options )
[docs] def get_webrtc_token(self): return self.client.get( '/webrtc/token' )
[docs] def get_analytics(self, params): return self.client.get( '/analytics/old', params=params )
[docs] def get_configuration_environment(self): return self.client.get( '/config/environment' )
[docs] def test_aws_s3_connection(self, options=None): return self.client.post( '/file/s3_test', options=options )