How to: Activating Brute Force Alarm login attempts from same user

{
    "violations": [
        {
            "name": "VIOL_BRUTE_FORCE",
            "alarm": true,
            "block": true,
            "learn": true
        }
    ],
    "login-pages": [
        {
            "accessValidation": {
                "responseContains": "Success"
            },
            "authenticationType": "form",
            "url": {
                "method": "*",
                "name": "/fake_login",
                "protocol": "http",
                "type": "explicit"
            },
            "usernameParameterName": "username",
            "passwordParameterName": "password"
        }
    ],
    "brute-force-attack-preventions": [
        {
            "bruteForceProtectionForAllLoginPages": true,
            "reEnableLoginAfter": 120,
            "loginAttemptsFromTheSameUser": {
                "action": "alarm",
                "enabled": true,
                "threshold": 2
            },
            "loginAttemptsFromTheSameIp": {
                "enabled": false
            }
        }
    ]
}