Depends on the state, but some require that the municipality knew about the hole, and some assume the municipality should have known about the hole. New York City gets a detailed list of all pavement and sidewalk defects every year, paid for by the New York lawyers.