create a definition for creating the monitor