What is the meaning of Deus_ex_machina?

Any resolution to a story that does not pay due regard to the story's internal logic and that is so unlikely that it challenges suspension of disbelief, and presumably allows the author, director, or developer to end the story in the way that they desired.

A contrived solution to a problem, relying on an agent external to the situation.

A deity in Greek and Roman drama who was brought in by stage machinery to intervene in a difficult situation (i.e., to resolve a crisis, or untangle issues surrounding it, a character logically expected to do so).

A machine used to bring an actor playing a god onto the stage, either up through a trapdoor or (e.g. by crane) from above.

Alternative form of Deus ex Machina

deus ex machina (deity in Greek and Roman drama who was brought in by stage machinery to intervene in an inextricable situation)

deus ex machina (suddenly, unexpectedly, and without prior indications)

deus ex machina (plot resolution in ancient tragedy involving the sudden and unexpected appearance of a deity)

deus ex machina (deity in Greek and Roman drama who was brought in by stage machinery to intervene in a difficult situation)

deus ex machina (unexpected saviour)

deus ex machina (contrived plot resolution)

deus ex machina (contrived plot resolution)

Source: wiktionary.org