module Mattermost::Endpoint::System
Public Instance Methods
add_log_message(level, message)
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 60 def add_log_message(level, message) post("/logs", :body => { :level => level, :message => message }.to_json) end
get_analytics(team_id, name = 'standard')
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 71 def get_analytics(team_id, name = 'standard') url = "/analytics/old?name=#{name}" if team_id != nil url = "#{url}&team_id=#{team_id}" end get(url) end
get_audits(max = 60)
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 48 def get_audits(max = 60) get("/audits?per_page=#{max}") end
get_client_configuration()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 31 def get_client_configuration get("/config/client?format=old") end
get_client_license()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 44 def get_client_license get("/license/client?format=old") end
get_configuration()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 19 def get_configuration get("/config") end
get_logs(max = 60)
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 56 def get_logs(max = 60) get("/logs?per_page=#{max}") end
get_webrtc_token()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 67 def get_webrtc_token get("/webrtc/token") end
invalidate_server_caches()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 52 def invalidate_server_caches post("/caches/invalidate") end
ping()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 7 def ping get("/system/ping") end
recycle_database_connections()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 11 def recycle_database_connections post("/database/recycle") end
reload_configuration()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 27 def reload_configuration post("/config/reload") end
remove_license_file()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 40 def remove_license_file delete("/license") end
send_test_email()
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 15 def send_test_email post("/email/test") end
update_configuration(config)
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 23 def update_configuration(config) put("/config", :body => config.to_json) end
upload_license_file(file_name)
click to toggle source
# File lib/mattermost/endpoint/system.rb, line 35 def upload_license_file(file_name) #post("/license", license) raise NotImplementedError end