I am running this query in Classic =>
SELECT ApexPageId, ApexPage.Name, DailyPageViewCount, Id, Profile.Name, MetricsDate, LogDate FROM VisualforceAccessMetrics ORDER BY ProfileId
But, I am getting this error =>
Error: sObject type 'VisualforceAccessMetrics' is not supported
I believe that It is something related to System Permissions of the Profile. I have been searched but I didnt find what is the permission that is missing. I believe that is something related with the metadata.
Best Regards Orlando