How to add long term sensor to graph and sum internet outages

I followed steps here using the Ping integration, but after looking through the documentation, I can’t seem to figure out what I need to do to have a long term history, I’m not sure what entities need to be created and which state_class needs to be on which entities. This data will help me decide if I should switch my Internet Service Provider