From 67427e4a91bcb31dc84714e4d3d77ceed6ce08b2 Mon Sep 17 00:00:00 2001 From: Robin Knaur Date: Wed, 12 Jan 2022 12:48:51 +0100 Subject: [PATCH 1/2] Add ServiceInfo to status board Status model --- model/status_board/v1/status_type.model | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/status_board/v1/status_type.model b/model/status_board/v1/status_type.model index 44d6c25e..b3a99839 100644 --- a/model/status_board/v1/status_type.model +++ b/model/status_board/v1/status_type.model @@ -25,6 +25,9 @@ class Status { // The associated service ID. Service Service + // Additional Service related data. + ServiceInfo ServiceInfo + // A status message for the given service. Status String From 05f90ab1d79d00d37d8066b438a4226424a85387 Mon Sep 17 00:00:00 2001 From: Robin Knaur Date: Fri, 28 Jan 2022 09:53:07 +0100 Subject: [PATCH 2/2] Add missing service info struct --- model/status_board/v1/service_info_type.model | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 model/status_board/v1/service_info_type.model diff --git a/model/status_board/v1/service_info_type.model b/model/status_board/v1/service_info_type.model new file mode 100644 index 00000000..b6356fc1 --- /dev/null +++ b/model/status_board/v1/service_info_type.model @@ -0,0 +1,24 @@ +/* +Copyright (c) 2021 Red Hat, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Definition of a Status Board service info. +struct ServiceInfo { + // Full name of the service + Fullname string + + // Type of the service status + StatusType string +}