That appears to be a auto resettable circuit breaker.
They are supposed to auto reset after a short period of time. THere should be an amperage rating printed on the side. Available from any auto parts store.
The question is, is the breaker bad or is it opening because you have an excessive current load?
Dave