Method: OpenC3::MicroserviceStatusModel#initialize

Defined in:
lib/openc3/models/microservice_status_model.rb

#initialize(name:, state: nil, count: 0, error: nil, custom: nil, updated_at: nil, plugin: nil, scope:) ⇒ MicroserviceStatusModel

Returns a new instance of MicroserviceStatusModel.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/openc3/models/microservice_status_model.rb', line 48

def initialize(
  name:,
  state: nil,
  count: 0,
  error: nil,
  custom: nil,
  updated_at: nil,
  plugin: nil,
  scope:
)
  super("#{scope}__#{PRIMARY_KEY}", name: name, updated_at: updated_at, plugin: plugin, scope: scope)
  @state = state
  @count = count
  @error = error
  @custom = custom
end