Class: HermesAgent::Client::Entities::PlatformStatus

Inherits:
HermesAgent::Client::Entity show all
Defined in:
lib/hermes_agent/client/entities/health.rb

Overview

The connection status of a single platform within a detailed health check (one entry of HealthDetails#platforms).

Instance Method Summary collapse

Methods inherited from HermesAgent::Client::Entity

#==, #[], #eql?, #hash, #to_h

Instance Method Details

#error_codeString?

A machine-readable error code, or nil when there is no error.

Returns:

  • (String, nil)


42
43
44
# File 'lib/hermes_agent/client/entities/health.rb', line 42

def error_code
  self["error_code"]
end

#error_messageString?

A human-readable error message, or nil when there is no error.

Returns:

  • (String, nil)


50
51
52
# File 'lib/hermes_agent/client/entities/health.rb', line 50

def error_message
  self["error_message"]
end

#stateString?

The connection state, e.g. "connected".

Returns:

  • (String, nil)


34
35
36
# File 'lib/hermes_agent/client/entities/health.rb', line 34

def state
  self["state"]
end

#updated_atString?

When this platform status was last updated (ISO-8601 timestamp string).

Returns:

  • (String, nil)


59
60
61
# File 'lib/hermes_agent/client/entities/health.rb', line 59

def updated_at
  self["updated_at"]
end