Add types for lifecycle events.

Can this just be a "Handler"? Can it be combined with the LivenessProbe type?