I would call this a comedic cautionary tale in the form of a poem…

The Pig - Irish Children's Songs - Ireland - Mama Lisa's World: Children's Songs and Rhymes from Around the World  - Intro Image


Versions of this are recited as a toast for St. Patrick's Day.


This is sung as a song and also read as a poem.