err:=DB(ctx).Model(new(AlertingEngines)).Where("instance=? and `cluster` = ? and datasource_id=?",instance,cluster,datasourceId).Count(&total).Error
err:=DB(ctx).Model(new(AlertingEngines)).Where("instance=? and engine_cluster = ? and datasource_id=?",instance,cluster,datasourceId).Count(&total).Error
err=DB(ctx).Model(new(AlertingEngines)).Where("instance=? and `cluster` = ? and datasource_id=?",instance,cluster,datasourceId).Updates(fields).Error
err=DB(ctx).Model(new(AlertingEngines)).Where("instance=? and engine_cluster = ? and datasource_id=?",instance,cluster,datasourceId).Updates(fields).Error