sql server in-memory database

Hi

Is there a way to monitor the memory in use on IN MEMORY databases, had an issue over the weekend so would like to be alerted when DB is 75% away from failing.

Error message we recieved is  Out of database level user memory quota: requested = 4835; available = 1267; quota = 34359738368; operation = 2.