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" +}