Hi Akash:
If by flapping port we mean ifadminstatus / ifoperstatus going up and down, I can't think of a great way to do this in CAPC. I know Spectrum shows this with events
The only thing might be using openapi to list interfaces (which could include the interface status). I have not tested this so I am not sure if it would work
Your better bet might be spectrum. You may want to open an issue witht he spectrum team
Joe