Commit 05d37640 authored by Valery Sizov's avatar Valery Sizov

[Geo node status] Expose updated_at through the API

parent 1f3e8f4f
...@@ -58,7 +58,7 @@ class GeoNodeStatus < ActiveRecord::Base ...@@ -58,7 +58,7 @@ class GeoNodeStatus < ActiveRecord::Base
def self.allowed_params def self.allowed_params
excluded_params = %w(id created_at updated_at).freeze excluded_params = %w(id created_at updated_at).freeze
extra_params = %w(success health health_status last_event_timestamp cursor_last_event_timestamp version revision storage_shards).freeze extra_params = %w(success health health_status last_event_timestamp cursor_last_event_timestamp version revision storage_shards updated_at).freeze
self.column_names - excluded_params + extra_params self.column_names - excluded_params + extra_params
end end
......
...@@ -1227,6 +1227,8 @@ module API ...@@ -1227,6 +1227,8 @@ module API
expose :namespaces, using: NamespaceBasic expose :namespaces, using: NamespaceBasic
expose :updated_at
# We load GeoNodeStatus data in two ways: # We load GeoNodeStatus data in two ways:
# #
# 1. Directly by asking a Geo node via an API call # 1. Directly by asking a Geo node via an API call
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment