add repair functionality
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -625,12 +625,12 @@ func (c *CronTask) insertDailyAggregates(ctx context.Context, table string, agg
|
||||
defer tx.Rollback()
|
||||
|
||||
driver := strings.ToLower(dbConn.DriverName())
|
||||
placeholders := makePlaceholders(driver, 29)
|
||||
placeholders := makePlaceholders(driver, 30)
|
||||
insert := fmt.Sprintf(`
|
||||
INSERT INTO %s (
|
||||
"Name","Vcenter","VmId","VmUuid","ResourcePool","Datacenter","Cluster","Folder",
|
||||
"ProvisionedDisk","VcpuCount","RamGB","IsTemplate","PoweredOn","SrmPlaceholder",
|
||||
"CreationTime","DeletionTime","SamplesPresent","AvgVcpuCount","AvgRamGB","AvgProvisionedDisk",
|
||||
"CreationTime","DeletionTime","SnapshotTime","SamplesPresent","AvgVcpuCount","AvgRamGB","AvgProvisionedDisk",
|
||||
"AvgIsPresent","PoolTinPct","PoolBronzePct","PoolSilverPct","PoolGoldPct","Tin","Bronze","Silver","Gold"
|
||||
) VALUES (%s)
|
||||
`, table, placeholders)
|
||||
@@ -674,6 +674,7 @@ INSERT INTO %s (
|
||||
v.srmPlaceholder,
|
||||
v.creation,
|
||||
v.deletion,
|
||||
v.lastSeen,
|
||||
v.samples,
|
||||
avgVcpu,
|
||||
avgRam,
|
||||
|
||||
Reference in New Issue
Block a user