Photometric magnetic-activity metrics tested with the Sun: Application to Kepler M dwarfs | Publicación