Can you please tell me, if there is a way to check @RestResource usage frequency?
Short summary: I have a legacy @RestResource which is supposedly not used by anyone. I want to check that.
I have several ideas about it, but maybe there is a better way.
- Create Custom Object Log__c and insert a record every time @RestResource is called.
- Check debug logs with SOQL
SELECT Id, Operation, SystemModstamp FROM ApexLog WHERE Operation LIKE '/resource%', but I can retrieve only tiny time range.
Any thoughts would be appreciated!