spits out new sse condition/data json from old alert id to help with generating UI models also moves this api code into another file