how to set a vm to alert afer N polls

how to set a vm to alert afer N polls

Hi,
i am alerting cpu and memory usage for my VM's using   VM Performance Monitors i want to set to only send alerts after 2 polls can this be done if so how???? 

As this can not be set in the virtual machine template.

Thanks,
Stephen