Trigger an automation when power is applied to an outlet?

I saw that this thread mentions a ‘core’ app in the beginning which allows to trigger an action when a power meter passes a threshold. Could somebody explain what this core app is? Sorry for the noob question.