change endpoint to store cloudevent in events table
Some checks failed
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-09-13 12:58:22 +10:00
parent 446cd30d8e
commit eecf227cd8
8 changed files with 270 additions and 53 deletions

View File

@@ -8,8 +8,22 @@ import (
"database/sql"
)
type Events struct {
Eid int64
CloudId string
Source string
EventTime sql.NullInt64
ChainId string
VmId sql.NullString
EventKey sql.NullString
Datacenter sql.NullString
ComputeResource sql.NullString
UserName sql.NullString
Processed int64
}
type Inventory struct {
Iid sql.NullInt64
Iid int64
Name string
Vcenter string
VmId sql.NullString
@@ -29,7 +43,7 @@ type Inventory struct {
}
type Updates struct {
Uid sql.NullInt64
Uid int64
InventoryId sql.NullInt64
UpdateTime sql.NullInt64
UpdateType string