As @LuisCiadella Comments, this is a Markov Chain. The Markovian structure is inherited from the 'memoryless' property of exponential distributions. Because of its simple structure, it is easy to give
an intuitive solution to the proportion of time spent
in State A.
Beginning in State A we will wait for average time $\alpha$ before making a transition to State B.
Then we remain in B for average time $\beta$ before
transitioning back to A.
This cycle between A and B repeats endlessly.
The average cycle lasts for time $\alpha + \beta,$
and of $\alpha$ of this time is spent in A.
Thus, as you suggest, the long-run proportion of time in State A is
$$\frac{\alpha}{\alpha + \beta}.$$
Notes: (1) There are many ways to find the long-run behavior of this Markov chain. Methods of solution depend on the mathematical rigor with which the chain is described. The long-run behavior can also be well approximated by simulation. Perhaps other Answers will define the chain more rigorously and explore some of the alternate methods of solution.
(2) If we think of this chain as a shop with one
clerk ('server') who is busy in State A and idle
in state B, this process is an M/M/1/1 queue.
The server remains busy for average time $\alpha.$
No customers can arrive when the server is busy. (Any customers who arrive when the server is busy are 'lost to the system' and not explicitly accounted for in this simple model.)
When the server is not busy, customers arrive at an exponential rate $1/\beta.$ An arriving customer begins service immediately, so that the average time the server is idle is $\beta.$
The description M/M/1/1 has the following meaning:
The first M stands for memoryless or Markov (exponential) arrivals; the second M for Markov departures, the first $1$ stands for one server
and the second $1$ stands for the limitation of only one customer at a time.