occurrences = @event['check']['occurrences'] ?  @event['check']['occurrences'].to_i : 1