From c8fbc7e7842b5b8804151f1bf2680d8f15b49432 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 22 Aug 2024 09:44:29 +0200 Subject: [PATCH] Add `schemav1.Instance{}` --- pkg/schema/v1/instance.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/schema/v1/instance.go diff --git a/pkg/schema/v1/instance.go b/pkg/schema/v1/instance.go new file mode 100644 index 0000000..2519047 --- /dev/null +++ b/pkg/schema/v1/instance.go @@ -0,0 +1,20 @@ +package v1 + +import ( + "database/sql" + "github.com/icinga/icinga-go-library/types" +) + +type Instance struct { + Uuid types.Binary + Version string + KubernetesVersion sql.NullString + KubernetesHeartbeat types.UnixMilli + KubernetesApiReachable types.Bool + Message sql.NullString + Heartbeat types.UnixMilli +} + +func (Instance) TableName() string { + return "kubernetes_instance" +}