module Octokit::Client::ServiceStatus
Methods for the GitHub Status API
Constants
- STATUS_ROOT
Root for status API @private
Public Instance Methods
github_status()
click to toggle source
Returns the current system status
@return [Sawyer::Resource] GitHub status @see status.github.com/api#api-current-status
# File lib/octokit/client/service_status.rb, line 17 def github_status get(STATUS_ROOT).rels[:status].get.data end
github_status_last_message()
click to toggle source
Returns the last human communication, status, and timestamp.
@return [Sawyer::Resource] GitHub status last message @see status.github.com/api#api-last-message
# File lib/octokit/client/service_status.rb, line 25 def github_status_last_message get(STATUS_ROOT).rels[:last_message].get.data end
github_status_messages()
click to toggle source
Returns the most recent human communications with status and timestamp.
@return [Array<Sawyer::Resource>] GitHub status messages @see status.github.com/api#api-recent-messages
# File lib/octokit/client/service_status.rb, line 33 def github_status_messages get(STATUS_ROOT).rels[:messages].get.data end