Observations of vacuum spark dynamics from its X-ray emission