Module: TreasureData::API::ServerStatus
- Included in:
- TreasureData::API
- Defined in:
- lib/td/client/api/server_status.rb
Instance Method Summary collapse
-
#server_status ⇒ String
> status:String.
Instance Method Details
#server_status ⇒ String
> status:String
10 11 12 13 14 15 16 17 18 |
# File 'lib/td/client/api/server_status.rb', line 10 def server_status code, body, res = get('/v3/system/server_status') if code != "200" return "Server is down (#{code})" end js = checked_json(body, %w[status]) status = js['status'] return status end |