* add a class for checking pod connectivity * extend pod model to handle new functionality * add an admin frontend to list pods and re-trigger checks manually * add a daily worker to run through all the pods * add unit tests for most of the new code
19 lines
451 B
Ruby
19 lines
451 B
Ruby
class PodPresenter < BasePresenter
|
|
def base_hash(*_arg)
|
|
{
|
|
id: id,
|
|
host: host,
|
|
ssl: ssl,
|
|
status: status,
|
|
checked_at: checked_at,
|
|
response_time: response_time,
|
|
offline: offline?,
|
|
offline_since: offline_since,
|
|
created_at: created_at,
|
|
software: software,
|
|
error: error
|
|
}
|
|
end
|
|
|
|
alias_method :as_json, :base_hash
|
|
end
|