I should update this answer.. with the newer Edge Server / Data Stream you can actually set values directly.
Whether you use the full XDM format, and map values in your schemas, or you use the Adobe Data model, where you can set your metrics and dimensions (props, eVars, events, etc) directly, and...