Implementation of 'meeting.ended' Event Trigger Upon Meeting Conclusion/Duration

I’m currently working on adding a new feature to our system and could really use some insights from the community. We’re looking to implement a “meeting.ended” event trigger that fires when a meeting ends.

Now question is, it will be invoked when meeting ended manually by the host or automatically after the scheduled duration has elapsed or both?