Skip to content

Commit

Permalink
Add schemav1.Instance{}
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Aug 22, 2024
1 parent 867d420 commit c8fbc7e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/schema/v1/instance.go
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit c8fbc7e

Please sign in to comment.