Use Real-Time Event Monitoring to Audit User Activity
最後はコーディングですね。
とりあえず、何もしないで検証ボタンをクリックします
もしかして、リアルタイムイベントが設定されたプレイグランドを運よく選んだかも。前のステップはやってない。
We couldn't find an Apex class named LoginEventMonitoringHandler. Make sure that you've created the Apex class and deployed it to your org.
「LoginEventMonitoringHandler」というApexクラスが見つかりません。Apexクラスを作成し、組織にリリースしていることを確認してください。
無事に完了できました
public with sharing class LoginEventMonitoringHandler {
public static List<LoginEvent> getLoginEvents() {
return [SELECT Username, SourceIP, Country, City FROM LoginEvent where EventDate = Today];
}
}