Read automatic discount metafields from liquid

I need to create an automatic discount, but I also need to preview the discount on the front end. I’ve stored some necessary information in the discount’s metafields, but I’m unsure how to retrieve them.