{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "UserAction",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "TAnalytics-v2 .. User action event",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/client/v2/LogContext.json",
            "description" : "Required Log Context Reference"
        },
        "event_name" : {
            "type" : "string",
            "enum" : [
                "USER_ACTION"
            ]
        },
        "schema_definition" : {
            "type" : "string",
            "enum" : [
                "UserAction"
            ]
        },
        "trigger" : {
            "$ref": "/resources/schema/analytics/client/v2/UserActionTrigger.json",
            "description" : "Trigger for the event, it can be screen or event for which user is taking different actions"
        },
        "action":{
            "$ref": "/resources/schema/analytics/client/v2/ClickActionType.json",
            "description":"Type of action : CLICK, SELECT etc"
        },
        "interaction_method": {
            "$ref": "/resources/schema/analytics/client/v2/InteractionMethodValues.json",
            "description": "for each user interaction log the interation method"
        }
    },
    "required" : [
        "log_context",
        "event_name",
        "trigger",
        "action"
    ]
}