|
1 | 1 | # frozen_string_literal: true |
2 | 2 |
|
3 | 3 | module Types |
4 | | - class RuntimeStatusType < BaseEnum |
5 | | - description 'Represent all available types of statuses of a runtime' |
| 4 | + class RuntimeStatusType < Types::BaseObject |
| 5 | + description 'A runtime status information entry' |
6 | 6 |
|
7 | | - value :CONNECTED, 'No problem with connection, everything works as expected', value: 'connected' |
8 | | - value :DISCONNECTED, 'The runtime is disconnected, cause unknown', value: 'disconnected' |
| 7 | + field :configurations, Types::RuntimeStatusConfigurationType.connection_type, |
| 8 | + null: false, |
| 9 | + description: 'The detailed configuration entries for this runtime status (only for adapters)', |
| 10 | + method: :runtime_status_configurations |
| 11 | + field :feature_set, [String], null: false, description: 'The set of features supported by the runtime' |
| 12 | + field :identifier, String, null: false, description: 'The unique identifier for this runtime status' |
| 13 | + field :last_heartbeat, Types::TimeType, null: true, |
| 14 | + description: 'The timestamp of the last heartbeat received from the runtime' |
| 15 | + field :status, Types::RuntimeStatusStatusEnum, |
| 16 | + null: false, |
| 17 | + description: 'The current status of the runtime (e.g. running, stopped)' |
| 18 | + field :type, Types::RuntimeStatusTypeEnum, |
| 19 | + null: false, |
| 20 | + description: 'The type of runtime status information (e.g. adapter, execution)', method: :status_type |
| 21 | + |
| 22 | + id_field RuntimeStatus |
| 23 | + timestamps |
9 | 24 | end |
10 | 25 | end |
0 commit comments