I would say its stoicism, all great stoics discussed that in life, there will be ups and downs, but when you see all as the same, they wont matter. and you can focus on small wonders of life.
As rudyard kipling wrote in his poem ""if''"
''if you can meet with triumph and disaster and treat those two imposters just the same'' .... Then you will be a man my son.